diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index 4b7f5595..76a0c8eb 100644 Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ diff --git a/GMW-RT/bin/GMW_data.dll b/GMW-RT/bin/GMW_data.dll index 30d691db..e2e3cc8f 100644 Binary files a/GMW-RT/bin/GMW_data.dll and b/GMW-RT/bin/GMW_data.dll differ diff --git a/GMW-UT/bin/GMW-UT.dll b/GMW-UT/bin/GMW-UT.dll index 140f48ff..6d214ae1 100644 Binary files a/GMW-UT/bin/GMW-UT.dll and b/GMW-UT/bin/GMW-UT.dll differ diff --git a/GMW-UT/bin/GMW_data.dll b/GMW-UT/bin/GMW_data.dll index 30d691db..e2e3cc8f 100644 Binary files a/GMW-UT/bin/GMW_data.dll and b/GMW-UT/bin/GMW_data.dll differ diff --git a/GMW/WebUserControls/mod_finiti.ascx.cs b/GMW/WebUserControls/mod_finiti.ascx.cs index 837f4890..815d631d 100644 --- a/GMW/WebUserControls/mod_finiti.ascx.cs +++ b/GMW/WebUserControls/mod_finiti.ascx.cs @@ -31,23 +31,12 @@ namespace GMW.WebUserControls public override void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); - if (!Page.IsPostBack) - { - qta = 0; - // imposto destAL - destAL = AlByCella; - traduciObj(); - idxCella = Postazione.currIdxCella; - checkNumKeyIn(); - } - setVisibility(); - doChecks(); } /// /// Codice AL target /// - protected string destAL + public override string destAL { get { @@ -445,7 +434,7 @@ namespace GMW.WebUserControls /// /// /// - private string checkCreaUDC() + public override string checkCreaUDC() { string udcDest = ""; DateTime adesso = DateTime.Now; @@ -491,16 +480,12 @@ namespace GMW.WebUserControls grViewDest.DataBind(); return udcDest; } - /// /// aggiorna tabella + focus a barcode /// - public void doUpdate() + public override void doUpdate() { - idxCella = Postazione.currIdxCella; - destAL = AlByCella; - setVisibility(); - checkStampa(); + base.doUpdate(); grView.DataBind(); grViewDest.DataBind(); txtBarcode.Focus(); @@ -774,7 +759,7 @@ namespace GMW.WebUserControls /// /// sistema modalità input /// - private void setVisibility() + public override void setVisibility() { bool showBtn = false; // ora controllo btn quantità @@ -789,35 +774,10 @@ namespace GMW.WebUserControls /// /// /// - protected void btnReset_Click(object sender, EventArgs e) + public override void btnReset_Click(object sender, EventArgs e) { grViewDest.SelectedIndex = -1; - qta = 0; - currUDC = ""; - currParticolare = ""; - setVisibility(); - doUpdate(); - } - /// - /// update Qty x UDC selezionato... - /// - /// - /// - protected void lbtUpdQty_Click(object sender, EventArgs e) - { - aggiornaQta(); - } - /// - /// Imposta ultima quantità rilevata - /// - /// - /// - protected void lbtSetLastQty_Click(object sender, EventArgs e) - { - // indico ultima qta - qta = pezziUdc; - // salvo!!! - aggiornaQta(); + base.btnReset_Click(sender, e); } /// /// gestione specifica update qta @@ -840,15 +800,6 @@ namespace GMW.WebUserControls doUpdate(); } /// - /// evento cambio qta - /// - /// - /// - protected void txtQta_TextChanged(object sender, EventArgs e) - { - aggiornaQta(); - } - /// /// preseleziono (se possibile) imballo... /// /// @@ -860,7 +811,7 @@ namespace GMW.WebUserControls /// /// seleziona imballo corretto /// - private void selezionaImballo() + protected void selezionaImballo() { string codImb = ""; // cerco se c'è un imballo x particolare corrente... diff --git a/GMW/WebUserControls/mod_finitiSuperCub.ascx.cs b/GMW/WebUserControls/mod_finitiSuperCub.ascx.cs index 87c06083..7c2e034f 100644 --- a/GMW/WebUserControls/mod_finitiSuperCub.ascx.cs +++ b/GMW/WebUserControls/mod_finitiSuperCub.ascx.cs @@ -31,22 +31,13 @@ namespace GMW.WebUserControls public override void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); - if (!Page.IsPostBack) - { - qta = 0; - // imposto destAL - destAL = AlByCella; - traduciObj(); - idxCella = Postazione.currIdxCella; - checkNumKeyIn(); - } setVisibility(); doChecks(); } /// /// Codice AL target /// - protected string destAL + public override string destAL { get { @@ -444,7 +435,7 @@ namespace GMW.WebUserControls /// /// /// - private string checkCreaUDC() + public override string checkCreaUDC() { string udcDest = ""; DateTime adesso = DateTime.Now; @@ -490,16 +481,12 @@ namespace GMW.WebUserControls grViewDest.DataBind(); return udcDest; } - /// /// aggiorna tabella + focus a barcode /// - public void doUpdate() + public override void doUpdate() { - idxCella = Postazione.currIdxCella; - destAL = AlByCella; - setVisibility(); - checkStampa(); + base.doUpdate(); grView.DataBind(); grViewDest.DataBind(); txtBarcode.Focus(); @@ -536,7 +523,7 @@ namespace GMW.WebUserControls /// /// /// - protected void btnStampa_Click(object sender, EventArgs e) + public override void btnStampa_Click(object sender, EventArgs e) { bool needsRedirect = false; string[] stringSeparators = new string[] { "#" }; @@ -773,7 +760,7 @@ namespace GMW.WebUserControls /// /// sistema modalità input /// - private void setVisibility() + public override void setVisibility() { bool showBtn = false; // ora controllo btn quantità @@ -788,35 +775,10 @@ namespace GMW.WebUserControls /// /// /// - protected void btnReset_Click(object sender, EventArgs e) + public override void btnReset_Click(object sender, EventArgs e) { grViewDest.SelectedIndex = -1; - qta = 0; - currUDC = ""; - currParticolare = ""; - setVisibility(); - doUpdate(); - } - /// - /// update Qty x UDC selezionato... - /// - /// - /// - protected void lbtUpdQty_Click(object sender, EventArgs e) - { - aggiornaQta(); - } - /// - /// Imposta ultima quantità rilevata - /// - /// - /// - protected void lbtSetLastQty_Click(object sender, EventArgs e) - { - // indico ultima qta - qta = pezziUdc; - // salvo!!! - aggiornaQta(); + base.btnReset_Click(sender, e); } /// /// gestione specifica update qta @@ -839,15 +801,6 @@ namespace GMW.WebUserControls doUpdate(); } /// - /// evento cambio qta - /// - /// - /// - protected void txtQta_TextChanged(object sender, EventArgs e) - { - aggiornaQta(); - } - /// /// preseleziono (se possibile) imballo... /// /// @@ -859,7 +812,7 @@ namespace GMW.WebUserControls /// /// seleziona imballo corretto /// - private void selezionaImballo() + protected void selezionaImballo() { string codImb = ""; // cerco se c'è un imballo x particolare corrente... diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 07b4f13f..d2b54869 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll index 30d691db..e2e3cc8f 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW_data/UserControlBCodeMan.cs b/GMW_data/UserControlBCodeMan.cs index bffe01ea..629c4149 100644 --- a/GMW_data/UserControlBCodeMan.cs +++ b/GMW_data/UserControlBCodeMan.cs @@ -6,7 +6,7 @@ using SteamWare; namespace GMW_data { - public class UserControlBCodeMan : GMW_data.UserControl + public class UserControlBCodeMan : GMW_data.UserControl { /// @@ -52,12 +52,25 @@ namespace GMW_data if (!Page.IsPostBack) { setupVariabili(); + qta = 0; + // imposto destAL + destAL = AlByCella; + traduciObj(); + idxCella = Postazione.currIdxCella; + checkNumKeyIn(); } + setVisibility(); + doChecks(); } /// + /// sistema modalità input + /// + public virtual void setVisibility() + { } + /// /// IDX cella associata alla linea corrente /// - protected int idxCella + public virtual int idxCella { get { @@ -76,7 +89,7 @@ namespace GMW_data /// /// Codice AL associato alla cella corrente... /// - protected string AlByCella + public virtual string AlByCella { get { @@ -135,7 +148,7 @@ namespace GMW_data /// /// udc da stampare /// - protected string udcReq + public virtual string udcReq { get { @@ -145,7 +158,7 @@ namespace GMW_data /// /// indica il codice articolo correntemente selezionato /// - protected string currParticolare + public virtual string currParticolare { get { @@ -157,9 +170,21 @@ namespace GMW_data } } /// + /// Codice AL target + /// + public virtual string destAL + { + get + { + return ""; + } + set + { } + } + /// /// indica il codice articolo "originale" in caso di trascodifica GRZ/GRZ o GRZ/LVT o LVT/LVT /// - protected string origParticolare + public virtual string origParticolare { get { @@ -173,7 +198,7 @@ namespace GMW_data /// /// indica UDC correntemente selezionato /// - protected string currUDC + public virtual string currUDC { get { @@ -190,7 +215,7 @@ namespace GMW_data /// /// /// - public void getDescrDisegnoParticolare(string CodParticolare, ref string descr, ref string disegno) + public virtual void getDescrDisegnoParticolare(string CodParticolare, ref string descr, ref string disegno) { try { @@ -273,7 +298,7 @@ namespace GMW_data /// /// cod imballo dell'ultimo UDC del particolare generato /// - public string lastCodImb + public virtual string lastCodImb { get { @@ -317,6 +342,27 @@ namespace GMW_data { } } /// + /// update Qty x UDC selezionato... + /// + /// + /// + public virtual void lbtUpdQty_Click(object sender, EventArgs e) + { + aggiornaQta(); + } + /// + /// Imposta ultima quantità rilevata + /// + /// + /// + public virtual void lbtSetLastQty_Click(object sender, EventArgs e) + { + // indico ultima qta + qta = pezziUdc; + // salvo!!! + aggiornaQta(); + } + /// /// Metodo aggiornamento qta /// public virtual void aggiornaQta() @@ -326,6 +372,19 @@ namespace GMW_data currParticolare = ""; } /// + /// reset della selezione + /// + /// + /// + public virtual void btnReset_Click(object sender, EventArgs e) + { + qta = 0; + currUDC = ""; + currParticolare = ""; + setVisibility(); + doUpdate(); + } + /// /// effettua reset dati /// public virtual void doResetData() @@ -336,6 +395,15 @@ namespace GMW_data doChecks(); } /// + /// evento cambio qta + /// + /// + /// + public virtual void txtQta_TextChanged(object sender, EventArgs e) + { + aggiornaQta(); + } + /// /// verifica se attivo filtro company e imposta ods di conseguenza... /// public virtual void checkFixOds() @@ -377,5 +445,36 @@ namespace GMW_data } return answ; } - } + /// + /// aggiorna tabella + focus a barcode + /// + public virtual void doUpdate() + { + idxCella = Postazione.currIdxCella; + destAL = AlByCella; + setVisibility(); + checkStampa(); + // altri step + } + + #region metodi da customizzare DAVVERO + + /// + /// segnaposto gestione creazione opzionale UDC + /// + /// + /// + public virtual string checkCreaUDC() + { + return ""; + } + /// + /// segnaposto gestione button stampa + /// + /// + public virtual void btnStampa_Click(object sender, EventArgs e) + { } + + #endregion + } }