condizionata visibilità gestione "Pezzi lasciati" da tab config
This commit is contained in:
@@ -50,8 +50,8 @@ namespace MoonProTablet.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
checkAll();
|
||||
resetParam();
|
||||
doUpdate();
|
||||
//resetParam();
|
||||
//doUpdate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -194,6 +194,7 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
private void checkAll()
|
||||
{
|
||||
checkConfig();
|
||||
fixSelMacc();
|
||||
checkOdl();
|
||||
lblOut.Text = "";
|
||||
@@ -201,6 +202,16 @@ namespace MoonProTablet.WebUserControls
|
||||
lbtShowConfProd.Visible = odlOk;
|
||||
lblConfProd.Visible = !odlOk;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica config x modalità permesse
|
||||
/// </summary>
|
||||
private void checkConfig()
|
||||
{
|
||||
// verifico SE sia permesso gestire i "Pezzi lasciati" in macchina...
|
||||
lblNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
txtNumLasciati.Visible = memLayer.ML.cdvb("enablePzProdLasciati");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se abbia un ODL ATTIVO
|
||||
/// </summary>
|
||||
@@ -363,7 +374,6 @@ namespace MoonProTablet.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbtSalva_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Thread.Sleep(3000);
|
||||
if (memLayer.ML.CRI("modoConfProd") == 2)
|
||||
{
|
||||
confermaPerTurni();
|
||||
@@ -377,7 +387,7 @@ namespace MoonProTablet.WebUserControls
|
||||
// mostro output
|
||||
lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
// cambio button conferma...
|
||||
switchBtnConferma(!txtNumPezzi.Enabled);
|
||||
switchBtnConferma(!txtNumPezzi.Enabled);
|
||||
// sollevo evento!
|
||||
if (eh_newVal != null)
|
||||
{
|
||||
@@ -390,14 +400,14 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </summary>
|
||||
private void confermaPerGiorni()
|
||||
{
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina.ToString(), memLayer.ML.confReadInt("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.confReadInt("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua conferma per turni della produzione
|
||||
/// </summary>
|
||||
private void confermaPerTurni()
|
||||
{
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina.ToString(), memLayer.ML.confReadInt("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.confReadInt("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
}
|
||||
/// <summary>
|
||||
/// update post modifica pz buoni
|
||||
|
||||
Reference in New Issue
Block a user