diff --git a/GMW/PostFin_DT.aspx.cs b/GMW/PostFin_DT.aspx.cs index 4cec21c7..5d082173 100644 --- a/GMW/PostFin_DT.aspx.cs +++ b/GMW/PostFin_DT.aspx.cs @@ -31,10 +31,34 @@ namespace GMW doUpdate(); mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa); mod_PostFin_DT.doUpdate(); - mod_PostFin_DT.eh_reqUpdate += mod_PostRX_DT1_eh_reqUpdate; + mod_PostFin_DT.eh_ucev += Mod_PostFin_DT_eh_ucev; mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh; mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico; } + + private void Mod_PostFin_DT_eh_ucev(object sender, EventArgs e) + { + ucEvent evento = (ucEvent)e; + switch (evento.tipoEvento) + { + case ucEvType.Delete: + break; + case ucEvType.Edit: + break; + case ucEvType.New: + break; + case ucEvType.Reset: + break; + case ucEvType.ReqUpdateParent: + doUpdate(); + break; + case ucEvType.Selected: + break; + default: + break; + } + } + /// /// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control. /// diff --git a/GMW/WebUserControls/mod_PostFin_DT.ascx.cs b/GMW/WebUserControls/mod_PostFin_DT.ascx.cs index 67031e9a..b68b671e 100644 --- a/GMW/WebUserControls/mod_PostFin_DT.ascx.cs +++ b/GMW/WebUserControls/mod_PostFin_DT.ascx.cs @@ -21,8 +21,8 @@ namespace GMW.WebUserControls eventoUDC = "UDC_TL_DT"; //UDC_FINWIP ??? eventoUDC_qta = "UDC_QTY"; eventoUDC_temp = "UDC_TRATT"; + codLineaKo = "W8200"; - codLineaKo = "W2100"; tipoUdcLinea = "Finito"; IdxPosizioneIn = memLayer.ML.cdvi("IdxPosizioneTrattati"); IdxPosizioneOut = memLayer.ML.cdvi("IdxPosizioneFiniti"); @@ -32,43 +32,10 @@ namespace GMW.WebUserControls tipoCartCurr = tipoCartellino.cartFiniti; enableBCodeParticolare = false; } - - - - - - - - - - - - public event EventHandler eh_reqUpdate; - /// - /// Codice AL sulla linea... - /// - protected string currAL - { - get - { - string answ = ""; - try - { - answ = MagClass.magazzino.taAL.getByKey(Postazione.currCodLinea)[0].CurrVal; - } - catch - { } - return answ; - } - set - { - MagClass.magazzino.taAL.updateCurrVal(Postazione.currCodLinea, value); - } - } /// /// Codice AL in carico /// - protected string sourceAL + public override string sourceAL { get { @@ -80,23 +47,9 @@ namespace GMW.WebUserControls } } /// - /// ultimo valore barcode letto (x confronto conferme doppio input...) - /// - protected string lastBarcodeIn - { - get - { - return memLayer.ML.StringSessionObj(string.Format("lastBCode_{0}", uid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("lastBCode_{0}", uid), value, false); - } - } - /// /// Codice AL della cella corrente /// - protected string destAL + public override string destAL { get { @@ -107,56 +60,12 @@ namespace GMW.WebUserControls lblDestAL.Text = value; } } - /// - /// Codice AL associato alla cella corrente... - /// - protected string AlByCella - { - get - { - string answ = ""; - try - { - answ = string.Format("ALF00{0}", Postazione.currCodCella); - // controllo se esista AL sennĂ² lo creo... - if (MagClass.magazzino.taEA.getByAL(answ).Rows.Count == 0) - { - MagClass.magazzino.taEA.Insert(answ, true, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, "", ""); - } - } - catch - { } - return answ; - } - } - /// - /// indica il codice articolo correntemente selezionato - /// - protected string currParticolare - { - get - { - return memLayer.ML.StringSessionObj(string.Format("currParticolare_{0}", uid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("currParticolare_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel")); - } - } - /// - /// indica UDC correntemente selezionato - /// - protected string currUDC - { - get - { - return memLayer.ML.StringSessionObj(string.Format("UDC_{0}", uid)); - } - set - { - memLayer.ML.setSessionVal(string.Format("UDC_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel")); - } - } + + + + + + /// /// num pezzi dell'ultimo UDC di uguale particolare e stato fatto... /// @@ -1030,11 +939,7 @@ namespace GMW.WebUserControls setVisibility(); grViewSource.DataBind(); grViewDest.DataBind(); - // raise dell'evento - if (eh_reqUpdate != null) - { - eh_reqUpdate(this, new EventArgs()); - } + raiseEvent(ucEvType.ReqUpdateParent); verificaBtnStampa(); txtBarcode.Focus(); } diff --git a/GMW_data/UserControlBCodeMan.cs b/GMW_data/UserControlBCodeMan.cs index 1ac02833..c08f84c9 100644 --- a/GMW_data/UserControlBCodeMan.cs +++ b/GMW_data/UserControlBCodeMan.cs @@ -5,7 +5,8 @@ namespace GMW_data { public class UserControlBCodeMan : GMW_data.UserControl { - #region area base comune (variabili, valori e metodi generali) + + #region Conf stili css /// /// stile css comando OK @@ -31,6 +32,12 @@ namespace GMW_data /// stile css comando ADD /// public string cssAdd = "stileComandoAdd"; + + #endregion + + + #region area base comune (variabili, valori eventi - stati - tipi - posizioni) + /// /// Abilitato/disabilitato BCode particolare /// @@ -115,6 +122,38 @@ namespace GMW_data /// Cartellino da stampare/ristampare /// public tipoCartellino tipoCartCurr = tipoCartellino.cartND; + + #endregion + + + #region gestioneAL + + /// + /// Codice AL sulla linea... + /// + public string currAL + { + get + { + string answ = ""; + try + { + answ = MagClass.magazzino.taAL.getByKey(Postazione.currCodLinea)[0].CurrVal; + } + catch + { } + return answ; + } + set + { + MagClass.magazzino.taAL.updateCurrVal(Postazione.currCodLinea, value); + } + } + + #endregion + + #region area base comune (metodi generali) + /// /// Impostazione variabili specifiche /// @@ -175,7 +214,7 @@ namespace GMW_data string answ = ""; try { - // tolto 2015.06.25 + // tolto 2015.06.25 redirect a pagina default //// se avesse perso codice cella rimando a pagina default... //if (Postazione.currCodCella == "") Response.Redirect("Default.aspx"); answ = string.Format("ALF00{0}", Postazione.currCodCella); @@ -249,6 +288,18 @@ namespace GMW_data } } /// + /// Codice AL in carico + /// + public virtual string sourceAL + { + get + { + return ""; + } + set + { } + } + /// /// Codice AL target /// public virtual string destAL @@ -617,6 +668,7 @@ namespace GMW_data #endregion + #region area metodi interazione controlli ///