You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
867 B
36 lines
867 B
using System.Collections;
|
|
|
|
namespace EC.AutoWeightServer.Model.State
|
|
{
|
|
/// <summary>
|
|
/// 运单状态
|
|
/// InStart(10):进入开始; InWeight(11):进入称重; InFinish(12):进入结束;
|
|
/// OutStart(20):离开开始; OutWeight(21):离开称重; OutPrint(22):离开打印小票; OutFinish(23):离开结束;
|
|
/// </summary>
|
|
public enum BillState
|
|
{
|
|
Interrupt = 0,
|
|
InStart = 10,
|
|
InWeight = 11,
|
|
InFinish = 12,
|
|
OutStart = 20,
|
|
OutWeight = 21,
|
|
OutPrint = 22,
|
|
OutFinish = 23
|
|
}
|
|
|
|
public static class BillStateExt
|
|
{
|
|
public static string GetBillStateDesc(int state)
|
|
{
|
|
var table = new Hashtable
|
|
{
|
|
{(int) BillState.InStart, "入场开始"},
|
|
{(int) BillState.InFinish, "入场结束"},
|
|
{(int) BillState.OutStart, "出场开始"},
|
|
{(int) BillState.OutFinish, "出场结束"}
|
|
};
|
|
return (string)table[state];
|
|
}
|
|
}
|
|
}
|