服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-07-12 53171273a4cd9049d532f031f389364982d219d7
Tiger.Model.Net/Entitys/MES/MES_WIP_DATA.cs
@@ -10,6 +10,7 @@
   /// 实体:在制品信息表
   /// </summary>
   [Description("Primary:ID")]
   [DisplayName("在制品信息表")]
   [Serializable]
   [SugarTable("MES_WIP_DATA")]
   public class MES_WIP_DATA : DbEntityWithAuth
@@ -25,134 +26,192 @@
      /// <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>
      public string SEGMENT { get; set; }
      [DisplayName("工单批次号")]
      public string BATCH_NO { get; set; }
      /// <summary>
      /// 工艺路线ID
      /// 工艺路线编码
      /// </summary>
      public string ROT_ID { get; set; }
      [DisplayName("工艺路线编码")]
      public string ROT_CODE { get; set; }
      /// <summary>
      /// 工艺路线节点ID
      /// </summary>
      [DisplayName("工艺路线节点ID")]
      public string NODE_ID { get; set; }
      /// <summary>
      /// 工序编码
      /// 工艺路线节点名称
      /// </summary>
      public string OPER_CODE { get; set; }
      [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 HOLD_FLAG { get; set; }
      /// <summary>
      /// 返工标记
      /// </summary>
      [DisplayName("返工标记")]
      public string REWORK_FLAG { get; set; }
      /// <summary>
      /// 是否完工
      /// </summary>
      [DisplayName("是否完工")]
      public string FINISHED_FLAG { get; set; }
      /// <summary>
      /// 是否不良
      /// </summary>
      [DisplayName("是否不良")]
      public string DFT_FLAG { get; set; }
      /// <summary>
      /// 不良计数
      /// </summary>
      [DisplayName("不良计数")]
      public int DFT_COUNT { get; set; }
      /// <summary>
      /// 不良代码编码
      /// </summary>
      [DisplayName("不良代码编码")]
      public string DFT_CODE { get; set; }
      /// <summary>
      /// 托盘/载具条码
      /// </summary>
      [DisplayName("托盘/载具条码")]
      public string TRAY_SN { get; set; }
      /// <summary>
      /// 容器/内包装条码
      /// </summary>
      [DisplayName("容器/内包装条码")]
      public string CONTAINER_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 string INV_FLAG { get; set; }
      /// <summary>
      /// 入库日期
      /// </summary>
      [DisplayName("入库日期")]
      public DateTime INV_DATE { get; set; } = DateTime.MinValue;
      /// <summary>
      /// 投入时间
      /// </summary>
      [DisplayName("投入时间")]
      public DateTime INLINE_DATE { get; set; } = DateTime.MinValue;
      /// <summary>
      /// 产出时间
      /// </summary>
      [DisplayName("产出时间")]
      public DateTime OUTLINE_DATE { get; set; } = DateTime.MinValue;
      /// <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>
      /// 抽检状态(0Unsampled未抽检|1NoSampling不抽检|2WaitCheck待检验|3Checking检验中|4Completed检验完|5Locked已锁定)
      /// </summary>
      [DisplayName("抽检状态(0Unsampled未抽检|1NoSampling不抽检|2WaitCheck待检验|3Checking检验中|4Completed检验完|5Locked已锁定)")]
      public int OBA_STATUS { get; set; }
      /// <summary>
      /// 抽检批次号
      /// </summary>
      [DisplayName("抽检批次号")]
      public string OBA_BATCH { get; set; }
      /// <summary>
      /// 锁定批次号
      /// </summary>
      [DisplayName("锁定批次号")]
      public string LOCK_BATCH { get; set; }
      /// <summary>
      /// 出货时间
      /// </summary>
      [DisplayName("出货时间")]
      public DateTime SHIPPING_DATE { get; set; } = DateTime.MinValue;
      /// <summary>
      /// 出货单号
      /// </summary>
      [DisplayName("出货单号")]
      public string SHIPPING_ORDER { get; set; }
      /// <summary>
      /// 备注
      /// </summary>
      [DisplayName("备注")]
      public string REMARK { get; set; }
      #endregion
@@ -187,6 +246,52 @@
         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>
      /// 枚举:抽检状态(0Unsampled未抽检|1NoSampling不抽检|2WaitCheck待检验|3Checking检验中|4Completed检验完|5Locked已锁定)
      /// </summary>
      public enum OBA_STATUSs
      {
         [Description("未抽检")]
         Unsampled = 0,
         [Description("不抽检")]
         NoSampling = 1,
         [Description("待检验")]
         WaitCheck = 2,
         [Description("检验中")]
         Checking = 3,
         [Description("检验完")]
         Completed = 4,
         [Description("已锁定")]
         Locked = 5,
      }
      #endregion
      #region 公共方法