diff --git a/GMW/PostRX.aspx b/GMW/PostRX.aspx index c5d28c3e..e4a61c34 100644 --- a/GMW/PostRX.aspx +++ b/GMW/PostRX.aspx @@ -33,11 +33,6 @@
- AREA DX -
- -
-
+
+
+
+ +
diff --git a/GMW/PostRX.aspx.cs b/GMW/PostRX.aspx.cs index 86ca73a8..02c8e3a7 100644 --- a/GMW/PostRX.aspx.cs +++ b/GMW/PostRX.aspx.cs @@ -32,6 +32,9 @@ namespace GMW if (!Page.IsPostBack) { calcolaPostazione(); + // fix css... + Postazione.CssClass = "stileAttesa"; + // fix storico storicoVisibile = false; fixStorico(); // imposto pos abilitata x cancellazione @@ -69,6 +72,7 @@ namespace GMW { mod_storicoAzioniOperatore1.doUpdate(); lblWarning.Text = Postazione.warningText; + pnlAll.CssClass = Postazione.CssClass; } /// /// richiesta hide @@ -378,26 +382,11 @@ namespace GMW 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 - { } + Postazione.setup(); // mostro warning se postazione non configurata... lblWarning.Visible = (Postazione.printer == "n.d."); } + + } } \ No newline at end of file diff --git a/GMW/WebUserControls/mod_PostRX_NT.ascx b/GMW/WebUserControls/mod_PostRX_NT.ascx index f10108c8..97db4b63 100644 --- a/GMW/WebUserControls/mod_PostRX_NT.ascx +++ b/GMW/WebUserControls/mod_PostRX_NT.ascx @@ -2,66 +2,65 @@ <%@ Register Src="mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc1" %> <%if (false) { %> - - + + <%} %> - -
-
-
- -
-
- -   +
+
+
+ +
+
+ +   -
-
- <%-- +
+
+ <%--

--%> - - - - - - + + + + + + +
+
+
+
+
-
-
-
-
-
-
-
-
-
- -
-
- -
+
+
+
+
+
- - - - - - - - - - - - - - <%-- +
+ +
+
+ + + + + + + + + + + + + + <%-- @@ -71,49 +70,48 @@ ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' /> --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
-
- -
- -
+
+
+
+ +
+
- \ No newline at end of file +
\ No newline at end of file diff --git a/GMW/WebUserControls/mod_PostRX_NT.ascx.cs b/GMW/WebUserControls/mod_PostRX_NT.ascx.cs index 63cca9ea..0d2145c9 100644 --- a/GMW/WebUserControls/mod_PostRX_NT.ascx.cs +++ b/GMW/WebUserControls/mod_PostRX_NT.ascx.cs @@ -199,7 +199,7 @@ namespace GMW.WebUserControls case tipoCodiceBarcode.Comando: // verifico se il comando sia di tipo "seleziona linea" string cmdSelLine = memLayer.ML.confReadString("cmdSelLine"); - pnlAll.CssClass = "stileComandoOk"; + Postazione.CssClass = "stileComandoOk"; #if false if (barcodeIn.StartsWith(cmdSelLine)) { @@ -229,7 +229,7 @@ namespace GMW.WebUserControls if (idxCellaCurr == idxCella) { lblMessaggi.Text += " - Attenzione, UDC già caricato!"; - pnlAll.CssClass = "stileComandoKo"; + Postazione.CssClass = "stileComandoKo"; } else { @@ -257,14 +257,14 @@ namespace GMW.WebUserControls MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), barcodeIn, idxCella, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName); // registro sposstamento UDC MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, barcodeIn, particolare, "spostaUDC", string.Format("Caricato UDC Fusi su linea {2}, qta: {0} {1} ", qta, noteTrim, currCodLinea)); - pnlAll.CssClass = "stileComandoOk"; + Postazione.CssClass = "stileComandoOk"; } } else { // udc NON corretto, mostro errore... lblMessaggi.Text += " - Attenzione, UDC NON VALIDO!"; - pnlAll.CssClass = "stileComandoKo"; + Postazione.CssClass = "stileComandoKo"; } } #endif @@ -272,7 +272,7 @@ namespace GMW.WebUserControls break; default: Postazione.warningText += " - codice non riconosciuto!"; - pnlAll.CssClass = "stileComandoND"; + Postazione.CssClass = "stileComandoND"; break; } barcodeIn = ""; diff --git a/GMW/WebUserControls/mod_PostRX_NT.ascx.designer.cs b/GMW/WebUserControls/mod_PostRX_NT.ascx.designer.cs index 6995503c..52f1b55f 100644 --- a/GMW/WebUserControls/mod_PostRX_NT.ascx.designer.cs +++ b/GMW/WebUserControls/mod_PostRX_NT.ascx.designer.cs @@ -30,15 +30,6 @@ namespace GMW.WebUserControls { /// protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2; - /// - /// 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; - /// /// lblParticolareAttivo control. /// diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 86b1c09c..acaf2c61 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 30f700af..83591ccc 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 ffc2d736..fd120d4b 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ diff --git a/GMW_data/Postazione.cs b/GMW_data/Postazione.cs index 15d4fecd..c2457914 100644 --- a/GMW_data/Postazione.cs +++ b/GMW_data/Postazione.cs @@ -68,6 +68,20 @@ namespace GMW_data } } /// + /// indica calsse css della postazione corrente + /// + public static string CssClass + { + get + { + return memLayer.ML.StringSessionObj("cssClass"); + } + set + { + memLayer.ML.setSessionVal("cssClass", value); + } + } + /// /// codice della linea corrente /// public static string currCodLinea @@ -86,6 +100,29 @@ namespace GMW_data memLayer.ML.setSessionVal(string.Format("Linea-{0}", Postazione.IP), value); } } - + /// + /// effettua calcolo parametri postazioen dato IP + /// + public static void setup() + { + name = dnsUtils.DetermineCompName(IP); + // cerco stampante x postazione + printer = "n.d."; + try + { + DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(name); + if (tabPost.Rows.Count > 0) + { + printer = tabPost[0].stampante; + } + else + { + tabPost = DataProxy.obj.taElPost.getByCod("default"); + printer = tabPost[0].stampante; + } + } + catch + { } + } } }