Files
NKC/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs
T

73 lines
1.6 KiB
C#

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_stackBuilding : BaseUserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
// svuoto input barcode...
cmp_barcode.inputAcquired = "";
lblTest.Visible = false;
}
cmp_barcode.eh_doRefresh += Cmp_barcode_eh_doRefresh;
}
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
{
// processo evento..
lblTest.Text = cmp_barcode.inputAcquired;
lblTest.Visible = (lblTest.Text != "");
// reset comando
cmp_barcode.inputAcquired = "";
}
public int StackId
{
set
{
hfStackId.Value = value.ToString();
repCtrl.DataBind();
}
get
{
int answ = 0;
int.TryParse(hfStackId.Value, out answ);
return answ;
}
}
public string cssFlashNext(object _isNext)
{
string answ = "";
if (_isNext.ToString() == "1")
{
answ = " flashColor";
}
return answ;
}
public string cssByPrepared(object _prepared, object _isNext)
{
string answ = "table-secondary border border-secondary border-thick rounded";
if (_isNext.ToString() == "1")
{
answ = "table-primary flashColor rounded";
}
else
{
if (_prepared.ToString() != "")
{
answ = "table-success border border-success border-thick rounded";
}
}
return answ;
}
}
}