32 lines
872 B
C#
32 lines
872 B
C#
using System;
|
|
|
|
namespace NKC_WF.WebUserControls
|
|
{
|
|
public partial class cmp_kittingCart : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public string getCssByNums(object _numWait, object _numReady)
|
|
{
|
|
string answ = "alert-success border-success";
|
|
int numWait = 0;
|
|
int numReady = 0;
|
|
int.TryParse(_numWait.ToString(), out numWait);
|
|
int.TryParse(_numReady.ToString(), out numReady);
|
|
if (numWait > 0)
|
|
{
|
|
answ = "alert-danger border-danger";
|
|
}
|
|
else if (numReady > 0)
|
|
{ answ = "alert-warning border-warning"; }
|
|
else
|
|
{
|
|
answ = "alert-success border-success";
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
} |