Fix gestione MachineLoad e SMART (funzionali e grafiche)

This commit is contained in:
Samuele E. Locatelli
2020-08-10 11:40:14 +02:00
parent 6af8fd4ae1
commit 107c12d7cb
16 changed files with 208 additions and 229 deletions
@@ -12,14 +12,42 @@ namespace NKC_WF.WebUserControls
if (!Page.IsPostBack)
{
// svuoto input barcode...
cmp_barcode.inputAcquired = "";
lastCmd = "";
if (enableBCode)
{
cmp_barcode.inputAcquired = "";
lastCmd = "";
}
cmp_stackNextloading.BatchId = BatchIdCurr;
raiseEvent();
doUpdate();
}
cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh;
if (enableBCode)
{
cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh;
}
fixDisplay();
}
private void fixDisplay()
{
cmp_barcode.Visible = enableBCode;
frmView.Visible = !enableBCode;
}
public bool enableBCode
{
get
{
bool answ = false;
bool.TryParse(hfEnableBCode.Value, out answ);
return answ;
}
set
{
hfEnableBCode.Value = value.ToString();
}
}
/// <summary>
/// Comando barcode letto
/// </summary>
@@ -250,7 +278,7 @@ namespace NKC_WF.WebUserControls
protected void checkVisibility()
{
lblLoaded.Visible = StackId != 0;
frmView.Visible = !lblLoaded.Visible;
frmView.Visible = !lblLoaded.Visible && !enableBCode;
// fix div di simulazione
divSim.Visible = (memLayer.ML.CRS("environment") == "DEV");
}