Files
SGGL_SHJ/SGGL/BLL/CLGL/TwConst.cs
T

90 lines
3.2 KiB
C#
Raw Normal View History

2024-09-18 10:48:34 +08:00
using System.Collections.Generic;
2024-09-24 20:38:50 +08:00
namespace BLL
2024-09-18 10:48:34 +08:00
{
2024-09-24 20:38:50 +08:00
public class TwConst
2024-09-18 10:48:34 +08:00
{
2024-09-24 20:38:50 +08:00
public enum InOutType : int
{
入库 = 1,
出库 = 2,
}
public enum TypeInt : int
{
采购入库 = 10,
退料入库 = 20,
其他入库 = 30,
领料出库 = 40,
补料出库 = 50,
其他出库 = 60,
2024-09-25 15:13:49 +08:00
散件出库 = 70,
2026-07-13 17:25:28 +08:00
调拨入库 = 80,
调拨出库 = 90,
2024-09-24 20:38:50 +08:00
}
public enum Category : int
{
全部 = 0,
管件 = 1,
管段 = 2,
}
public enum State : int
{
审核被拒 = -1,
待提交 = 0,
待审核 = 1,
已审核 = 2,
已完成 = 3,
}
public static Dictionary<string, int> TypeIntMap = new Dictionary<string, int>
2024-09-18 10:48:34 +08:00
{
{ "采购入库" ,(int)TypeInt.采购入库},
{ "退料入库" ,(int)TypeInt.退料入库},
{ "其他入库" ,(int)TypeInt.其他入库},
{ "领料出库" ,(int)TypeInt.领料出库},
{ "补料出库" ,(int)TypeInt.补料出库},
2024-09-25 15:13:49 +08:00
{ "其他出库" ,(int)TypeInt.其他出库},
2026-07-13 17:25:28 +08:00
{ "散件出库" ,(int)TypeInt.散件出库},
{ "调拨入库" ,(int)TypeInt.调拨入库},
{ "调拨出库" ,(int)TypeInt.调拨出库}
2024-09-27 18:17:21 +08:00
};
public static Dictionary<string, int> PlanPrintMap = new Dictionary<string, int>
{
2024-11-12 17:56:01 +08:00
{ "采购入库申请单" ,(int)TypeInt.采购入库},
{ "退料入库申请单" ,(int)TypeInt.退料入库},
2024-09-27 18:17:21 +08:00
{ "其他入库通知单" ,(int)TypeInt.其他入库},
{ "材料领用申请单" ,(int)TypeInt.领料出库},
{ "补料申请单" ,(int)TypeInt.补料出库},
{ "其他出库申请单" ,(int)TypeInt.其他出库},
2026-07-13 17:25:28 +08:00
{ "散件出库申请单" ,(int)TypeInt.散件出库},
{ "调拨入库申请单" ,(int)TypeInt.调拨入库},
{ "调拨出库申请单" ,(int)TypeInt.调拨出库}
2024-09-27 18:17:21 +08:00
};
public static Dictionary<string, int> PrintMap = new Dictionary<string, int>
{
{ "采购入库单" ,(int)TypeInt.采购入库},
{ "退料入库单" ,(int)TypeInt.退料入库},
{ "其他入库单" ,(int)TypeInt.其他入库},
{ "材料出库单" ,(int)TypeInt.领料出库},
{ "补料出库单" ,(int)TypeInt.补料出库},
{ "其他出库单" ,(int)TypeInt.其他出库},
2026-07-13 17:25:28 +08:00
{ "散件出库单" ,(int)TypeInt.散件出库},
{ "调拨入库单" ,(int)TypeInt.调拨入库},
{ "调拨出库单" ,(int)TypeInt.调拨出库}
2024-09-18 10:48:34 +08:00
};
2024-09-24 20:38:50 +08:00
public static Dictionary<string, int> StateMap = new Dictionary<string, int>
2024-09-18 10:48:34 +08:00
{
{ "待提交" ,(int)State.待提交},
{ "待审核" ,(int)State.待审核},
{ "已审核" ,(int)State.已审核},
{ "已完成" ,(int)State.已完成},
{ "审核被拒" ,(int)State.审核被拒},
};
2024-09-24 20:38:50 +08:00
public static Dictionary<string, int> CategoryMap = new Dictionary<string, int>
2024-09-18 10:48:34 +08:00
{
{ "全部" ,(int)Category.全部},
2024-09-18 10:48:34 +08:00
{ "管件" ,(int)Category.管件},
2024-09-24 20:38:50 +08:00
{ "管段" ,(int)Category.管段},
2024-09-18 10:48:34 +08:00
};
2024-09-24 20:38:50 +08:00
}
2026-07-13 17:25:28 +08:00
}