OK SIM + gestione bunk / load con prod SIMULATO

This commit is contained in:
Samuele E. Locatelli
2020-01-17 18:43:58 +01:00
parent 5278c22550
commit f36d2bad7b
13 changed files with 288 additions and 178 deletions
@@ -1,5 +1,6 @@
using AppData;
using NKC_SDK;
using SteamWare;
using System;
namespace NKC_WF.WebUserControls
@@ -176,6 +177,8 @@ namespace NKC_WF.WebUserControls
{
lblLoaded.Visible = StackId != 0;
frmView.Visible = !lblLoaded.Visible;
// fix div di simulazione
divSim.Visible = memLayer.ML.CRB("enableSimProd");
}
public void doUpdate()
@@ -192,5 +195,25 @@ namespace NKC_WF.WebUserControls
cmp_stackNextloading.BatchId = BatchIdCurr;
raiseEvent();
}
protected void lbtAdvanceProd_Click(object sender, EventArgs e)
{
// chiama stored x cambiare dt dei vari processi governati dal prod...
var currStack = DataLayer.man.taSTL.getCurrByBatch(BatchIdCurr);
if (currStack != null)
{
if (currStack.Count > 0)
{
int stackIdCurr = currStack[0].StackID;
DataLayer.man.taSHL.advanceInStack(stackIdCurr);
}
doUpdate();
}
}
protected void lbtAdvanceBunk_Click(object sender, EventArgs e)
{
// simula invio barcode del PROSSIMO BUNK (SE necessario)
}
}
}