diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index 79ce9035..1738dadd 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 9ef0f89c..60e547e0 100644 Binary files a/GMW-RT/bin/GMW_data.dll and b/GMW-RT/bin/GMW_data.dll differ diff --git a/GMW-RT/bin/SteamWare.dll b/GMW-RT/bin/SteamWare.dll index d4a4029e..44fe1770 100644 Binary files a/GMW-RT/bin/SteamWare.dll and b/GMW-RT/bin/SteamWare.dll differ diff --git a/GMW/WebUserControls/mod_finitiTK.ascx b/GMW/WebUserControls/mod_finitiTK.ascx index 48db0dd0..b761520f 100644 --- a/GMW/WebUserControls/mod_finitiTK.ascx +++ b/GMW/WebUserControls/mod_finitiTK.ascx @@ -1,39 +1,13 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_finitiTK.ascx.cs" Inherits="GMW.WebUserControls.mod_finitiTK" %> -<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> +<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%> <%@ Register Src="mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc1" %> <% if (false) { %> - + + <% } %>
-
-
-
- -
- - -
-
- -
-   -
-
- -
- -
-
-
- -
-
- -
-
-
@@ -79,7 +53,7 @@
- + <%----%>
diff --git a/GMW/WebUserControls/mod_finitiTK.ascx.cs b/GMW/WebUserControls/mod_finitiTK.ascx.cs index 5a8dc454..6112cb70 100644 --- a/GMW/WebUserControls/mod_finitiTK.ascx.cs +++ b/GMW/WebUserControls/mod_finitiTK.ascx.cs @@ -42,24 +42,18 @@ namespace GMW.WebUserControls { if (!Page.IsPostBack) { - calcolaPostazione(); traduciObj(); - storicoVisibile = false; - fixStorico(); - // imposto pos abilitata x cancellazione - mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneFiniti"); } doChecks(); - mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa); } /// /// richiesta (ri)stampa UDC /// /// /// - void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e) + public void ristampa(object sender, EventArgs e) { - MagClass.magazzino.stampaUdc(udcReq, postazione_printer, tipoCartellino.cartFiniti, Request.UserHostName); + MagClass.magazzino.stampaUdc(udcReq, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName); // registro ri-stampa UDC DateTime adesso = DateTime.Now; // calcolo particolare... @@ -74,7 +68,7 @@ namespace GMW.WebUserControls { logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Finiti {0}", udcReq), tipoLog.EXCEPTION); } - MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, postazione_name, postazione_IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Finiti Mult"); + MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaUDC", "Ri-Stampato UDC Finiti Mult"); } /// /// udc da stampare @@ -130,13 +124,10 @@ namespace GMW.WebUserControls private void traduciObj() { // labels - lblPostazione.Text = string.Format("{2}: {0} ({1})", postazione_name, postazione_IP, traduci("postazione")); - lblPrinter.Text = string.Format("{1}: {0}", postazione_printer, traduci("stampante")); lblQtaUDC.Text = traduci("lblQtaUDC"); lblNumUDC.Text = traduci("lblNumUDC"); lblQta.Text = traduci("lblQuantitaTotale"); lblNote.Text = traduci("lblNote"); - lblCurrentPage.Text = traduci(PagCorrente); //txtBox qtaUDC = memLayer.ML.confReadInt("QtaImballoFiniti"); numUDC = 1; @@ -144,8 +135,6 @@ namespace GMW.WebUserControls // buttons btnStampa.Text = traduci("btnStampa"); btnEmptyNote.Text = traduci("btnEmptyNote"); - // fix storico - fixStorico(); } /// /// restituisce il nome della pagina corrente @@ -175,75 +164,7 @@ namespace GMW.WebUserControls { return user_std.UtSn.Traduci(lemma.ToString()); } - /// - /// calcola postazione corrente (ip, name, printer) - /// - private void calcolaPostazione() - { - postazione_IP = Request.UserHostName; - postazione_name = dnsUtils.DetermineCompName(postazione_IP); - // cerco stampante x postazione - postazione_printer = "n.d."; - try - { - DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(postazione_name); - if (tabPost.Rows.Count > 0) - { - postazione_printer = tabPost[0].stampante; - } - else - { - tabPost = DataProxy.obj.taElPost.getByCod("default"); - postazione_printer = tabPost[0].stampante; - } - } - catch - { } - // mostro warning se postazione non configurata... - lblWarning.Visible = (postazione_printer == "n.d."); - } - /// - /// indica name della postazione corrente - /// - protected string postazione_name - { - get - { - return memLayer.ML.StringSessionObj("postazione_name"); - } - set - { - memLayer.ML.setSessionVal("postazione_name", value); - } - } - /// - /// indica ip della postazione corrente - /// - protected string postazione_IP - { - get - { - return memLayer.ML.StringSessionObj("postazione_IP"); - } - set - { - memLayer.ML.setSessionVal("postazione_IP", value); - } - } - /// - /// indica stampante associata alla postazione corrente - /// - protected string postazione_printer - { - get - { - return memLayer.ML.StringSessionObj("postazione_printer"); - } - set - { - memLayer.ML.setSessionVal("postazione_printer", value); - } - } + /// /// indica il codice articolo correntemente selezionato /// @@ -493,11 +414,8 @@ namespace GMW.WebUserControls /// protected void btnStampa_Click(object sender, EventArgs e) { - - // calcolo postazione - calcolaPostazione(); // verifico postazione x procedere... - if (postazione_printer != "n.d.") + if (Postazione.printer != "n.d.") { string newUdcChild = ""; string noteTrim = string.Format("{0}{1}{2}", traduci("fuoriciclo"), Environment.NewLine, txtNote.Text.Trim()); @@ -523,7 +441,7 @@ namespace GMW.WebUserControls // creo nuovo UDC del trattamento liquidi newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoFiniti"), "U", MagClass.magazzino.CodSoggCurrUser, qtaUDC, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", "UDC_FINITO", noteTrim, "", adesso.Year, Request.UserHostName); // registro creazione nuovo UDC - MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Finiti, qta: {0} {1}", qtaUDC, noteTrim)); + MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Finiti, qta: {0} {1}", qtaUDC, noteTrim)); // inserisco attributo fuoriciclo MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, attrFC, "", DateTime.Now, codSogg); } @@ -535,12 +453,12 @@ namespace GMW.WebUserControls if (newUdcChild != "") { // ora stampo il nuovo cartellino!!! - MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartFiniti, Request.UserHostName); + MagClass.magazzino.stampaUdc(newUdcChild, Postazione.printer, tipoCartellino.cartFiniti, Request.UserHostName); // incremento timing... adesso = DateTime.Now; adesso = adesso.AddSeconds(1); // registro stampa nuovo UDC - MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, postazione_name, postazione_IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Finiti"); + MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "stampaUDC", "Stampato UDC Finiti"); } } // resetto @@ -551,7 +469,6 @@ namespace GMW.WebUserControls httpLog(string.Format("FINITI, Errore persi utente/particolare, ricarico!"), tipoLog.ERROR); Response.Redirect("~/login.aspx"); } - mod_storicoAzioniOperatore1.doUpdate(); } else { @@ -566,14 +483,7 @@ namespace GMW.WebUserControls public bool httpLog(string _testoPre) { bool answ = false; - string postazione_IP = ""; - try - { - postazione_IP = string.Format(" | {0} | ", Request.UserHostName); - } - catch - { } - logger.lg.scriviLog(postazione_IP + _testoPre); + logger.lg.scriviLog(Postazione.IP + _testoPre); return answ; } /// @@ -584,14 +494,7 @@ namespace GMW.WebUserControls public bool httpLog(string testoLog, tipoLog tipo) { bool answ = false; - string postazione_IP = ""; - try - { - postazione_IP = string.Format(" | {0} | ", Request.UserHostName); - } - catch - { } - logger.lg.scriviLog(postazione_IP + testoLog, tipo); + logger.lg.scriviLog(Postazione.IP + testoLog, tipo); return answ; } /// @@ -616,45 +519,6 @@ namespace GMW.WebUserControls txtNote.Text = ""; } /// - /// toggle controllo storico - /// - private void fixStorico() - { - pnlSAO.Visible = storicoVisibile; - if (storicoVisibile) - { - btnShowHideStorico.Text = traduci("btnHideStorico"); - } - else - { - btnShowHideStorico.Text = traduci("btnShowStorico"); - } - } - /// - /// imposto visibilità pannelo storico - /// - protected bool storicoVisibile - { - get - { - return memLayer.ML.BoolSessionObj(string.Format("showHist_{0}", this.ID)); - } - set - { - memLayer.ML.setSessionVal(string.Format("showHist_{0}", this.ID), value); - } - } - /// - /// gestisco evento show/hide storico - /// - /// - /// - protected void btnShowHideStorico_Click(object sender, EventArgs e) - { - storicoVisibile = !storicoVisibile; - fixStorico(); - } - /// /// aggiornata qta UDC: aggiorno totale! /// /// diff --git a/GMW/WebUserControls/mod_finitiTK.ascx.designer.cs b/GMW/WebUserControls/mod_finitiTK.ascx.designer.cs index 97bfd4fd..86134932 100644 --- a/GMW/WebUserControls/mod_finitiTK.ascx.designer.cs +++ b/GMW/WebUserControls/mod_finitiTK.ascx.designer.cs @@ -12,6 +12,24 @@ namespace GMW.WebUserControls { public partial class mod_finitiTK { + /// + /// BundleReference1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1; + + /// + /// BundleReference2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2; + /// /// pnlAll control. /// @@ -21,78 +39,6 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.Panel pnlAll; - /// - /// lblPostazione control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblPostazione; - - /// - /// btnRefresh control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button btnRefresh; - - /// - /// btnShowHideStorico control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Button btnShowHideStorico; - - /// - /// lblPrinter control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblPrinter; - - /// - /// lblCurrentPage control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Label lblCurrentPage; - - /// - /// hlMenu control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.HyperLink hlMenu; - - /// - /// pnlSAO control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Panel pnlSAO; - - /// - /// mod_storicoAzioniOperatore1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1; - /// /// lblParticolareAttivo control. /// @@ -219,15 +165,6 @@ namespace GMW.WebUserControls { /// protected global::System.Web.UI.WebControls.TextBox txtBarcode; - /// - /// aceParticolare control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::AjaxControlToolkit.AutoCompleteExtender aceParticolare; - /// /// lblNote control. /// diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index b198807e..010ec430 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 9ef0f89c..60e547e0 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll index d4a4029e..44fe1770 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ diff --git a/GMW/finitiTK.aspx b/GMW/finitiTK.aspx index 4efdf360..638b4caa 100644 --- a/GMW/finitiTK.aspx +++ b/GMW/finitiTK.aspx @@ -1,5 +1,39 @@ -<%@ Page Title="Finiti TK" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true" CodeBehind="finitiTK.aspx.cs" Inherits="GMW.finitiTK" %> -<%@ Register src="WebUserControls/mod_finitiTK.ascx" tagname="mod_finitiTK" tagprefix="uc1" %> - - +<%@ Page Title="Finiti TK" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="finitiTK.aspx.cs" Inherits="GMW.finitiTK" %> + +<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %> +<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %> +<%@ Register Src="WebUserControls/mod_finitiTK.ascx" TagName="mod_finitiTK" TagPrefix="uc3" %> + + + + + + + + +
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+
diff --git a/GMW/finitiTK.aspx.cs b/GMW/finitiTK.aspx.cs index 7e249bbb..35556a34 100644 --- a/GMW/finitiTK.aspx.cs +++ b/GMW/finitiTK.aspx.cs @@ -4,6 +4,8 @@ using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using SteamWare; +using GMW_data; namespace GMW { @@ -11,8 +13,123 @@ namespace GMW { protected void Page_Load(object sender, EventArgs e) { - // pulisco dir temp dai file dei cartellini stampati - reportPrinter.obj.pulisciDir(); + if (!Page.IsPostBack) + { + updatePrinterPostazione(); + // fix css... + Postazione.CssClass = "stileAttesa"; + // imposto pos abilitata x cancellazione + mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneFiniti"); + // pulisco dir temp dai file dei cartellini stampati + reportPrinter.obj.pulisciDir(); + } + // update vari... + doUpdate(); + mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa); +#if false + mod_fusiTK1.doUpdate(); + mod_fusiTK1.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate; +#endif + mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh; + mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico; + } + /// + /// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control. + /// + /// The source of the event. + /// The instance containing the event data. + private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e) + { + fixStorico(); + } + /// + /// Handles the doRefresh event of the mod_selLineaNtDt1_eh control. + /// + /// The source of the event. + /// The instance containing the event data. + private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e) + { + doUpdate(); +#if false + mod_fusiTK1.doUpdate(); +#endif + } + /// + /// richiesta update del controllo SAO + /// + /// + /// + void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e) + { + doUpdate(); + } + /// + /// aggiorna messaggi e css + /// + private void updateMessCss() + { + lblWarning.Text = Postazione.warningText; + lblMessaggi.Text = Postazione.messaggiText; + pnlAll.CssClass = Postazione.CssClass; + } + /// + /// richiesta (ri)stampa UDC + /// + /// + /// + void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e) + { +#if false + mod_fusiTK1.ristampa(); +#endif + } + /// + /// sistemo visualizzazione pannelli + /// + private void fixPanels() + { + // default: moduli visibili (non serve linea).. + bool enableBtn = true; + mod_finitiTK1.Visible = enableBtn; + fixStorico(); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + /// + /// toggle controllo storico + /// + private void fixStorico() + { + pnlSAO.Visible = Postazione.showStorico; + } + /// + /// update generale controlli + /// + private void doUpdate() + { + updateMessCss(); + fixPanels(); + mod_storicoAzioniOperatore1.doUpdate(); + } + /// + /// calcola postazione corrente (ip, name, printer) + /// + private void updatePrinterPostazione() + { + Postazione.IP = Request.UserHostName; + Postazione.setupPrinter(); + // mostro warning se postazione non configurata... + if (Postazione.printer == "n.d.") + { + lblWarning.Text = traduci("lblWarnPostNonConf"); + } } } } \ No newline at end of file diff --git a/GMW/finitiTK.aspx.designer.cs b/GMW/finitiTK.aspx.designer.cs index d4eff2d8..0796c9b9 100644 --- a/GMW/finitiTK.aspx.designer.cs +++ b/GMW/finitiTK.aspx.designer.cs @@ -12,6 +12,60 @@ namespace GMW { public partial class finitiTK { + /// + /// mod_selLineaNtDt1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1; + + /// + /// pnlAll control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlAll; + + /// + /// pnlSAO control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlSAO; + + /// + /// mod_storicoAzioniOperatore1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1; + + /// + /// lblMessaggi control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblMessaggi; + + /// + /// lblWarning control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblWarning; + /// /// mod_finitiTK1 control. /// diff --git a/GMW/fusiTK.aspx b/GMW/fusiTK.aspx index db6532ec..7db3c887 100644 --- a/GMW/fusiTK.aspx +++ b/GMW/fusiTK.aspx @@ -1,5 +1,38 @@ -<%@ Page Title="TK Fusi" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true" CodeBehind="fusiTK.aspx.cs" Inherits="GMW.fusiTK" %> -<%@ Register src="WebUserControls/mod_fusiTK.ascx" tagname="mod_fusiTK" tagprefix="uc1" %> - - +<%@ Page Title="TK Fusi" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="fusiTK.aspx.cs" Inherits="GMW.fusiTK" %> + +<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %> +<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %> +<%@ Register Src="WebUserControls/mod_fusiTK.ascx" TagName="mod_fusiTK" TagPrefix="uc3" %> + + + + + + + +
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+
diff --git a/GMW/fusiTK.aspx.cs b/GMW/fusiTK.aspx.cs index 2488a114..4f4b6add 100644 --- a/GMW/fusiTK.aspx.cs +++ b/GMW/fusiTK.aspx.cs @@ -4,6 +4,8 @@ using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using SteamWare; +using GMW_data; namespace GMW { @@ -11,8 +13,123 @@ namespace GMW { protected void Page_Load(object sender, EventArgs e) { - // pulisco dir temp dai file dei cartellini stampati - reportPrinter.obj.pulisciDir(); + if (!Page.IsPostBack) + { + updatePrinterPostazione(); + // fix css... + Postazione.CssClass = "stileAttesa"; + // imposto pos abilitata x cancellazione + mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.confReadInt("IdxPosizioneAnime"); + // pulisco dir temp dai file dei cartellini stampati + reportPrinter.obj.pulisciDir(); + } + // update vari... + doUpdate(); + mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa); +#if false + mod_fusiTK1.doUpdate(); + mod_fusiTK1.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate; +#endif + mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh; + mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico; + } + /// + /// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control. + /// + /// The source of the event. + /// The instance containing the event data. + private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e) + { + fixStorico(); + } + /// + /// Handles the doRefresh event of the mod_selLineaNtDt1_eh control. + /// + /// The source of the event. + /// The instance containing the event data. + private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e) + { + doUpdate(); +#if false + mod_fusiTK1.doUpdate(); +#endif + } + /// + /// richiesta update del controllo SAO + /// + /// + /// + void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e) + { + doUpdate(); + } + /// + /// aggiorna messaggi e css + /// + private void updateMessCss() + { + lblWarning.Text = Postazione.warningText; + lblMessaggi.Text = Postazione.messaggiText; + pnlAll.CssClass = Postazione.CssClass; + } + /// + /// richiesta (ri)stampa UDC + /// + /// + /// + void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e) + { +#if false + mod_fusiTK1.ristampa(); +#endif + } + /// + /// sistemo visualizzazione pannelli + /// + private void fixPanels() + { + // default: moduli visibili (non serve linea).. + bool enableBtn = true; + mod_fusiTK1.Visible = enableBtn; + fixStorico(); + } + /// + /// wrapper traduzione + /// + /// + /// + public string traduci(object lemma) + { + return user_std.UtSn.Traduci(lemma.ToString()); + } + /// + /// toggle controllo storico + /// + private void fixStorico() + { + pnlSAO.Visible = Postazione.showStorico; + } + /// + /// update generale controlli + /// + private void doUpdate() + { + updateMessCss(); + fixPanels(); + mod_storicoAzioniOperatore1.doUpdate(); + } + /// + /// calcola postazione corrente (ip, name, printer) + /// + private void updatePrinterPostazione() + { + Postazione.IP = Request.UserHostName; + Postazione.setupPrinter(); + // mostro warning se postazione non configurata... + if (Postazione.printer == "n.d.") + { + lblWarning.Text = traduci("lblWarnPostNonConf"); + } } } } \ No newline at end of file diff --git a/GMW/fusiTK.aspx.designer.cs b/GMW/fusiTK.aspx.designer.cs index 5258a23f..acfef1c7 100644 --- a/GMW/fusiTK.aspx.designer.cs +++ b/GMW/fusiTK.aspx.designer.cs @@ -12,6 +12,60 @@ namespace GMW { public partial class fusiTK { + /// + /// mod_selLineaNtDt1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1; + + /// + /// pnlAll control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlAll; + + /// + /// pnlSAO control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlSAO; + + /// + /// mod_storicoAzioniOperatore1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1; + + /// + /// lblMessaggi control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblMessaggi; + + /// + /// lblWarning control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblWarning; + /// /// mod_fusiTK1 control. ///