| | |
| | | namespace Tiger.Model |
| | | { |
| | | /// <summary> |
| | | /// 实体:工单工序行为 |
| | | /// 实体:工单工序行为 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("工单工序行为")] |
| | | [DisplayName("工单工序行为")] |
| | | [Serializable] |
| | | [SugarTable("MES_WO_ACTION")] |
| | | public class MES_WO_ACTION : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:工单工序行为 |
| | | /// 实体:工单工序行为 |
| | | /// </summary> |
| | | public MES_WO_ACTION() {} |
| | | #endregion |
| | | |
| | | #region 公共属性 |
| | | #region 公共属性 |
| | | /// <summary> |
| | | /// 关联工单号 |
| | | /// 关联工单号 |
| | | /// </summary> |
| | | [DisplayName("关联工单号")] |
| | | [DisplayName("关联工单号")] |
| | | public string WORK_ORDER { get; set; } |
| | | /// <summary> |
| | | /// 产品编码 |
| | | /// 产品编码 |
| | | /// </summary> |
| | | [DisplayName("产品编码")] |
| | | [DisplayName("产品编码")] |
| | | public string PROD_CODE { get; set; } |
| | | /// <summary> |
| | | /// 客户编码(留空则不区分客户) |
| | | /// 客户编码(留空则不区分客户) |
| | | /// </summary> |
| | | [DisplayName("客户编码(留空则不区分客户)")] |
| | | [DisplayName("客户编码(留空则不区分客户)")] |
| | | public string CUST_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工单行为节点ID |
| | | /// 工艺路线ID |
| | | /// </summary> |
| | | [DisplayName("工单行为节点ID")] |
| | | [DisplayName("工艺路线ID")] |
| | | public string ROT_ID { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线ID |
| | | /// 工单路线节点ID |
| | | /// </summary> |
| | | [DisplayName("工艺路线ID")] |
| | | [DisplayName("工单路线节点ID")] |
| | | public string NODE_ID { get; set; } |
| | | /// <summary> |
| | | /// 工单路线节点ID |
| | | /// 工单行为节点ID |
| | | /// </summary> |
| | | [DisplayName("工单路线节点ID")] |
| | | [DisplayName("工单行为节点ID")] |
| | | public string ACT_ID { get; set; } |
| | | /// <summary> |
| | | /// 行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|5Package包装规则) |
| | | /// 行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则) |
| | | /// </summary> |
| | | [DisplayName("行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|5Package包装规则)")] |
| | | [DisplayName("行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则)")] |
| | | public int ACT_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 行为定义编码 |
| | | /// 行为定义编码 |
| | | /// </summary> |
| | | [DisplayName("行为定义编码")] |
| | | [DisplayName("行为定义编码")] |
| | | public string ACT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 扫码验证:条码规则 |
| | | /// 扫码验证:条码规则 |
| | | /// </summary> |
| | | [DisplayName("扫码验证:条码规则")] |
| | | [DisplayName("扫码验证:条码规则")] |
| | | public string RULE_CODE { get; set; } |
| | | /// <summary> |
| | | /// 组装上料:物料料号 |
| | | /// 组装上料:物料料号 |
| | | /// </summary> |
| | | [DisplayName("组装上料:物料料号")] |
| | | [DisplayName("组装上料:物料料号")] |
| | | public string ITEM_CODE { get; set; } |
| | | /// <summary> |
| | | /// 产品测试:检验项目编码 |
| | | /// 产品测试:检验项目编码 |
| | | /// </summary> |
| | | [DisplayName("产品测试:检验项目编码")] |
| | | [DisplayName("产品测试:检验项目编码")] |
| | | public string TEST_CODE { get; set; } |
| | | /// <summary> |
| | | /// 产品抽检:抽样规则编码 |
| | | /// 产品抽检:抽样规则编码 |
| | | /// </summary> |
| | | [DisplayName("产品抽检:抽样规则编码")] |
| | | [DisplayName("产品抽检:抽样规则编码")] |
| | | public string SAPL_CODE { get; set; } |
| | | /// <summary> |
| | | /// 标签打印:标签模板编码 |
| | | /// 标签打印:标签模板编码 |
| | | /// </summary> |
| | | [DisplayName("标签打印:标签模板编码")] |
| | | [DisplayName("标签打印:标签模板编码")] |
| | | public string LABEL_CODE { get; set; } |
| | | /// <summary> |
| | | /// 包装规则:包装规则编码 |
| | | /// 包装规则:包装规则编码 |
| | | /// </summary> |
| | | [DisplayName("包装规则:包装规则编码")] |
| | | [DisplayName("包装规则:包装规则编码")] |
| | | public string PKG_CODE { get; set; } |
| | | /// <summary> |
| | | /// 是否启用(Y/N) |
| | | /// 是否启用(Y/N) |
| | | /// </summary> |
| | | [DisplayName("是否启用(Y/N)")] |
| | | [DisplayName("是否启用(Y/N)")] |
| | | public string IS_ACTIVE { get; set; } |
| | | /// <summary> |
| | | /// 设置值1 |
| | | /// </summary> |
| | | [DisplayName("设置值1")] |
| | | /// <summary> |
| | | /// 是否设置完成(Y/N) |
| | | /// </summary> |
| | | [DisplayName("是否设置完成(Y/N)")] |
| | | public string SETUP_FINISH { get; set; } |
| | | /// <summary> |
| | | /// 设置值1 |
| | | /// </summary> |
| | | [DisplayName("设置值1")] |
| | | public string OPTION_1 { get; set; } |
| | | /// <summary> |
| | | /// 设置值2 |
| | | /// 设置值2 |
| | | /// </summary> |
| | | [DisplayName("设置值2")] |
| | | [DisplayName("设置值2")] |
| | | public string OPTION_2 { get; set; } |
| | | /// <summary> |
| | | /// 设置值3 |
| | | /// 设置值3 |
| | | /// </summary> |
| | | [DisplayName("设置值3")] |
| | | [DisplayName("设置值3")] |
| | | public string OPTION_3 { get; set; } |
| | | /// <summary> |
| | | /// 设置值4 |
| | | /// 设置值4 |
| | | /// </summary> |
| | | [DisplayName("设置值4")] |
| | | [DisplayName("设置值4")] |
| | | public string OPTION_4 { get; set; } |
| | | /// <summary> |
| | | /// 设置值5 |
| | | /// 设置值5 |
| | | /// </summary> |
| | | [DisplayName("设置值5")] |
| | | [DisplayName("设置值5")] |
| | | public string OPTION_5 { get; set; } |
| | | /// <summary> |
| | | /// 是否设置完成(Y/N) |
| | | /// </summary> |
| | | [DisplayName("是否设置完成(Y/N)")] |
| | | public string SETUP_FINISH { get; set; } |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | [DisplayName("备注")] |
| | | /// <summary> |
| | | /// 设置值6 |
| | | /// </summary> |
| | | [DisplayName("设置值6")] |
| | | public string OPTION_6 { get; set; } |
| | | /// <summary> |
| | | /// 设置值7 |
| | | /// </summary> |
| | | [DisplayName("设置值7")] |
| | | public string OPTION_7 { get; set; } |
| | | /// <summary> |
| | | /// 设置值8 |
| | | /// </summary> |
| | | [DisplayName("设置值8")] |
| | | public string OPTION_8 { get; set; } |
| | | /// <summary> |
| | | /// 设置值9 |
| | | /// </summary> |
| | | [DisplayName("设置值9")] |
| | | public string OPTION_9 { get; set; } |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | [DisplayName("备注")] |
| | | public string REMARK { get; set; } |
| | | #endregion |
| | | |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string FieldName { get; set; } |
| | | */ |
| | | #endregion |
| | | |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WO_ACTION类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | | //一对多外键导航 |
| | | [Navigate(NavigateType.OneToMany, nameof(ClassA.MES_WO_ACTIONId))]//ClassA表中的MES_WO_ACTIONId |
| | | public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null |
| | | //多对多外键导航 |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WO_ACTIONId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WO_ACTION类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | | //一对多外键导航 |
| | | [Navigate(NavigateType.OneToMany, nameof(ClassA.MES_WO_ACTIONId))]//ClassA表中的MES_WO_ACTIONId |
| | | public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null |
| | | //多对多外键导航 |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WO_ACTIONId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | */ |
| | | #endregion |
| | | |
| | | #region 枚举变量 |
| | | /*例子 |
| | | #region 枚举变量 |
| | | /*例子 |
| | | public enum FieldNames |
| | | { |
| | | [Description("枚举描述0")] |
| | | [Description("枚举描述0")] |
| | | Enum0, |
| | | [Description("枚举描述1")] |
| | | [Description("枚举描述1")] |
| | | Enum1, |
| | | } |
| | | */ |
| | | |
| | | /// <summary> |
| | | /// 枚举:行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|5Package包装规则) |
| | | /// 枚举:行为类型(0Normal默认行为|1Scan扫码验证|2Assy组装上料|3Test产品测试|4Audit产品抽检|5Print标签打印|6Package包装规则) |
| | | /// </summary> |
| | | public enum ACT_TYPEs |
| | | { |
| | | [Description("默认行为")] |
| | | [Description("默认行为")] |
| | | Normal = 0, |
| | | [Description("扫码验证")] |
| | | [Description("扫码验证")] |
| | | Scan = 1, |
| | | [Description("组装上料")] |
| | | [Description("组装上料")] |
| | | Assy = 2, |
| | | [Description("产品测试")] |
| | | [Description("产品测试")] |
| | | Test = 3, |
| | | [Description("产品抽检")] |
| | | [Description("产品抽检")] |
| | | Audit = 4, |
| | | [Description("标签打印")] |
| | | [Description("标签打印")] |
| | | Print = 5, |
| | | [Description("包装规则")] |
| | | Package = 5, |
| | | [Description("包装规则")] |
| | | Package = 6, |
| | | } |
| | | #endregion |
| | | |
| | | #region 公共方法 |
| | | #region 公共方法 |
| | | |
| | | #endregion |
| | | |