服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
5 天以前 beca28ecb3a730ffb33c21e0c55c729774725faf
Tiger.Model.Net/Entitys/WMS/BIZ_WMS_PREP_SN.cs
@@ -7,225 +7,270 @@
namespace Tiger.Model
{
   /// <summary>
   /// 实体:备料任务(WMS)条码明细
   /// 实体:备料任务(WMS)条码明细
   /// </summary>
   [Description("Primary:ID")]
   [DisplayName("备料任务(WMS)条码明细")]
   [DisplayName("备料任务(WMS)条码明细")]
   [Serializable]
   [SugarTable("BIZ_WMS_PREP_SN")]
   public class BIZ_WMS_PREP_SN : DbEntityWithAuth
   {
      #region 构造函数
      #region 构造函数
      /// <summary>
      /// 实体:备料任务(WMS)条码明细
      /// 实体:备料任务(WMS)条码明细
      /// </summary>
      public BIZ_WMS_PREP_SN() {}
      #endregion
      #region 公共属性
      #region 公共属性
      /// <summary>
      /// 备料任务号
      /// 备料任务号
      /// </summary>
      [DisplayName("备料任务号")]
      [DisplayName("备料任务号")]
      public string ORDER_NO { get; set; }
      /// <summary>
      /// 备料任务行号
      /// 备料任务行号
      /// </summary>
      [DisplayName("备料任务行号")]
      [DisplayName("备料任务行号")]
      public string ORDER_LINE { get; set; }
      /// <summary>
      /// 发料批次
      /// 发料批次
      /// </summary>
      [DisplayName("发料批次")]
      public string ORDER_BATCH { get; set; }
      [DisplayName("发料批次")]
      public string DLVY_BATCH { get; set; }
      /// <summary>
      /// 物品标签
      /// 物品标签
      /// </summary>
      [DisplayName("物品标签")]
      [DisplayName("物品标签")]
      public string SN { get; set; }
      /// <summary>
      /// 物品编码
      /// 物品编码
      /// </summary>
      [DisplayName("物品编码")]
      [DisplayName("物品编码")]
      public string ITEM_CODE { get; set; }
      /// <summary>
      /// 单位
        /// <summary>
        /// 批次号
        /// </summary>
        [DisplayName("批次号")]
      public string LOTNO { get; set; }
        /// <summary>
      /// 单位
      /// </summary>
      [DisplayName("单位")]
      public string UNIT { get; set; }
      [DisplayName("单位")]
        public string UNIT { get; set; }
        /// <summary>
        /// 物品数量
        /// </summary>
        [DisplayName("物品数量")]
      public double QTY { get; set; }
      /// <summary>
      /// 物品数量
      /// 单位用量
      /// </summary>
      [DisplayName("物品数量")]
      public string QTY { get; set; }
      /// <summary>
      /// 单位用量
      /// </summary>
      [DisplayName("单位用量")]
      [DisplayName("单位用量")]
      public double QTY_UNIT { get; set; }
      /// <summary>
      /// 发出数量
      /// 发出数量
      /// </summary>
      [DisplayName("发出数量")]
      [DisplayName("发出数量")]
      public double QTY_DLVY { get; set; }
      /// <summary>
      /// ״̬(ͬWMS_ITEM״̬)
      /// 状态(同WMS_ITEM状态)
      /// </summary>
      [DisplayName("״̬(ͬWMS_ITEM״̬)")]
      [DisplayName("状态(同WMS_ITEM状态)")]
      public int STATUS { get; set; }
      /// <summary>
      /// 发料仓库
      /// </summary>
      [DisplayName("发料仓库")]
      public string WH_CODE { get; set; }
      /// <summary>
      /// 发料储区
      /// </summary>
      [DisplayName("发料储区")]
      public string REGION_CODE { get; set; }
      /// <summary>
      /// 发料货架/料车
      /// </summary>
      [DisplayName("发料货架/料车")]
      public string SHELF_CODE { get; set; }
      /// <summary>
      /// 发料储位
      /// </summary>
      [DisplayName("发料储位")]
      public string LOCATION_CODE { get; set; }
      /// <summary>
      /// 下架时间
      /// </summary>
      [DisplayName("下架时间")]
        /// <summary>
        /// 发料仓库ID
        /// </summary>
        [DisplayName("发料仓库ID")]
        public string WH_ID { get; set; }
        /// <summary>
        /// 发料仓库
        /// </summary>
        [DisplayName("发料仓库")]
        public string WH_CODE { get; set; }
        /// <summary>
        /// 发料储区ID
        /// </summary>
        [DisplayName("发料储区ID")]
        public string REGION_ID { get; set; }
        /// <summary>
        /// 发料储区
        /// </summary>
        [DisplayName("发料储区")]
        public string REGION_CODE { get; set; }
        /// <summary>
        /// 发料货架/料车ID
        /// </summary>
        [DisplayName("发料货架/料车ID")]
        public string SHELF_ID { get; set; }
        /// <summary>
        /// 发料货架/料车
        /// </summary>
        [DisplayName("发料货架/料车")]
        public string SHELF_CODE { get; set; }
        /// <summary>
        /// 发料储位ID
        /// </summary>
        [DisplayName("发料储位ID")]
        public string LOCATION_ID { get; set; }
        /// <summary>
        /// 发料储位
        /// </summary>
        [DisplayName("发料储位")]
        public string LOCATION_CODE { get; set; }
        /// <summary>
        /// 下架时间
        /// </summary>
        [DisplayName("下架时间")]
      public DateTime DOWN_TIME { get; set; } = DateTime.MinValue;
      /// <summary>
      /// 出库时间
      /// 出库时间
      /// </summary>
      [DisplayName("出库时间")]
      [DisplayName("出库时间")]
      public DateTime DLVY_TIME { get; set; } = DateTime.MinValue;
      /// <summary>
      /// 关联领料单ID
      /// 关联领料单ID
      /// </summary>
      [DisplayName("关联领料单ID")]
      [DisplayName("关联领料单ID")]
      public string REQ_ID { get; set; }
      /// <summary>
      /// 关联领料单号
      /// 关联领料单号
      /// </summary>
      [DisplayName("关联领料单号")]
      [DisplayName("关联领料单号")]
      public string REQ_ORDER { get; set; }
      /// <summary>
      /// 关联领料单行号
      /// 关联领料单行号
      /// </summary>
      [DisplayName("关联领料单行号")]
      [DisplayName("关联领料单行号")]
      public string REQ_LINE { get; set; }
      /// <summary>
      /// 工厂编码
      /// 工厂编码
      /// </summary>
      [DisplayName("工厂编码")]
      [DisplayName("工厂编码")]
      public string FTY_CODE { get; set; }
      /// <summary>
      /// 车间编码
      /// 车间编码
      /// </summary>
      [DisplayName("车间编码")]
      [DisplayName("车间编码")]
      public string WS_CODE { get; set; }
      /// <summary>
      /// 产线编码
      /// 产线编码
      /// </summary>
      [DisplayName("产线编码")]
      [DisplayName("产线编码")]
      public string LINE_CODE { get; set; }
      /// <summary>
      /// 岗位编码
      /// 岗位编码
      /// </summary>
      [DisplayName("岗位编码")]
      [DisplayName("岗位编码")]
      public string POST_CODE { get; set; }
      /// <summary>
      /// 工序编码
      /// 工序编码
      /// </summary>
      [DisplayName("工序编码")]
      [DisplayName("工序编码")]
      public string OPER_CODE { get; set; }
      /// <summary>
      /// 加工段
      /// 加工段
      /// </summary>
      [DisplayName("加工段")]
      [DisplayName("加工段")]
      public string SEGMENT { get; set; }
      /// <summary>
      /// 贴片机序号
      /// 贴片机序号
      /// </summary>
      [DisplayName("贴片机序号")]
      [DisplayName("贴片机序号")]
      public string SMT_NO { get; set; }
      /// <summary>
      /// 站位号
      /// 站位号
      /// </summary>
      [DisplayName("站位号")]
      [DisplayName("站位号")]
      public string STATION_NO { get; set; }
      /// <summary>
      /// 飞达号
      /// 飞达号
      /// </summary>
      [DisplayName("飞达号")]
      [DisplayName("飞达号")]
      public string FEEDER_NO { get; set; }
      /// <summary>
      /// 料枪类型
      /// 料枪类型
      /// </summary>
      [DisplayName("料枪类型")]
      [DisplayName("料枪类型")]
      public string FEEDER_TYPE { get; set; }
      /// <summary>
      /// 上料顺序
      /// 上料顺序
      /// </summary>
      [DisplayName("上料顺序")]
      [DisplayName("上料顺序")]
      public int LOAD_SEQ { get; set; }
      /// <summary>
      /// 是否首套料(Y/N)
      /// 是否首套料(Y/N)
      /// </summary>
      [DisplayName("是否首套料(Y/N)")]
      [DisplayName("是否首套料(Y/N)")]
      public string IS_FIRST { get; set; }
      /// <summary>
      /// 是否需要截料发料(Y/N)
      /// 是否需要截料发料(Y/N)
      /// </summary>
      [DisplayName("是否需要截料发料(Y/N)")]
      [DisplayName("是否需要截料发料(Y/N)")]
      public string NEED_CUTTING { get; set; }
      /// <summary>
      /// 备注
      /// 备注
      /// </summary>
      [DisplayName("备注")]
      [DisplayName("备注")]
      public string REMARK { get; set; }
      #endregion
        /// <summary>
      /// 追溯ID
      /// </summary>
      [DisplayName("追溯ID")]
        public string TRACE_ID { get; set; }
        /// <summary>
      /// 追溯信息
      /// </summary>
      [DisplayName("追溯信息")]
        public string TRACE_INFO { get; set; }
        #endregion
      #region 虚拟属性
      /*例子
        #region 虚拟属性
        /*例子
      [SugarColumn(IsIgnore = true)]
      public string FieldName { get; set; }
      */
      #endregion
        /// <summary>
        /// 截料后发出的SN
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string DeliverySN { get; set; }
        /// <summary>
        /// 截料后保留的SN
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string ReserveSN { get; set; }
        #endregion
      #region 外键属性
      /*例子
      //一对一外键导航
      [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BIZ_WMS_PREP_SN类里面的外键ID字段
      public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
      //一对多外键导航
      [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_WMS_PREP_SNId))]//ClassA表中的BIZ_WMS_PREP_SNId
      public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
      //多对多外键导航
      [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_WMS_PREP_SNId), nameof(MappingClass.ClassAId))]//注意顺序
      public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null
        #region 外键属性
        /*例子
      //一对一外键导航
      [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BIZ_WMS_PREP_SN类里面的外键ID字段
      public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null
      //一对多外键导航
      [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_WMS_PREP_SNId))]//ClassA表中的BIZ_WMS_PREP_SNId
      public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null
      //多对多外键导航
      [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_WMS_PREP_SNId), 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,
      }
      */
      #endregion
        #endregion
      #region 公共方法
        #region 公共方法
      #endregion
        #endregion
   }//endClass
    }//endClass
}