| | |
| | | namespace Tiger.Model |
| | | { |
| | | /// <summary> |
| | | /// 实体:工单工序行为 |
| | | /// 实体:工单行为节点 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("工单工序行为")] |
| | | [DisplayName("工单行为节点")] |
| | | [Serializable] |
| | | [SugarTable("MES_WO_NODE_ACT")] |
| | | public class MES_WO_NODE_ACT : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:工单工序行为 |
| | | /// 实体:工单行为节点 |
| | | /// </summary> |
| | | public MES_WO_NODE_ACT() {} |
| | | #endregion |
| | |
| | | [DisplayName("产品编码")] |
| | | public string PROD_CODE { get; set; } |
| | | /// <summary> |
| | | /// 客户编码(留空则不区分客户) |
| | | /// 客户编码 |
| | | /// </summary> |
| | | [DisplayName("客户编码(留空则不区分客户)")] |
| | | [DisplayName("客户编码")] |
| | | public string CUST_CODE { get; set; } |
| | | /// <summary> |
| | | /// 工序行为ID |
| | | /// 行为名称 |
| | | /// </summary> |
| | | [DisplayName("工艺工序行为ID")] |
| | | public string ACT_ID { get; set; } |
| | | [DisplayName("行为名称")] |
| | | public string ACT_NAME { get; set; } |
| | | /// <summary> |
| | | /// 工艺路线ID |
| | | /// </summary> |
| | |
| | | [DisplayName("工序节点ID")] |
| | | public string NODE_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("行为编码")] |
| | | public string ACT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 绘图属性:type |
| | | /// </summary> |
| | | [DisplayName("绘图属性:type")] |
| | | public string GPH_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 绘图属性:x |
| | | /// </summary> |
| | | [DisplayName("绘图属性:x")] |
| | | public double GPH_X { get; set; } |
| | | /// <summary> |
| | | /// 绘图属性:y |
| | | /// </summary> |
| | | [DisplayName("绘图属性:y")] |
| | | public double GPH_Y { get; set; } |
| | | /// <summary> |
| | | /// 绘图属性:properties |
| | | /// </summary> |
| | | [DisplayName("绘图属性:properties")] |
| | | public string GPH_PROP { get; set; } |
| | | /// <summary> |
| | | /// 绘图属性:text |
| | | /// </summary> |
| | | [DisplayName("绘图属性:text")] |
| | | public string GPH_TEXT { get; set; } |
| | | /// <summary> |
| | | /// 是否启用(Y/N) |
| | | /// </summary> |
| | | [DisplayName("是否启用(Y/N)")] |
| | | public string IS_ACTIVE { get; set; } |
| | | /// <summary> |
| | | /// 是否设置才能下发生产(Y/N) |
| | | /// </summary> |
| | | [DisplayName("是否设置才能下发生产(Y/N)")] |
| | | public string NEED_SETUP { get; set; } |
| | | /// <summary> |
| | | /// 行为定义编码 |
| | | /// 执行出错时,是否重置整个工序的操作(Y/N) |
| | | /// </summary> |
| | | [DisplayName("行为定义编码")] |
| | | public string ACT_CODE { get; set; } |
| | | [DisplayName("执行出错时,是否重置整个工序的操作(Y/N)")] |
| | | public string NEED_RESET { get; set; } |
| | | /// <summary> |
| | | /// 扫码验证:条码规则 |
| | | /// 设置值1 |
| | | /// </summary> |
| | | [DisplayName("扫码验证:条码规则")] |
| | | public string RULE_CODE { get; set; } |
| | | /// <summary> |
| | | /// 组装上料:物料料号 |
| | | /// </summary> |
| | | [DisplayName("组装上料:物料料号")] |
| | | public string ITEM_CODE { get; set; } |
| | | /// <summary> |
| | | /// 产品测试:检验项目编码 |
| | | /// </summary> |
| | | [DisplayName("产品测试:检验项目编码")] |
| | | public string TEST_CODE { get; set; } |
| | | /// <summary> |
| | | /// 产品抽检:抽样规则编码 |
| | | /// </summary> |
| | | [DisplayName("产品抽检:抽样规则编码")] |
| | | public string SAPL_CODE { get; set; } |
| | | /// <summary> |
| | | /// 标签打印:标签模板编码 |
| | | /// </summary> |
| | | [DisplayName("标签打印:标签模板编码")] |
| | | public string LABEL_CODE { get; set; } |
| | | /// <summary> |
| | | /// 包装规则:包装规则编码 |
| | | /// </summary> |
| | | [DisplayName("包装规则:包装规则编码")] |
| | | public string PKG_CODE { get; set; } |
| | | /// <summary> |
| | | /// 设置值1 |
| | | /// </summary> |
| | | [DisplayName("设置值1")] |
| | | [DisplayName("设置值1")] |
| | | public string OPTION_1 { get; set; } |
| | | /// <summary> |
| | | /// 设置值2 |
| | |
| | | /// </summary> |
| | | [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> |
| | | /// 备注 |
| | | /// </summary> |
| | | [DisplayName("备注")] |
| | | public string REMARK { get; set; } |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string FieldName { get; set; } |
| | | */ |
| | | #endregion |
| | | /// <summary> |
| | | /// 节点 |
| | | /// </summary> |
| | | [SugarColumn(IsIgnore = true)] |
| | | public node node { get; set; } |
| | | #endregion |
| | | |
| | | #region 外键属性 |
| | | /*例子 |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WO_NODE_ACT类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WO_NODE_ACTId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | */ |
| | | #endregion |
| | | [Navigate(NavigateType.OneToOne, nameof(ACT_CODE), nameof(MES_CUSTOM_ACT.ACT_CODE), "GHOST_ROW = 0")]//一对一 ClassAId是MES_WO_NODE_ACT类里面的外键ID字段 |
| | | public MES_CUSTOM_ACT Definition { get; set; } //注意禁止手动赋值,只能是null |
| | | [Navigate(NavigateType.OneToMany, nameof(MES_WO_ACT_VAR.ACT_ID), nameof(ID), "GHOST_ROW = 0")]//ClassA表中的MES_WO_NODE_ACTId |
| | | public List<MES_WO_ACT_VAR> Variables { get; set; } //注意禁止手动赋值,只能是null |
| | | #endregion |
| | | |
| | | #region 枚举变量 |
| | | /*例子 |
| | | #region 枚举变量 |
| | | /*例子 |
| | | public enum FieldNames |
| | | { |
| | | [Description("枚举描述0")] |
| | |
| | | Enum1, |
| | | } |
| | | */ |
| | | |
| | | /// <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 公共方法 |