Modifica globale x eliminazione singleto accesso dati
This commit is contained in:
@@ -124,7 +124,7 @@ namespace NKC_WF.WebUserControls
|
||||
doRaiseEv = true;
|
||||
}
|
||||
// processiamo barcode letto
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastCmd);
|
||||
decodedData decoData = DLMan.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.Stack:
|
||||
@@ -132,7 +132,7 @@ namespace NKC_WF.WebUserControls
|
||||
DS_App.StackListDataTable tabStack = null;
|
||||
try
|
||||
{
|
||||
tabStack = DataLayer.man.taSTL.getByKey(decoData.codeInt);
|
||||
tabStack = DLMan.taSTL.getByKey(decoData.codeInt);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -172,7 +172,7 @@ namespace NKC_WF.WebUserControls
|
||||
int stackId = 0;
|
||||
try
|
||||
{
|
||||
var tabStacks = DataLayer.man.taSTL.getByDtmx(decoData.rawData);
|
||||
var tabStacks = DLMan.taSTL.getByDtmx(decoData.rawData);
|
||||
if (tabStack.Count == 1)
|
||||
{
|
||||
stackId = tabStack[0].StackID;
|
||||
@@ -183,7 +183,7 @@ namespace NKC_WF.WebUserControls
|
||||
// SE HO uno stackId valido (>0)...
|
||||
if (stackId > 0)
|
||||
{
|
||||
DataLayer.man.taSTL.updatePos(stackId, 5);
|
||||
DLMan.taSTL.updatePos(stackId, 5);
|
||||
lgInfo($"cmp_stackLoading| taSTL.updatePos | POS --> 5 | stackId: {stackId}");
|
||||
|
||||
// controllo status del bunk nel suo insieme...
|
||||
@@ -222,7 +222,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
bool answ = false;
|
||||
// leggo i dati del bunk...
|
||||
var currBunks = DataLayer.man.taSTL.getCurrByBatch(BatchIdCurr);
|
||||
var currBunks = DLMan.taSTL.getCurrByBatch(BatchIdCurr);
|
||||
if (currBunks.Count > 0)
|
||||
{
|
||||
// verifico x ogni bunk corrente
|
||||
@@ -243,7 +243,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
bool answ = true;
|
||||
// leggo i dati del bunk...
|
||||
var currBunks = DataLayer.man.taSTL.getCurrByBatch(BatchIdCurr);
|
||||
var currBunks = DLMan.taSTL.getCurrByBatch(BatchIdCurr);
|
||||
if (currBunks.Count > 0)
|
||||
{
|
||||
// verifico x ogni bunk corrente
|
||||
@@ -266,7 +266,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
bool answ = false;
|
||||
// leggo i dati del bunk...
|
||||
var currBunk = DataLayer.man.taSTL.getByKey(BunkId);
|
||||
var currBunk = DLMan.taSTL.getByKey(BunkId);
|
||||
if (currBunk.Count == 1)
|
||||
{
|
||||
answ = currBunk[0].Position == 4;
|
||||
@@ -303,13 +303,13 @@ namespace NKC_WF.WebUserControls
|
||||
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);
|
||||
var currStack = DLMan.taSTL.getCurrByBatch(BatchIdCurr);
|
||||
if (currStack != null)
|
||||
{
|
||||
if (currStack.Count > 0)
|
||||
{
|
||||
int stackIdCurr = currStack[0].StackID;
|
||||
DataLayer.man.taSHL.advanceInStack(stackIdCurr);
|
||||
DLMan.taSHL.advanceInStack(stackIdCurr);
|
||||
lgInfo($"cmp_unloadSmart | MANUAL FORCED DATA | taSHL.advanceInStack | stackIdCurr: {stackIdCurr}");
|
||||
}
|
||||
doUpdate();
|
||||
|
||||
Reference in New Issue
Block a user