-
+
diff --git a/MP-MAG/WebUserControls/cmp_barcode.ascx.cs b/MP-MAG/WebUserControls/cmp_barcode.ascx.cs
index 904b5a03..ec796086 100644
--- a/MP-MAG/WebUserControls/cmp_barcode.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_barcode.ascx.cs
@@ -22,7 +22,7 @@ namespace MP_MAG.WebUserControls
}
set
{
- txtBarcode.Text = "";
+ txtBarcode.Text = value;
txtBarcode.Focus();
}
}
@@ -45,7 +45,10 @@ namespace MP_MAG.WebUserControls
protected void txtBarcode_TextChanged(object sender, EventArgs e)
{
- raiseEvent();
+ if (!string.IsNullOrEmpty(inputAcquired))
+ {
+ raiseEvent();
+ }
}
#endregion Protected Methods
@@ -66,10 +69,10 @@ namespace MP_MAG.WebUserControls
public void showOutput(string cssClass, string messaggio)
{
// In primis: mostro qualcosa SOLO SE ho del testo
- lblOutput.Visible = !string.IsNullOrEmpty(messaggio);
- lblOutput.Text = messaggio;
lblOutput.Attributes.Remove("class");
lblOutput.Attributes.Add("class", cssClass);
+ lblOutput.Text = messaggio;
+ lblOutput.Visible = !string.IsNullOrEmpty(messaggio);
}
#endregion Public Methods
diff --git a/MP-MAG/WebUserControls/cmp_barcode.ascx.designer.cs b/MP-MAG/WebUserControls/cmp_barcode.ascx.designer.cs
index db147147..1e86e9af 100644
--- a/MP-MAG/WebUserControls/cmp_barcode.ascx.designer.cs
+++ b/MP-MAG/WebUserControls/cmp_barcode.ascx.designer.cs
@@ -1,35 +1,35 @@
//------------------------------------------------------------------------------
-//
-// Codice generato da uno strumento.
+//
+// This code was generated by a tool.
//
-// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
-// il codice viene rigenerato.
-//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
//------------------------------------------------------------------------------
namespace MP_MAG.WebUserControls
{
- public partial class cmp_barcode
- {
+ public partial class cmp_barcode
+ {
- ///
- /// Controllo txtBarcode.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.TextBox txtBarcode;
+ ///
+ /// 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;
- ///
- /// Controllo lblOutput.
- ///
- ///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
- ///
- protected global::System.Web.UI.WebControls.Label lblOutput;
- }
+ ///
+ /// lblOutput control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblOutput;
+ }
}