using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace NKC_WF.WebUserControls
{
public partial class cmp_barcode : BaseUserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void txtBarcode_TextChanged(object sender, EventArgs e)
{
raiseEvent();
}
///
/// Valore acquisito in lettura barcode
///
public string inputAcquired
{
get
{
return txtBarcode.Text.Trim();
}
set
{
txtBarcode.Text = "";
}
}
///
/// Gestione output da mostrare (opzionale
///
///
///
public void showOutput(string cssClass, string messaggio)
{
// In primis: mostro qualcosa SOLO SE ho del testo
lblError.Visible = (messaggio != "");
lblError.Text = messaggio;
lblError.Attributes.Remove("class");
lblError.Attributes.Add("class", cssClass);
}
}
}