using SteamWare; using System; namespace NKC_WF.WebUserControls { public partial class cmp_paint_bins : BaseUserControl { /// /// Testo titolo... /// public string titleText { set { lblTitle.Text = value; } get { return lblTitle.Text; } } /// /// Classe css titolo... /// public string titleClass { set { lblTitle.CssClass = value; } get { return lblTitle.CssClass; } } /// /// Batch corrente... /// public int BatchId { set { hfBatchID.Value = value.ToString(); doUpdate(); } get { int answ = 0; int.TryParse(hfBatchID.Value, out answ); return answ; } } /// /// Indica se mostrare o meno BatchID /// public bool ShowBatch { set { hfShowBatch.Value = value.ToString(); } get { bool answ = false; bool.TryParse(hfShowBatch.Value, out answ); return answ; } } /// /// Indica se mostrare o meno BinDtmx /// public bool ShowBinDtmx { set { hfShowBinDtmx.Value = value.ToString(); } get { bool answ = false; bool.TryParse(hfShowBinDtmx.Value, out answ); return answ; } } /// /// Indica se mostrare o meno QRCode /// public bool ShowQr { set { hfShowQr.Value = value.ToString(); } get { bool answ = false; bool.TryParse(hfShowQr.Value, out answ); return answ; } } /// /// Indica se mostrare o meno COMPLETED /// public bool ShowComplete { set { hfShowComplete.Value = value.ToString(); } get { bool answ = false; bool.TryParse(hfShowComplete.Value, out answ); return answ; } } /// /// Indica se mostrare o meno PAINTED /// public bool ShowPainted { set { hfShowPainted.Value = value.ToString(); } get { bool answ = false; bool.TryParse(hfShowPainted.Value, out answ); return answ; } } protected void Page_Load(object sender, EventArgs e) { } public void doUpdate() { grView.DataBind(); } /// /// Dimensione QRCode /// public int qrSize { get { int answ = 32; int.TryParse(hfQrSize.Value, out answ); return answ; } set { hfQrSize.Value = value.ToString(); doUpdate(); } } } }