Aggiunta modifica x mostrare operatore che FA il setup

This commit is contained in:
Samuele E. Locatelli
2018-09-19 18:23:00 +02:00
parent cc99a6472f
commit ef44ea2fe1
6 changed files with 83 additions and 28 deletions
+14 -4
View File
@@ -149,7 +149,10 @@ namespace MoonProTablet.WebUserControls
{
((WebControl)lbtn).CssClass = ((WebControl)lbtn).CssClass.Replace("disabled", "");
// se richiesto metto disabled...
if (!((WebControl)lbtn).Enabled) ((WebControl)lbtn).CssClass += " disabled";
if (!((WebControl)lbtn).Enabled)
{
((WebControl)lbtn).CssClass += " disabled";
}
}
catch
{ }
@@ -256,13 +259,19 @@ namespace MoonProTablet.WebUserControls
// processo evento...
inCmd = controllerMapo.scriviRigaEventoBarcode(idxMacchina, idxEvento, CodArticolo, "", rigaStato.MatrOpr, rigaStato.pallet);
// verifico se serva refresh
if (inCmd.needStatusRefresh) needStRefresh = true;
if (inCmd.needStatusRefresh)
{
needStRefresh = true;
}
// se la macchina è MULTI (cod#tavola) e sonoa INIZIO/FINE attrezzaggio (idxEv <=2) processo ANCHE per la macchina madre...
if (idxMacchina.IndexOf('#') > 0 && idxEvento <= 2)
{
string idxMacchinaParent = idxMacchina.Substring(0, idxMacchina.IndexOf('#'));
inCmd2 = controllerMapo.scriviRigaEventoBarcode(idxMacchinaParent, idxEvento, CodArticolo, "", rigaStato.MatrOpr, rigaStato.pallet);
if (inCmd2.needStatusRefresh) needStRefresh = true;
if (inCmd2.needStatusRefresh)
{
needStRefresh = true;
}
}
if (needStRefresh)
{
@@ -326,7 +335,8 @@ namespace MoonProTablet.WebUserControls
int idxODL_curr = 0;
confermaProdOdl(false);
if (idxODLSel > 0)
{ // se vedesse TCRich a zero lo reimposta a quello assegnato...
{
// se vedesse TCRich a zero lo reimposta a quello assegnato...
if (TCRichAttr == 0)
{
TCRichAttr = TCAssegnato(idxODLSel);