diff --git a/MP-ADM/Planner.aspx.cs b/MP-ADM/Planner.aspx.cs index ca0e8162..bd37afa7 100644 --- a/MP-ADM/Planner.aspx.cs +++ b/MP-ADM/Planner.aspx.cs @@ -48,6 +48,12 @@ namespace MP_ADM doRefreshChild(); } + private void Cmp_PODL_OUT_eh_nuovoValore(object sender, EventArgs e) + { + cmp_planStats.doReset(); + cmp_planApprove.doUpdate(); + } + private void toggleVisibility() { divPromOUT.Visible = !divPromOUT.Visible; @@ -85,6 +91,7 @@ namespace MP_ADM cmp_planApprove.eh_resetSelezione += Cmp_planApprove_eh_resetSelezione; cmp_planApprove.eh_selValore += Cmp_planApprove_eh_selValore; cmp_planApprove.eh_nuovoValore += Cmp_planApprove_eh_nuovoValore; + cmp_PODL_OUT.eh_nuovoValore += Cmp_PODL_OUT_eh_nuovoValore; } #endregion Protected Methods diff --git a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx index d6e5162e..fff0ca42 100644 --- a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx +++ b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx @@ -45,34 +45,6 @@ - <%--
-
-
-
- PROMESSA ODL -
-
-
- -
--%> -
-
-
- Modifica -
-
- # Pezzi Richiesti: - -
-
- Pezzi Pallet: - -
-
- Annulla -
-
-
@@ -193,7 +165,7 @@ - + diff --git a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs index da8dd76d..624e0597 100644 --- a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.cs @@ -106,56 +106,6 @@ namespace MP_ADM.WebUserControls } } - /// - /// Nuovo num pz - /// - protected int numPz - { - get - { - int answ = 0; - try - { - answ = Convert.ToInt32(txtNewQta.Text.Trim()); - } - catch - { } - return answ; - } - set - { - txtNewQta.Text = value.ToString(); - } - } - - /// - /// Nuovo num pz per pallet - /// - protected int pzPallet - { - get - { - int answ = 1; - try - { - answ = Convert.ToInt32(txtNewPzPallet.Text.Trim()); - } - catch - { } - // controllo sia > 0... - if (answ < 1) - { - answ = 1; - } - - return answ; - } - set - { - txtNewPzPallet.Text = value.ToString(); - } - } - #endregion Protected Properties #region Public Properties @@ -231,13 +181,6 @@ namespace MP_ADM.WebUserControls #region Private Methods - private void updateCtrl() - { - divEditQta.Visible = false; - grView.SelectedIndex = -1; - grView.DataBind(); - } - /// /// Aggiorno Gridview /// @@ -250,20 +193,6 @@ namespace MP_ADM.WebUserControls #region Protected Methods - protected void btnCancel_Click(object sender, EventArgs e) - { - updateCtrl(); - } - - protected void btnOk_Click(object sender, EventArgs e) - { - if (idxPOdlSel > 0) - { - DataLayerObj.taPODL.updateQta(numPz, pzPallet, idxPOdlSel); - } - updateCtrl(); - } - /// /// reset della selezione /// @@ -299,6 +228,7 @@ namespace MP_ADM.WebUserControls protected void doUpdate() { updateGrView(); + raiseSelNew(); } /// @@ -331,39 +261,6 @@ namespace MP_ADM.WebUserControls } } - /// - /// gestione cambio selezione valore - /// - /// - /// - protected void grView_SelectedIndexChanged(object sender, EventArgs e) - { - // salvo in session il valore selezionato... - memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false); - bool doClone = false; - bool doEdit = false; - // gestione buttons richieste - string _comando = ""; - if (memLayer.ML.isInSessionObject("nextObjCommand")) - { - _comando = memLayer.ML.StringSessionObj("nextObjCommand"); - memLayer.ML.emptySessionVal("nextObjCommand"); - } - switch (_comando) - { - case "Clona": - doClone = true; - break; - - case "Edit": - doEdit = true; - break; - - default: - break; - } - } - /// /// salvo comando /// @@ -389,6 +286,7 @@ namespace MP_ADM.WebUserControls DataLayerObj.taPromOut.deleteQuery(IdxProm); } doUpdate(); + raiseNewVal(); } protected void lbtResArt_Click(object sender, EventArgs e) @@ -469,21 +367,6 @@ namespace MP_ADM.WebUserControls updateGrView(); } - protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e) - { - raiseNewVal(); - } - - /// - /// svuoto da cache post update - /// - /// - /// - protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) - { - raiseNewVal(); - } - /// /// inizializzazione valori di default /// @@ -582,7 +465,6 @@ namespace MP_ADM.WebUserControls memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView)); grView.SelectedIndex = -1; grView.DataBind(); - divEditQta.Visible = false; lblWarning.Visible = false; raiseReset(); } diff --git a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.designer.cs b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.designer.cs index 8cfa77a1..02dd96b0 100644 --- a/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.designer.cs +++ b/MP-ADM/WebUserControls/cmp_PODL_OUT.ascx.designer.cs @@ -104,51 +104,6 @@ namespace MP_ADM.WebUserControls /// protected global::System.Web.UI.WebControls.Label lblUnass; - /// - /// Controllo divEditQta. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEditQta; - - /// - /// Controllo lbtOk. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtOk; - - /// - /// Controllo txtNewQta. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtNewQta; - - /// - /// Controllo txtNewPzPallet. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.TextBox txtNewPzPallet; - - /// - /// Controllo lbtCancel. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtCancel; - /// /// Controllo grView. /// diff --git a/MP-ADM/WebUserControls/cmp_planStats.ascx.cs b/MP-ADM/WebUserControls/cmp_planStats.ascx.cs index 3bca8aea..700e84b5 100644 --- a/MP-ADM/WebUserControls/cmp_planStats.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_planStats.ascx.cs @@ -212,6 +212,7 @@ namespace MP_ADM.WebUserControls doResetMac(); doResetCli(); doResetArt(); + frmView.DataBind(); } #endregion Public Methods