inserito blocco: se manca ODL NON permette conferma produzione

This commit is contained in:
Samuele E. Locatelli
2017-11-07 18:24:23 +01:00
parent bcd3f29a09
commit c22c1e47d6
5 changed files with 137 additions and 84 deletions
@@ -3,6 +3,7 @@
<div class="ui-grid-b">
<div class="ui-block-a" data-role="content">
<asp:Button runat="server" ID="btnShowConfProd" Text="Mostra Conferma" data-role="button" data-iconpos="bottom" data-icon="check" data-theme="b" data-inline="false" OnClick="btnShowConfProd_Click" Width="100%" />
<asp:Label runat="server" ID="lblMancaODL" Visible="false" ForeColor="Red">MANCA ODL: conferma produzione NON permessa</asp:Label>
</div>
<div class="ui-block-b" data-role="content">
<asp:Button runat="server" ID="btnSalva" Text="Conferma Produzione" data-role="button" data-iconpos="bottom" data-icon="plus"
+10 -1
View File
@@ -35,10 +35,19 @@ namespace MoonProTablet.WebUserControls
private void checkAll()
{
fixSelMacc();
checkOdl();
lblOut.Text = "";
switchBtnConferma(false);
btnShowConfProd.Visible = odlOk;
}
/// <summary>
/// Verifica se abbia un ODL ATTIVO
/// </summary>
private void checkOdl()
{
btnShowConfProd.Visible = odlOk;
lblMancaODL.Visible = !odlOk;
}
/// <summary>
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
@@ -71,7 +80,7 @@ namespace MoonProTablet.WebUserControls
int idxOdl = 0; // userò ODL del turno
try
{
idxOdl = DataLayer.obj.taODL.getByMacchina(idxMacchina)[0].IdxODL;
idxOdl = DataLayer.obj.taODL.getByMacchinaAperto(idxMacchina)[0].IdxODL;
}
catch
{
+9
View File
@@ -21,6 +21,15 @@ namespace MoonProTablet.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnShowConfProd;
/// <summary>
/// Controllo lblMancaODL.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMancaODL;
/// <summary>
/// Controllo btnSalva.
/// </summary>