fix gestione calcolo possibilità nesting x caching redis
This commit is contained in:
@@ -83,7 +83,7 @@ namespace NKC_WF.WebUserControls
|
||||
DataLayer.man.taOffOL.updateStatus(OffOrdId, 0);
|
||||
}
|
||||
frmView.DataBind();
|
||||
raiseEvent();
|
||||
raiseEvent();
|
||||
}
|
||||
|
||||
protected void lbtPrintLabels_Click(object sender, EventArgs e)
|
||||
@@ -120,17 +120,12 @@ namespace NKC_WF.WebUserControls
|
||||
/// verifica possibilità avvio TASK x presenza task NON chiusi
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool canStartNew()
|
||||
public bool canStartNew
|
||||
{
|
||||
bool answ = false;
|
||||
// in primis controllo SE ci siano task running, nel qual caso è false e basta...
|
||||
int numEst = DataLayer.man.taBL.getByStatus((int)BatchStatus.EstimationRequested, "", 0).Count;
|
||||
int numNest = DataLayer.man.taBL.getByStatus((int)BatchStatus.NestRequested, "", 0).Count;
|
||||
// ora controllo anche offline orders...
|
||||
int numOffOrd = DataLayer.man.taOffOL.getRunning().Count;
|
||||
// ora la somma di tutti DEVE essere zero...
|
||||
answ = ((numEst + numNest + numOffOrd) == 0);
|
||||
return answ;
|
||||
get
|
||||
{
|
||||
return ComLib.canStartNew;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user