57 lines
1.2 KiB
C#
57 lines
1.2 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)
|
|
{
|
|
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
} |