| | |
| | | |
| | | namespace Tiger.Model |
| | | { |
| | | /// <summary> |
| | | /// 实体:生产行为记录 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("生产行为记录")] |
| | | [Serializable] |
| | | [SugarTable("MES_WIP_ACT")] |
| | | public class MES_WIP_ACT : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:生产行为记录 |
| | | /// </summary> |
| | | public MES_WIP_ACT() {} |
| | | #endregion |
| | | /// <summary> |
| | | /// 实体:生产行为记录 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("生产行为记录")] |
| | | [Serializable] |
| | | [SugarTable("MES_WIP_ACT")] |
| | | public class MES_WIP_ACT : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:生产行为记录 |
| | | /// </summary> |
| | | public MES_WIP_ACT() { } |
| | | #endregion |
| | | |
| | | #region 公共属性 |
| | | /// <summary> |
| | | /// 生产过程记录ID |
| | | /// </summary> |
| | | [DisplayName("生产过程记录ID")] |
| | | public string HIS_ID { get; set; } |
| | | /// <summary> |
| | | /// 过站条码 |
| | | /// </summary> |
| | | [DisplayName("过站条码")] |
| | | public string SN { get; set; } |
| | | /// <summary> |
| | | /// 状态(0Init初始化|1Input已投入|2OK良品过站|3NG不良过站|4Repair维修中|5Finished已完工|6Scrap已报废|7InStorage已入库|8Reject已拒收|9Shipped已出货) |
| | | /// </summary> |
| | | [DisplayName("状态(0Init初始化|1Input已投入|2OK良品过站|3NG不良过站|4Repair维修中|5Finished已完工|6Scrap已报废|7InStorage已入库|8Reject已拒收|9Shipped已出货)")] |
| | | public int STATUS { get; set; } |
| | | /// <summary> |
| | | /// 物料编码 |
| | | /// </summary> |
| | | [DisplayName("物料编码")] |
| | | public string ITEM_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工单号 |
| | | /// </summary> |
| | | [DisplayName("工单号")] |
| | | public string WORK_ORDER { get; set; } |
| | | /// <summary> |
| | | /// 工单批次号 |
| | | /// </summary> |
| | | [DisplayName("工单批次号")] |
| | | public string BATCH_NO { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线编码 |
| | | /// </summary> |
| | | [DisplayName("工艺路线编码")] |
| | | public string ROT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线节点ID |
| | | /// </summary> |
| | | [DisplayName("工艺路线节点ID")] |
| | | public string NODE_ID { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线节点名称 |
| | | /// </summary> |
| | | [DisplayName("工艺路线节点名称")] |
| | | public string NODE_NAME { get; set; } |
| | | /// <summary> |
| | | /// 工序行为ID |
| | | /// </summary> |
| | | [DisplayName("工序行为ID")] |
| | | public string ACT_ID { get; set; } |
| | | /// <summary> |
| | | /// 行为名称 |
| | | /// </summary> |
| | | [DisplayName("行为名称")] |
| | | public string ACT_NAME { get; set; } |
| | | /// <summary> |
| | | /// 工厂编码 |
| | | /// </summary> |
| | | [DisplayName("工厂编码")] |
| | | public string FTY_CODE { get; set; } |
| | | /// <summary> |
| | | /// 车间编码 |
| | | /// </summary> |
| | | [DisplayName("车间编码")] |
| | | public string WS_CODE { get; set; } |
| | | /// <summary> |
| | | /// 产线编码 |
| | | /// </summary> |
| | | [DisplayName("产线编码")] |
| | | public string LINE_CODE { get; set; } |
| | | /// <summary> |
| | | /// 岗位编码 |
| | | /// </summary> |
| | | [DisplayName("岗位编码")] |
| | | public string POST_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工序编码 |
| | | /// </summary> |
| | | [DisplayName("工序编码")] |
| | | public string OPER_CODE { get; set; } |
| | | /// <summary> |
| | | /// 加工段 |
| | | /// </summary> |
| | | [DisplayName("加工段")] |
| | | public string SEGMENT { get; set; } |
| | | /// <summary> |
| | | /// 托盘/载具条码 |
| | | /// </summary> |
| | | [DisplayName("托盘/载具条码")] |
| | | public string TRAY_SN { get; set; } |
| | | /// <summary> |
| | | /// 当前操作时间 |
| | | /// </summary> |
| | | [DisplayName("当前操作时间")] |
| | | public DateTime OPERATION_TIME { get; set; } = DateTime.MinValue; |
| | | /// <summary> |
| | | /// 班制编码 |
| | | /// </summary> |
| | | [DisplayName("班制编码")] |
| | | public string SFTS_CODE { get; set; } |
| | | /// <summary> |
| | | /// 班次编码 |
| | | /// </summary> |
| | | [DisplayName("班次编码")] |
| | | public string SFT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 时段编码 |
| | | /// </summary> |
| | | [DisplayName("时段编码")] |
| | | public string PRD_CODE { get; set; } |
| | | /// <summary> |
| | | /// 行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则) |
| | | /// </summary> |
| | | [DisplayName("行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则)")] |
| | | public int ACT_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 行为扫码 |
| | | /// </summary> |
| | | [DisplayName("行为扫码")] |
| | | public string ACT_SN { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值1 |
| | | /// </summary> |
| | | [DisplayName("行为操作值1")] |
| | | public string ACT_VALUE_1 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值2 |
| | | /// </summary> |
| | | [DisplayName("行为操作值2")] |
| | | public string ACT_VALUE_2 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值3 |
| | | /// </summary> |
| | | [DisplayName("行为操作值3")] |
| | | public string ACT_VALUE_3 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值4 |
| | | /// </summary> |
| | | [DisplayName("行为操作值4")] |
| | | public string ACT_VALUE_4 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值5 |
| | | /// </summary> |
| | | [DisplayName("行为操作值5")] |
| | | public string ACT_VALUE_5 { get; set; } |
| | | /// <summary> |
| | | /// 行为是否成功(Y/N) |
| | | /// </summary> |
| | | [DisplayName("行为是否成功(Y/N)")] |
| | | public string ACT_RESULT { get; set; } |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | [DisplayName("备注")] |
| | | public string REMARK { get; set; } |
| | | /// <summary> |
| | | /// 追溯信息 |
| | | /// </summary> |
| | | [DisplayName("追溯信息")] |
| | | public string TRACE_INFO { get; set; } |
| | | #endregion |
| | | #region 公共属性 |
| | | /// <summary> |
| | | /// 在制品ID |
| | | /// </summary> |
| | | [DisplayName("在制品ID")] |
| | | public string WIP_ID { get; set; } |
| | | /// <summary> |
| | | /// 生产过程记录ID |
| | | /// </summary> |
| | | [DisplayName("生产过程记录ID")] |
| | | public string HIS_ID { get; set; } |
| | | /// <summary> |
| | | /// 过站条码 |
| | | /// </summary> |
| | | [DisplayName("过站条码")] |
| | | public string SN { get; set; } |
| | | /// <summary> |
| | | /// 状态(0Init初始化|1Input已投入|2OK良品过站|3NG不良过站|4Repair维修中|5Finished已完工|6Scrap已报废|7InStorage已入库|8Reject已拒收|9Shipped已出货) |
| | | /// </summary> |
| | | [DisplayName("状态(0Init初始化|1Input已投入|2OK良品过站|3NG不良过站|4Repair维修中|5Finished已完工|6Scrap已报废|7InStorage已入库|8Reject已拒收|9Shipped已出货)")] |
| | | public int STATUS { get; set; } |
| | | /// <summary> |
| | | /// 物料编码 |
| | | /// </summary> |
| | | [DisplayName("物料编码")] |
| | | public string ITEM_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工单号 |
| | | /// </summary> |
| | | [DisplayName("工单号")] |
| | | public string WORK_ORDER { get; set; } |
| | | /// <summary> |
| | | /// 工单批次号 |
| | | /// </summary> |
| | | [DisplayName("工单批次号")] |
| | | public string BATCH_NO { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线编码 |
| | | /// </summary> |
| | | [DisplayName("工艺路线编码")] |
| | | public string ROT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线节点ID |
| | | /// </summary> |
| | | [DisplayName("工艺路线节点ID")] |
| | | public string NODE_ID { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线节点名称 |
| | | /// </summary> |
| | | [DisplayName("工艺路线节点名称")] |
| | | public string NODE_NAME { get; set; } |
| | | /// <summary> |
| | | /// 工序行为ID |
| | | /// </summary> |
| | | [DisplayName("工序行为ID")] |
| | | public string ACT_ID { get; set; } |
| | | /// <summary> |
| | | /// 行为名称 |
| | | /// </summary> |
| | | [DisplayName("行为名称")] |
| | | public string ACT_NAME { get; set; } |
| | | /// <summary> |
| | | /// 工厂编码 |
| | | /// </summary> |
| | | [DisplayName("工厂编码")] |
| | | public string FTY_CODE { get; set; } |
| | | /// <summary> |
| | | /// 车间编码 |
| | | /// </summary> |
| | | [DisplayName("车间编码")] |
| | | public string WS_CODE { get; set; } |
| | | /// <summary> |
| | | /// 产线编码 |
| | | /// </summary> |
| | | [DisplayName("产线编码")] |
| | | public string LINE_CODE { get; set; } |
| | | /// <summary> |
| | | /// 岗位编码 |
| | | /// </summary> |
| | | [DisplayName("岗位编码")] |
| | | public string POST_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工序编码 |
| | | /// </summary> |
| | | [DisplayName("工序编码")] |
| | | public string OPER_CODE { get; set; } |
| | | /// <summary> |
| | | /// 加工段 |
| | | /// </summary> |
| | | [DisplayName("加工段")] |
| | | public string SEGMENT { get; set; } |
| | | /// <summary> |
| | | /// 厂内流转条码 |
| | | /// </summary> |
| | | [DisplayName("厂内流转条码")] |
| | | public string FLOW_SN { get; set; } |
| | | /// <summary> |
| | | /// 托盘/载具条码 |
| | | /// </summary> |
| | | [DisplayName("托盘/载具条码")] |
| | | public string TRAY_SN { get; set; } |
| | | /// <summary> |
| | | /// 内包装条码 |
| | | /// </summary> |
| | | [DisplayName("内包装条码")] |
| | | public string INNER_SN { get; set; } |
| | | /// <summary> |
| | | /// 外箱条码 |
| | | /// </summary> |
| | | [DisplayName("外箱条码")] |
| | | public string CARTON_SN { get; set; } |
| | | /// <summary> |
| | | /// 栈板条码 |
| | | /// </summary> |
| | | [DisplayName("栈板条码")] |
| | | public string PALLET_SN { get; set; } |
| | | /// <summary> |
| | | /// 当前操作时间 |
| | | /// </summary> |
| | | [DisplayName("当前操作时间")] |
| | | public DateTime OPERATION_TIME { get; set; } = DateTime.MinValue; |
| | | /// <summary> |
| | | /// 班制编码 |
| | | /// </summary> |
| | | [DisplayName("班制编码")] |
| | | public string SFTS_CODE { get; set; } |
| | | /// <summary> |
| | | /// 班次编码 |
| | | /// </summary> |
| | | [DisplayName("班次编码")] |
| | | public string SFT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 时段编码 |
| | | /// </summary> |
| | | [DisplayName("时段编码")] |
| | | public string PRD_CODE { get; set; } |
| | | /// <summary> |
| | | /// 行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则) |
| | | /// </summary> |
| | | [DisplayName("行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则)")] |
| | | public int ACT_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 行为扫码 |
| | | /// </summary> |
| | | [DisplayName("行为扫码")] |
| | | public string ACT_SN { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值1 |
| | | /// </summary> |
| | | [DisplayName("行为操作值1")] |
| | | public string ACT_VALUE_1 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值2 |
| | | /// </summary> |
| | | [DisplayName("行为操作值2")] |
| | | public string ACT_VALUE_2 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值3 |
| | | /// </summary> |
| | | [DisplayName("行为操作值3")] |
| | | public string ACT_VALUE_3 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值4 |
| | | /// </summary> |
| | | [DisplayName("行为操作值4")] |
| | | public string ACT_VALUE_4 { get; set; } |
| | | /// <summary> |
| | | /// 行为操作值5 |
| | | /// </summary> |
| | | [DisplayName("行为操作值5")] |
| | | public string ACT_VALUE_5 { get; set; } |
| | | /// <summary> |
| | | /// 行为是否成功(Y/N) |
| | | /// </summary> |
| | | [DisplayName("行为是否成功(Y/N)")] |
| | | public string ACT_RESULT { get; set; } |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | [DisplayName("备注")] |
| | | public string REMARK { get; set; } |
| | | /// <summary> |
| | | /// 追溯信息 |
| | | /// </summary> |
| | | [DisplayName("追溯信息")] |
| | | public string TRACE_INFO { get; set; } |
| | | #endregion |
| | | |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string FieldName { get; set; } |
| | | */ |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WIP_ACT类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | | //一对多外键导航 |
| | | [Navigate(NavigateType.OneToMany, nameof(ClassA.MES_WIP_ACTId))]//ClassA表中的MES_WIP_ACTId |
| | | public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null |
| | | //多对多外键导航 |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WIP_ACTId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WIP_ACT类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | | //一对多外键导航 |
| | | [Navigate(NavigateType.OneToMany, nameof(ClassA.MES_WIP_ACTId))]//ClassA表中的MES_WIP_ACTId |
| | | public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null |
| | | //多对多外键导航 |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WIP_ACTId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | */ |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 枚举变量 |
| | | /*例子 |
| | | #region 枚举变量 |
| | | /*例子 |
| | | public enum FieldNames |
| | | { |
| | | [Description("枚举描述0")] |
| | | [Description("枚举描述0")] |
| | | Enum0, |
| | | [Description("枚举描述1")] |
| | | [Description("枚举描述1")] |
| | | Enum1, |
| | | } |
| | | */ |
| | | |
| | | /// <summary> |
| | | /// 枚举:状态(0Init初始化|1Input已投入|2OK良品过站|3NG不良过站|4Repair维修中|5Finished已完工|6Scrap已报废|7InStorage已入库|8Reject已拒收|9Shipped已出货) |
| | | /// </summary> |
| | | public enum STATUSs |
| | | { |
| | | [Description("初始化")] |
| | | Init = 0, |
| | | [Description("已投入")] |
| | | Input = 1, |
| | | [Description("良品过站")] |
| | | OK = 2, |
| | | [Description("不良过站")] |
| | | NG = 3, |
| | | [Description("维修中")] |
| | | Repair = 4, |
| | | [Description("已完工")] |
| | | Finished = 5, |
| | | [Description("已报废")] |
| | | Scrap = 6, |
| | | [Description("已入库")] |
| | | InStorage = 7, |
| | | [Description("已拒收")] |
| | | Reject = 8, |
| | | [Description("已出货")] |
| | | Shipped = 9, |
| | | } |
| | | /// <summary> |
| | | /// 枚举:状态(0Init初始化|1Input已投入|2OK良品过站|3NG不良过站|4Repair维修中|5Finished已完工|6Scrap已报废|7InStorage已入库|8Reject已拒收|9Shipped已出货) |
| | | /// </summary> |
| | | public enum STATUSs |
| | | { |
| | | [Description("初始化")] |
| | | Init = 0, |
| | | [Description("已投入")] |
| | | Input = 1, |
| | | [Description("良品过站")] |
| | | OK = 2, |
| | | [Description("不良过站")] |
| | | NG = 3, |
| | | [Description("维修中")] |
| | | Repair = 4, |
| | | [Description("已完工")] |
| | | Finished = 5, |
| | | [Description("已报废")] |
| | | Scrap = 6, |
| | | [Description("已入库")] |
| | | InStorage = 7, |
| | | [Description("已拒收")] |
| | | Reject = 8, |
| | | [Description("已出货")] |
| | | Shipped = 9, |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 枚举:行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则) |
| | | /// </summary> |
| | | public enum ACT_TYPEs |
| | | { |
| | | [Description("默认行为")] |
| | | Normal = 0, |
| | | [Description("扫码验证")] |
| | | Scan = 1, |
| | | [Description("组装上料")] |
| | | Assy = 2, |
| | | [Description("产品测试")] |
| | | Test = 3, |
| | | [Description("产品抽检")] |
| | | Audit = 4, |
| | | [Description("标签打印")] |
| | | Print = 5, |
| | | [Description("包装规则")] |
| | | Package = 6, |
| | | } |
| | | #endregion |
| | | /// <summary> |
| | | /// 枚举:行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则) |
| | | /// </summary> |
| | | public enum ACT_TYPEs |
| | | { |
| | | [Description("默认行为")] |
| | | Normal = 0, |
| | | [Description("扫码验证")] |
| | | Scan = 1, |
| | | [Description("组装上料")] |
| | | Assy = 2, |
| | | [Description("产品测试")] |
| | | Test = 3, |
| | | [Description("产品抽检")] |
| | | Audit = 4, |
| | | [Description("标签打印")] |
| | | Print = 5, |
| | | [Description("包装规则")] |
| | | Package = 6, |
| | | } |
| | | #endregion |
| | | |
| | | #region 公共方法 |
| | | #region 公共方法 |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | }//endClass |
| | | }//endClass |
| | | } |