using System; using SqlSugar; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace Tiger.Model { /// /// 实体:到货单(ERP)条码明细 /// [Description("Primary:ID")] [Serializable] [SugarTable("BIZ_ERP_RECEIPT_SN")] public class BIZ_ERP_RECEIPT_SN : DbEntityWithAuth { #region 构造函数 /// /// 实体:到货单(ERP)条码明细 /// public BIZ_ERP_RECEIPT_SN() {} #endregion #region 公共属性 /// /// 单据代码 /// public string BILLCODE { get; set; } /// /// 单据日期 /// public string BILLLINE { get; set; } /// /// 来源单据类型 /// public int SOURCETYPE { get; set; } /// /// 物料代码 /// public string ITEM_CODE { get; set; } /// /// 条码 /// public string SN { get; set; } /// /// 元条码 /// public string META_SN { get; set; } /// /// 供应商代码 /// public string SUPPLIERCODE { get; set; } /// /// 生产日期 /// public DateTime DATECODE { get; set; } = DateTime.MinValue; /// /// 扫描数量 /// public double SCANQTY { get; set; } /// /// 单位 /// public string UNIT { get; set; } /// /// 是否赠品 /// public bool ISGIVEAWAY { get; set; } /// /// 收货单号 /// public string DELIVERY_NO { get; set; } /// /// 收货行号 /// public int DELIVERY_LINE { get; set; } /// /// 备注 /// public string REMARK { get; set; } /// /// 批号 /// public string LOTNO { get; set; } /// /// 状态 /// public int STATUS { get; set; } /// /// 箱号 /// public string CARTON { get; set; } /// /// 托盘 /// public string PALLET { get; set; } #endregion #region 虚拟属性 /*例子 [SugarColumn(IsIgnore = true)] public string FieldName { get; set; } */ #endregion #region 外键属性 /*例子 //一对一外键导航 [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BIZ_ERP_RECEIPT_SN类里面的外键ID字段 public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null //一对多外键导航 [Navigate(NavigateType.OneToMany, nameof(ClassA.BIZ_ERP_RECEIPT_SNId))]//ClassA表中的BIZ_ERP_RECEIPT_SNId public List ClassAList { get; set; }//注意禁止手动赋值,只能是null //多对多外键导航 [Navigate(typeof(MappingClass), nameof(MappingClass.BIZ_ERP_RECEIPT_SNId), nameof(MappingClass.ClassAId))]//注意顺序 public List ClassAList { get; set; } //注意禁止手动赋值,只能是null */ #endregion #region 枚举变量 /*例子 public enum FieldNames { [Description("枚举描述0")] Enum0, [Description("枚举描述1")] Enum1, } */ #endregion #region 公共方法 #endregion }//endClass }