inserito blocco: se manca ODL NON permette conferma produzione
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user