| | |
| | | |
| | | namespace Tiger.Model |
| | | { |
| | | /// <summary> |
| | | /// 实体:生产包装记录 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("生产包装记录")] |
| | | [Serializable] |
| | | [SugarTable("MES_WIP_PKG")] |
| | | public class MES_WIP_PKG : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:生产包装记录 |
| | | /// </summary> |
| | | public MES_WIP_PKG() {} |
| | | #endregion |
| | | /// <summary> |
| | | /// 实体:生产包装记录 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("生产包装记录")] |
| | | [Serializable] |
| | | [SugarTable("MES_WIP_PKG")] |
| | | public class MES_WIP_PKG : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:生产包装记录 |
| | | /// </summary> |
| | | public MES_WIP_PKG() { } |
| | | #endregion |
| | | |
| | | #region 公共属性 |
| | | /// <summary> |
| | | /// 条码 |
| | | /// </summary> |
| | | [DisplayName("条码")] |
| | | public string SN { get; set; } |
| | | /// <summary> |
| | | /// 父包装条码 |
| | | /// </summary> |
| | | [DisplayName("父包装条码")] |
| | | public string PARENT_SN { get; set; } |
| | | /// <summary> |
| | | /// 包装类型 |
| | | /// </summary> |
| | | [DisplayName("包装类型")] |
| | | public string PKG_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 物料编码 |
| | | /// </summary> |
| | | [DisplayName("物料编码")] |
| | | public string ITEM_CODE { get; set; } |
| | | /// <summary> |
| | | /// 数量 |
| | | /// </summary> |
| | | [DisplayName("数量")] |
| | | public double QTY { get; set; } |
| | | /// <summary> |
| | | /// 单位 |
| | | /// </summary> |
| | | [DisplayName("单位")] |
| | | public string UNIT { 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> |
| | | /// 工厂编码 |
| | | /// </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 REMARK { get; set; } |
| | | /// <summary> |
| | | /// 追溯信息 |
| | | /// </summary> |
| | | [DisplayName("追溯信息")] |
| | | public string TRACE_INFO { get; set; } |
| | | #endregion |
| | | #region 公共属性 |
| | | /// <summary> |
| | | /// 被包装条码 |
| | | /// </summary> |
| | | [DisplayName("被包装条码")] |
| | | public string SN { get; set; } |
| | | /// <summary> |
| | | /// 父包装条码(最外层包装留空) |
| | | /// </summary> |
| | | [DisplayName("父包装条码(最外层包装留空)")] |
| | | public string PARENT_SN { get; set; } |
| | | /// <summary> |
| | | /// 在制品ID(不是最小包装则留空) |
| | | /// </summary> |
| | | [DisplayName("在制品ID(不是最小包装则留空)")] |
| | | public string WIP_ID { get; set; } |
| | | /// <summary> |
| | | /// 包装类型 |
| | | /// </summary> |
| | | [DisplayName("包装类型")] |
| | | public string PKG_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 物料编码 |
| | | /// </summary> |
| | | [DisplayName("物料编码")] |
| | | public string ITEM_CODE { get; set; } |
| | | /// <summary> |
| | | /// 数量 |
| | | /// </summary> |
| | | [DisplayName("数量")] |
| | | public double QTY { get; set; } |
| | | /// <summary> |
| | | /// 单位 |
| | | /// </summary> |
| | | [DisplayName("单位")] |
| | | public string UNIT { 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> |
| | | /// 工厂编码 |
| | | /// </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 double WEIGHT { get; set; } |
| | | /// <summary> |
| | | /// 重量单位 |
| | | /// </summary> |
| | | [DisplayName("重量单位")] |
| | | public string WEIGHT_UNIT { 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 |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string ACT_ID { get; set; } |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string FLOW_SN { get; set; } |
| | | #endregion |
| | | |
| | | #region 外键属性 |
| | | /*例子 |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是MES_WIP_PKG类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.MES_WIP_PKGId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | */ |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 枚举变量 |
| | | /*例子 |
| | | #region 枚举变量 |
| | | /*例子 |
| | | public enum FieldNames |
| | | { |
| | | [Description("枚举描述0")] |
| | |
| | | Enum1, |
| | | } |
| | | */ |
| | | #endregion |
| | | |
| | | #endregion |
| | | #region 公共方法 |
| | | |
| | | #region 公共方法 |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | }//endClass |
| | | }//endClass |
| | | } |