You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
515 lines
16 KiB
C#
515 lines
16 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Estsh.Core.Model.EnumUtil
|
|
{
|
|
public class WmsEnumUtil
|
|
{
|
|
|
|
[Description("库存条码状态")]
|
|
public enum StockStatus : int
|
|
{
|
|
[Description("已生成")]
|
|
GENERATED = 10,
|
|
[Description("待收货")]
|
|
WAITING_RECEIVE = 20,
|
|
[Description("已收货")]
|
|
RECEIVED = 25,
|
|
[Description("待质检")]
|
|
WAITING_QUALITY = 30,
|
|
[Description("待上架")]
|
|
WAITING_INSTOCK = 40,
|
|
[Description("已上架未报工")]
|
|
INSTOCK_NOWORK = 45,
|
|
[Description("已上架")]
|
|
INSTOCKED = 50,
|
|
[Description("已配料")]
|
|
BATCHED = 60,
|
|
[Description("已上线")]
|
|
ONLINED = 70,
|
|
[Description("NC隔离")]
|
|
NC_QUARANTINE = 80,
|
|
[Description("NC入库")]
|
|
NC_INSTOCK = 90,
|
|
[Description("已发运")]
|
|
SHIPPED = 100,
|
|
[Description("已退货")]
|
|
RETURNED = 110,
|
|
[Description("已调拨配料")]
|
|
ALLOCATION_BATCHED = 120,
|
|
[Description("已调拨发运")]
|
|
ALLOCATION_SHIPPED = 130,
|
|
[Description("已报废")]
|
|
SCRAPED = 140,
|
|
[Description("已拒收")]
|
|
REJECTION = 150,
|
|
[Description("零星出库")]
|
|
OUTSTOCKED = 160,
|
|
[Description("待零星入库")]
|
|
WAITINSTOCKED = 170
|
|
}
|
|
|
|
[Description("库位类型")]
|
|
public enum LocateType : int
|
|
{
|
|
[Description("基础库位")]
|
|
BASICS_LOCATE = 10,
|
|
[Description("机动库位")]
|
|
MANEUVER_LOCATE = 20,
|
|
[Description("动态组合库位")]
|
|
COMBINATION_LOCATE = 30,
|
|
[Description("线边库位")]
|
|
LINE_LOCATE = 40,
|
|
[Description("收货库位")]
|
|
COLLECT_LOCATE = 50,
|
|
[Description("NC库位")]
|
|
NC_LOCATE = 60,
|
|
[Description("在途库位")]
|
|
TRANSIT_LOCATE = 70,
|
|
[Description("退货库位")]
|
|
RETURN_LOCATE = 80,
|
|
[Description("委外库位")]
|
|
OUTSOURCE_LOCATE = 90,
|
|
[Description("成品下线虚拟库位")]
|
|
OFFLINEVIRTUAL_LOCATE = 100
|
|
}
|
|
|
|
[Description("采购单据类型")]
|
|
public enum PurchaseOrderType : int
|
|
{
|
|
[Description("PO")]
|
|
PO = 10,
|
|
[Description("ASN")]
|
|
ASN = 20,
|
|
[Description("委外采购")]
|
|
SUB = 30,
|
|
[Description("支给件")]
|
|
SWITCH = 40
|
|
|
|
}
|
|
|
|
[Description("采购单据状态")]
|
|
public enum PurchaseOrderStatus : int
|
|
{
|
|
[Description("创建")]
|
|
CREATE = 10,
|
|
[Description("已生成")]
|
|
GENERATED = 20,
|
|
[Description("处理中")]
|
|
PROCESSING = 30,
|
|
[Description("已完成")]
|
|
COMPLETED = 40,
|
|
[Description("已关闭")]
|
|
CLOSED = 50,
|
|
[Description("已取消")]
|
|
CANCEL = 60
|
|
}
|
|
|
|
[Description("采购单据明细状态")]
|
|
public enum PurchaseOrderDetailStatus : int
|
|
{
|
|
[Description("创建")]
|
|
CREATE = 10,
|
|
[Description("已生成")]
|
|
GENERATED = 20,
|
|
[Description("处理中")]
|
|
PROCESSING = 30,
|
|
[Description("已完成")]
|
|
COMPLETED = 40,
|
|
[Description("已关闭")]
|
|
CLOSED = 50,
|
|
[Description("已取消")]
|
|
CANCEL = 60
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// MoveOrderType、InStockType、OutStockType使用同一个递增规则编号
|
|
/// </summary>
|
|
[Description("移动单据类型")]
|
|
public enum MoveOrderType : int
|
|
{
|
|
[Description("生产领料")]
|
|
PICK = 10,
|
|
[Description("零星入库")]
|
|
EXCEPTION_IN_STOCK = 20,
|
|
[Description("零星出库")]
|
|
EXCEPTION_OUT_STOCK = 30,
|
|
[Description("NC入库")]
|
|
NC_IN_STOCK = 40,
|
|
[Description("NC让步接收")]
|
|
NC_CONCESSION = 50,
|
|
[Description("NC报废")]
|
|
NC_SCRAP = 60,
|
|
[Description("非JIS发运")]
|
|
NO_JIS_SHIPPING = 70,
|
|
[Description("供应商退货")]
|
|
SUPPLIER_RETURN = 80,
|
|
[Description("委外退回")]
|
|
OUTSOURCE_BACK = 90,
|
|
[Description("委外发运")]
|
|
OUTSOURCE_ACTION = 100,
|
|
[Description("NC移库")]
|
|
NC_MOVE = 110,
|
|
[Description("销售发运-JIS")]
|
|
SALE_SHIPPING = 120,
|
|
[Description("线外生产入库报工")]
|
|
OFFLINE_IN_STOCK = 130,
|
|
[Description("单据移库")]
|
|
TRANSFER_ORDER = 140,
|
|
[Description("生产入库")]
|
|
ProductionIn_ORDER = 150,
|
|
[Description("销售发运-非JIS")]
|
|
SALE_SHIPPING_NJIS = 160,
|
|
[Description("生产补料")]
|
|
FEDBATCH = 300,
|
|
[Description("生产退料")]
|
|
STORESRETURNED = 280,
|
|
[Description("返修NC入库")]
|
|
REWORK_NC_IN_STOCK = 310
|
|
}
|
|
|
|
/// <summary>
|
|
/// MoveOrderType、InStockType、OutStockType使用同一个递增规则编号
|
|
/// </summary>
|
|
[Description("入库单据类型")]
|
|
public enum InStockType : int
|
|
{
|
|
[Description("零星入库")]
|
|
EXCEPTION_IN_STOCK = 20,
|
|
[Description("委外退回")]
|
|
OUTSOURCE_BACK = 90,
|
|
[Description("线外生产入库报工")]
|
|
OFFLINE_IN_STOCK = 130,
|
|
[Description("生产入库")]
|
|
ProductionIn_ORDER = 150,
|
|
[Description("预留入库")]
|
|
RESERVE_IN = 180,
|
|
[Description("返修退库")]
|
|
REWORK_IN = 190,
|
|
[Description("返修NC入库")]
|
|
REWORK_NC_IN_STOCK = 310
|
|
}
|
|
|
|
/// <summary>
|
|
/// MoveOrderType、InStockType、OutStockType使用同一个递增规则编号
|
|
/// </summary>
|
|
[Description("出库单据类型")]
|
|
public enum OutStockType : int
|
|
{
|
|
[Description("零星出库")]
|
|
EXCEPTION_OUT_STOCK = 30,
|
|
[Description("NC报废")]
|
|
NC_SCRAP = 60,
|
|
[Description("非JIS发运")]
|
|
NO_JIS_SHIPPING = 70,
|
|
[Description("供应商退货")]
|
|
SUPPLIER_RETURN = 80,
|
|
[Description("委外发运")]
|
|
OUTSOURCE_ACTION = 100,
|
|
[Description("销售发运-JIS")]
|
|
SALE_SHIPPING = 120,
|
|
[Description("销售发运-非JIS")]
|
|
SALE_SHIPPING_NJIS = 160,
|
|
[Description("预留出库")]
|
|
RESERVE_OUT = 170,
|
|
[Description("返修领料")]
|
|
REWORK_OUT = 200,
|
|
[Description("成品发运")]
|
|
JIS_SHIPPING = 90
|
|
}
|
|
|
|
[Description("移动单据状态")]
|
|
public enum MoveOrderStatus : int
|
|
{
|
|
[Description("创建中")]
|
|
CREATEING = 5,
|
|
[Description("创建")]
|
|
CREATE = 10,
|
|
[Description("已生成")]
|
|
GENERATED = 20,
|
|
[Description("处理中")]
|
|
PROCESSING = 30,
|
|
[Description("已配料")]
|
|
BATCHOVER = 35,
|
|
[Description("已完成")]
|
|
COMPLETED = 40,
|
|
[Description("已关闭")]
|
|
CLOSED = 50,
|
|
[Description("已取消")]
|
|
CANCEL = 60
|
|
}
|
|
|
|
[Description("移动单据明细状态")]
|
|
public enum MoveOrderDetailStatus : int
|
|
{
|
|
[Description("创建")]
|
|
CREATE = 10,
|
|
[Description("已生成")]
|
|
GENERATED = 20,
|
|
[Description("处理中")]
|
|
BATCHING = 30,
|
|
[Description("已完成")]
|
|
COMPLETED = 40,
|
|
[Description("已关闭")]
|
|
CLOSED = 50,
|
|
[Description("已取消")]
|
|
CANCEL = 60
|
|
}
|
|
|
|
[Description("移动单据条码状态")]
|
|
public enum MoveOrderSnStatus : int
|
|
{
|
|
[Description("创建")]
|
|
CREATE = 10,
|
|
[Description("已生成")]
|
|
GENERATED = 20,
|
|
[Description("已配料")]
|
|
BATCHED = 30,
|
|
[Description("已上线")]
|
|
ONLINED = 40,
|
|
[Description("已发运")]
|
|
SHIPPED = 50,
|
|
[Description("已处理")]
|
|
PROCESSED = 60,
|
|
[Description("已提交")]
|
|
SUBMITED = 70
|
|
}
|
|
|
|
[Description("事务类型")]
|
|
public enum TransType
|
|
{
|
|
[Description("特殊事务")]
|
|
SPECIAL = 10,
|
|
[Description("收货")]
|
|
RC = 20,
|
|
[Description("免检")]
|
|
EXEMPT_QC = 30,
|
|
[Description("通知质检")]
|
|
NOTIFY_QC = 40,
|
|
[Description("质检")]
|
|
QC = 50,
|
|
[Description("入库")]
|
|
INSTOCK = 60,
|
|
[Description("移库")]
|
|
MOVESTOCK = 70,
|
|
[Description("物料拆分")]
|
|
PART_SPLIT = 80,
|
|
[Description("物料合并")]
|
|
PART_MERGE = 90,
|
|
[Description("生产领料")]
|
|
PRODUCTION_PICK = 100,
|
|
[Description("领料上线")]
|
|
PICK_ONLINE = 110,
|
|
[Description("NC隔离")]
|
|
QUARANTINE = 120,
|
|
[Description("NC入库")]
|
|
NC_INSTOCK = 130,
|
|
[Description("返修NC入库")]
|
|
REWORK_NC_INSTOCK = 135,
|
|
[Description("调拨配料")]
|
|
ALLOCATION_BATCHED = 140,
|
|
[Description("调拨发运")]
|
|
ALLOCATION_SHIPPED = 150,
|
|
[Description("零星入库")]
|
|
SCATTERED_INSTOCK = 160,
|
|
[Description("零星出库")]
|
|
SCATTERED_OUTSTOCK = 170,
|
|
[Description("生产报工")]
|
|
PRODUCTION_REPORT = 180,
|
|
[Description("JIS发运配料")]
|
|
JIS_PICK = 190,
|
|
[Description("JIS发运出库")]
|
|
JIS_OUTSTOCK = 200,
|
|
[Description("非JIS发运配料")]
|
|
NO_JIS_PICK = 210,
|
|
[Description("非JIS发运出库")]
|
|
NO_JIS_OUTSTOCK = 220,
|
|
[Description("NC报废")]
|
|
NC_SCRAP = 230,
|
|
[Description("成品入库")]
|
|
FINISHED_PRODUCT_INSTOCK = 240,
|
|
[Description("委外发运")]
|
|
OUTWARD_SHIPMENT = 250,
|
|
[Description("盘点冻结")]
|
|
CS_FREEZE = 260,
|
|
[Description("盘点更新")]
|
|
CS_UPDATE = 270,
|
|
[Description("生产退料")]
|
|
PRODUCT_RETURN = 280,
|
|
[Description("WIP入库")]
|
|
WIP_INSTOCK = 290,
|
|
[Description("成品包装")]
|
|
FINISHED_PRODUCT_PACKAGE = 300,
|
|
[Description("SMRR退货")]
|
|
SMRR_RETURN = 310,
|
|
[Description("DMR退货")]
|
|
DMR_RETURN = 320,
|
|
[Description("NC让步接收")]
|
|
NC_CONCESSION = 330,
|
|
[Description("供应商退货")]
|
|
SUPPLIER_RETURN = 340,
|
|
[Description("委外退回")]
|
|
OUTSOURCE_BACK = 350,
|
|
[Description("销售配料")]
|
|
SALE_PICK = 360,
|
|
[Description("销售发运")]
|
|
SALE_SHIPMENT = 370,
|
|
[Description("生产入库/报工")]
|
|
IN_STOCK_RACK_PACKAGE = 380,
|
|
[Description("委外配料")]
|
|
OUTWARD_PICK = 390,
|
|
[Description("生产扣减")]
|
|
PRODUCT_DEDUCT = 400,
|
|
[Description("生产入库/料架")]
|
|
IN_STOCK_RACK_PACKAGE_RACK = 410,
|
|
[Description("侧翼入库")]
|
|
IN_STOCK_CEYI = 420,
|
|
[Description("MES条码变更")]
|
|
MES_CARTON_CHANGE = 430,
|
|
}
|
|
|
|
[Description("拉动组类型")]
|
|
public enum PullGroupType : int
|
|
{
|
|
|
|
[Description("生产JIT拉动")]
|
|
PRODUCT_JIT = 20,
|
|
[Description("预测JIT拉动")]
|
|
EARLY_JIT = 10,
|
|
[Description("标准工单拉动")]
|
|
STANDARD_WO = 30
|
|
}
|
|
|
|
[Description("产线库区关系业务类型")]
|
|
public enum PdlineZoneBusiType : int
|
|
{
|
|
[Description("大件物料拉动")]
|
|
BIG_PART_PULL = 10,
|
|
[Description("小件物料拉动")]
|
|
SMALL_PART_PULL = 20,
|
|
|
|
}
|
|
|
|
[Description("委外退回状态")]
|
|
public enum WmsSubcontractDealStatus : int
|
|
{
|
|
[Description("已创建")]
|
|
CREATE = 10,
|
|
[Description("处理中")]
|
|
PROCESSING = 20,
|
|
[Description("已完成")]
|
|
COMPLETED = 30,
|
|
}
|
|
|
|
[Description("车辆到达状态")]
|
|
public enum WmsCarArriveStatus : int
|
|
{
|
|
[Description("准点")]
|
|
ONTIME = 10,
|
|
[Description("早到")]
|
|
EARLY = 20,
|
|
[Description("晚到")]
|
|
LATE = 30,
|
|
}
|
|
|
|
[Description("车辆厂内状态")]
|
|
public enum WmsCarInPlantStatus : int
|
|
{
|
|
[Description("创建")]
|
|
CREATE = 10,
|
|
[Description("等待")]
|
|
WAITFOR = 20,
|
|
[Description("准入")]
|
|
INPLANT = 30,
|
|
[Description("作业中")]
|
|
PROCESSING = 40,
|
|
[Description("准出")]
|
|
EXITING = 50,
|
|
[Description("已出厂")]
|
|
OUTPLANT = 60,
|
|
}
|
|
|
|
[Description("SAP->WMS指令移库单据类型")]
|
|
public enum SapMiscoZactionType
|
|
{
|
|
[Description("零星出库")]
|
|
C00,
|
|
[Description("零星入库")]
|
|
C01,
|
|
[Description("311预留出库")]
|
|
C02,
|
|
[Description("311预留入库")]
|
|
C03,
|
|
[Description("201预留出库")]
|
|
C04,
|
|
}
|
|
|
|
[Description("WMS->SAP库存转储结果业务类型")]
|
|
public enum WmsMovrActionType
|
|
{
|
|
[Description("NC入库")]
|
|
M01,
|
|
[Description("NC让步接收")]
|
|
M02,
|
|
[Description("NC报废")]
|
|
M03,
|
|
[Description("委外发运")]
|
|
M04,
|
|
[Description("委外退回")]
|
|
M05,
|
|
[Description("零星出库")]
|
|
M06,
|
|
[Description("零星入库")]
|
|
M07,
|
|
[Description("预留出库")]
|
|
M08,
|
|
[Description("预留入库")]
|
|
M09,
|
|
[Description("返修退库")]
|
|
M10,
|
|
[Description("指令移库")]
|
|
M11,
|
|
[Description("返修领料")]
|
|
M12,
|
|
}
|
|
|
|
[Description("盘点清单事务状态")]
|
|
public enum CheckStockListTransStatus
|
|
{
|
|
// inventory profit
|
|
[Description("未盘")]
|
|
NO_INVENTORY = 10,
|
|
[Description("一致")]
|
|
IDENTICAL = 20,
|
|
[Description("盘盈")]
|
|
INVENTORY_PROFIT = 30,
|
|
[Description("盘亏")]
|
|
INVENTORY_LOSS = 40,
|
|
[Description("新增")]
|
|
NEW = 50,
|
|
[Description("库位不一致")]
|
|
DIFF_LOCAL = 60
|
|
}
|
|
|
|
|
|
|
|
|
|
[Description("是否有效")]
|
|
public enum Enabled
|
|
{
|
|
[Description("有效")]
|
|
Y,
|
|
[Description("无效")]
|
|
N
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|