diff --git a/GMW/WebUserControls/mod_recAttributiDtx.ascx b/GMW/WebUserControls/mod_recAttributiDtx.ascx
index 3824616d..cbd6cb70 100644
--- a/GMW/WebUserControls/mod_recAttributiDtx.ascx
+++ b/GMW/WebUserControls/mod_recAttributiDtx.ascx
@@ -1 +1,30 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_recAttributiDtx.ascx.cs" Inherits="GMW.WebUserControls.mod_recAttributiDtx" %>
+
+ <%--
+
+
+ <%: traduci("Origine") %> (AL)
+
+
+
+
+
--%>
+
+
+
+ <%: traduci(tipologia) %> (<%: traduci("Registrazione") %>)
+
+
+
+
<%: traduci("lblDataMatrix") %>
+
+
+
+
+
+
+
diff --git a/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs b/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs
index faf57559..55f39140 100644
--- a/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs
+++ b/GMW/WebUserControls/mod_recAttributiDtx.ascx.cs
@@ -4,19 +4,212 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using SteamWare;
+using GMW_data;
namespace GMW.WebUserControls
{
public partial class mod_recAttributiDtx : System.Web.UI.UserControl
{
+ ///
+ /// Avvio pagina
+ ///
+ ///
+ ///
protected void Page_Load(object sender, EventArgs e)
{
-
+ if (!Page.IsPostBack)
+ {
+ resetIN();
+ }
+ checkBarcode();
+ }
+ ///
+ /// restta input
+ ///
+ private void resetIN()
+ {
+ AddAttr = true;
+ }
+ ///
+ /// Aggiungi/Rimuovi attributo
+ ///
+ public bool AddAttr
+ {
+ get
+ {
+ return chkAdd.Checked;
+ }
+ set
+ {
+ chkAdd.Checked = value;
+ }
+ }
+ ///
+ /// wrapper traduzione
+ ///
+ ///
+ ///
+ public string traduci(object lemma)
+ {
+ return user_std.UtSn.Traduci(lemma.ToString());
}
///
/// tipologia di attributo registrato con DataMatrix
///
public tipoAttrDtx tipologia { get; set; }
+ ///
+ /// valore barcode
+ ///
+ public string barcodeIn
+ {
+ get
+ {
+ return txtBarcode.Text.Trim();
+ }
+ set
+ {
+ txtBarcode.Text = value;
+ }
+ }
+ ///
+ /// controlla se ci sia un barcode
+ ///
+ private void checkBarcode()
+ {
+#if false
+ if (barcodeIn != "")
+ {
+ Postazione.messaggiText = string.Format("{0}: {1}", traduci("BCodeIns"), barcodeIn);
+ switch (MagClass.tipoBCode(barcodeIn))
+ {
+ case tipoCodiceBarcode.AL:
+ // verifico AL
+ if (checkAL(barcodeIn))
+ {
+ sourceAL = barcodeIn;
+ }
+ doUpdate();
+ break;
+ case tipoCodiceBarcode.UDC:
+ // verifico UDC
+ if (checkUDC(barcodeIn))
+ {
+ string AL = "";
+ // recupero da UDC
+ try
+ {
+ AL = MagClass.magazzino.taAL2UDC.getByUDC(barcodeIn)[0].AL;
+ }
+ catch
+ {
+ Postazione.warningText = traduci("ErroreUdcNonAl");
+ Postazione.CssClass = "stileComandoKo";
+ }
+ if (AL != "")
+ {
+ // verifico AL
+ if (checkAL(AL))
+ {
+ sourceAL = AL;
+ }
+ }
+ }
+ doUpdate();
+ break;
+ case tipoCodiceBarcode.Comando:
+ // se è reset cancello tutto!
+ if (barcodeIn == memLayer.ML.confReadString("cmdReset"))
+ {
+ resetIN();
+ Postazione.messaggiText = "";
+ Postazione.warningText = "";
+ doUpdate();
+ }
+ Postazione.CssClass = "stileAttesa";
+ break;
+ default:
+ Postazione.messaggiText = "";
+ Postazione.warningText = traduci("CodNonRicon");
+ Postazione.CssClass = "stileComandoND";
+ break;
+ }
+ barcodeIn = "";
+ }
+ else
+ {
+ Postazione.messaggiText = traduci("AttesaBCode");
+ Postazione.CssClass = "stileAttesa";
+ }
+#endif
+ doUpdate();
+ }
+ ///
+ /// modificato attributo registra/elimina attributo
+ ///
+ ///
+ ///
+ protected void chkAdd_CheckedChanged(object sender, EventArgs e)
+ {
+ doUpdate();
+ }
+ ///
+ /// aggiorna componenti + focus a barcode
+ ///
+ public void doUpdate()
+ {
+ if (AddAttr)
+ {
+ chkAdd.Text = traduci("AggiungiAttr");
+ lblAdd.Attributes.Remove("class");
+ lblAdd.Attributes.Add("class", "btn btn-warning");
+ }
+ else
+ {
+ chkAdd.Text = traduci("TogliAttr");
+ lblAdd.Attributes.Remove("class");
+ lblAdd.Attributes.Add("class", "btn btn-danger");
+ }
+#if false
+ grViewSource.DataBind();
+ updateBtns();
+ // raise dell'evento
+ if (eh_reqUpdate != null)
+ {
+ eh_reqUpdate(this, new EventArgs());
+ }
+ // controllo SE ho AL allora seleziono NumTratt o Durezza...
+ if (sourceAL == "")
+ {
+ txtBarcode.Focus();
+ }
+ else
+ {
+ if (NumTratt == "")
+ {
+ txtNumTratt.Focus();
+ }
+ else
+ {
+ if (!Durezza)
+ {
+ chkDurezza.Focus();
+ }
+ else
+ {
+ if (txtNote.Text.Trim() == "")
+ {
+ txtNote.Focus();
+ }
+ else
+ {
+ lbtStampaAL.Focus();
+ }
+ }
+ }
+ }
+#endif
+ }
}
}
///
diff --git a/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs b/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs
index 3c8e0b4e..397d1b0f 100644
--- a/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs
+++ b/GMW/WebUserControls/mod_recAttributiDtx.ascx.designer.cs
@@ -3,15 +3,49 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// the code is regenerated.
//
//------------------------------------------------------------------------------
-namespace GMW.WebUserControls
-{
-
-
- public partial class mod_recAttributiDtx
- {
+namespace GMW.WebUserControls {
+
+
+ public partial class mod_recAttributiDtx {
+
+ ///
+ /// lblDataMatrix control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDataMatrix;
+
+ ///
+ /// txtBarcode control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtBarcode;
+
+ ///
+ /// lblAdd control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl lblAdd;
+
+ ///
+ /// chkAdd control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkAdd;
}
}
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index dff4a96d..f066559b 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 5bfdea12..8454da68 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 11d11e1a..654b0906 100644
Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ