+
+
+
+
+
+ <%--
+
+
+
+
+ --%>
+
+
diff --git a/MP-ADM/Planner.aspx.cs b/MP-ADM/Planner.aspx.cs
index 0d5b10d2..3c71abf6 100644
--- a/MP-ADM/Planner.aspx.cs
+++ b/MP-ADM/Planner.aspx.cs
@@ -1,9 +1,5 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
+using SteamWare;
+using System;
namespace MP_ADM
{
@@ -11,7 +7,69 @@ namespace MP_ADM
{
protected void Page_Load(object sender, EventArgs e)
{
+ checkEnabled();
+ string codPre = memLayer.ML.CRS("OptAdmKit_CodPre");
+#if false
+ mod_barcode.codOrdPre = codPre != "" ? codPre : "KIT";
+ mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre;
+ mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase");
+ mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo");
+ mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
+ mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
+ mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit;
+#endif
+ }
+ private void checkEnabled()
+ {
+ bool optPar = memLayer.ML.CRB("OptAdmKitEnabled");
+ divContent.Visible = optPar;
+ lblDataImportOut.Visible = !optPar;
+ string messaggio = "";
+ if (!optPar)
+ {
+ messaggio = "Attenzione: Gestione KIT disabilitata";
+ lblDataImportOut.Text = messaggio;
+ }
+ }
+
+ private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
+ {
+#if false
+ // invio ultimo kit creato a barcode...
+ mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
+ mod_barcode.processInput();
+#endif
+ }
+
+ private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
+ {
+#if false
+ // verifico input su KIT x lettura "grezza"
+ string rawInput = mod_barcode.rawInput;
+ mod_gestKIT.lastInput = rawInput;
+ mod_gestKIT.doUpdate();
+#endif
+ }
+
+ private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
+ {
+#if false
+ // verifico input su KIT x comando completo
+ string BCodeVal = mod_barcode.BCodeVal;
+ // se è un ORDINE... procedo!
+ if (BCodeVal.IndexOf("OPR") == 0)
+ {
+ // aggiungo ordine...
+ mod_gestKIT.addOrdArt(mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.descArt, mod_barcode.qta);
+ mod_gestKIT.lastInput = "";
+ }
+ else
+ {
+ mod_gestKIT.lastInput = mod_barcode.BCodeVal;
+ }
+ mod_gestKIT.doUpdate();
+#endif
}
}
}
\ No newline at end of file
diff --git a/MP-ADM/Planner.aspx.designer.cs b/MP-ADM/Planner.aspx.designer.cs
index 151b5941..f8789aef 100644
--- a/MP-ADM/Planner.aspx.designer.cs
+++ b/MP-ADM/Planner.aspx.designer.cs
@@ -1,17 +1,60 @@
//------------------------------------------------------------------------------
-//