-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%--
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
@@ -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
+ { }
+ }
}
}