FIX controllo commessa

This commit is contained in:
Samuele E. Locatelli
2018-09-21 18:18:27 +02:00
parent fecc8ea6cf
commit 862123ca26
3 changed files with 9 additions and 2 deletions
@@ -93,7 +93,14 @@ namespace C_TRACK.WebUserControls
{
string answ = "";
// controllos e ho in sessione numTask altrimenti NON E' abilitato...
answ = hasVeto ? "Commessa Chiusa: " + CurrNumTask.ToString() : "";
if (CurrNumTask == "")
{
answ = "Manca Commessa";
}
else
{
answ = hasVeto ? "Commessa Chiusa: " + CurrNumTask.ToString() : "";
}
return answ;
}
}
@@ -14,6 +14,7 @@ namespace C_TRACK.WebUserControls
{
// chiama la procedura che chiude tutte la fasi rimaste attive...
dataLayer.man.taTR.closePending();
Response.Redirect("~/task");
}
}
}
@@ -1,5 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_taskList.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_taskList" %>
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
<%@ Register Src="~/WebUserControls/mod_taskRec.ascx" TagPrefix="uc1" TagName="mod_taskRec" %>
<%@ Register Src="~/WebUserControls/mod_fasiAttive.ascx" TagPrefix="uc1" TagName="mod_fasiAttive" %>