| | |
| | | namespace Tiger.Model |
| | | { |
| | | /// <summary> |
| | | /// 实体:标签模板 |
| | | /// 实体:标签模板 |
| | | /// </summary> |
| | | [Description("Primary:ID")] |
| | | [DisplayName("标签模板")] |
| | | [DisplayName("标签模板")] |
| | | [Serializable] |
| | | [SugarTable("BAS_LABEL_TEMP")] |
| | | public class BAS_LABEL_TEMP : DbEntityWithAuth |
| | | { |
| | | #region 构造函数 |
| | | #region 构造函数 |
| | | /// <summary> |
| | | /// 实体:标签模板 |
| | | /// 实体:标签模板 |
| | | /// </summary> |
| | | public BAS_LABEL_TEMP() {} |
| | | #endregion |
| | | |
| | | #region 公共属性 |
| | | #region 公共属性 |
| | | /// <summary> |
| | | /// 标签模板编码 |
| | | /// 标签模板编码 |
| | | /// </summary> |
| | | [DisplayName("标签模板编码")] |
| | | [DisplayName("标签模板编码")] |
| | | public string LABEL_CODE { get; set; } |
| | | /// <summary> |
| | | /// 标签模板名称 |
| | | /// 标签模板名称 |
| | | /// </summary> |
| | | [DisplayName("标签模板名称")] |
| | | [DisplayName("标签模板名称")] |
| | | public string LABEL_NAME { get; set; } |
| | | /// <summary> |
| | | /// 模板类型(0Bartender|1HansLaser大族激光|2Others其他模板) |
| | | /// 模板类型(0Bartender|1HansLaser大族激光|2Others其他模板) |
| | | /// </summary> |
| | | [DisplayName("模板类型(0Bartender|1HansLaser大族激光|2Others其他模板)")] |
| | | [DisplayName("模板类型(0Bartender|1HansLaser大族激光|2Others其他模板)")] |
| | | public int TEMP_TYPE { get; set; } |
| | | /// <summary> |
| | | /// 标签模板相对路径 |
| | | /// 标签模板相对路径 |
| | | /// </summary> |
| | | [DisplayName("标签模板相对路径")] |
| | | [DisplayName("标签模板相对路径")] |
| | | public string TEMP_PATH { get; set; } |
| | | /// <summary> |
| | | /// 备注 |
| | | /// 备注 |
| | | /// </summary> |
| | | [DisplayName("备注")] |
| | | [DisplayName("备注")] |
| | | public string REMARK { get; set; } |
| | | #endregion |
| | | /// <summary> |
| | | /// 客户编码 |
| | | /// </summary> |
| | | [DisplayName("客户编码")] |
| | | public string CUST_CODE { get; set; } |
| | | |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | /// <summary> |
| | | /// 客户编码 |
| | | /// </summary> |
| | | [DisplayName("产品编码")] |
| | | public string PROD_CODE { get; set; } |
| | | #endregion |
| | | |
| | | #region 虚拟属性 |
| | | /*例子 |
| | | [SugarColumn(IsIgnore = true)] |
| | | public string FieldName { get; set; } |
| | | */ |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BAS_LABEL_TEMP类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | | //一对多外键导航 |
| | | [Navigate(NavigateType.OneToMany, nameof(ClassA.BAS_LABEL_TEMPId))]//ClassA表中的BAS_LABEL_TEMPId |
| | | public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null |
| | | //多对多外键导航 |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.BAS_LABEL_TEMPId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | #region 外键属性 |
| | | /*例子 |
| | | //一对一外键导航 |
| | | [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//一对一 ClassAId是BAS_LABEL_TEMP类里面的外键ID字段 |
| | | public ClassA ClassA { get; set; } //注意禁止手动赋值,只能是null |
| | | //一对多外键导航 |
| | | [Navigate(NavigateType.OneToMany, nameof(ClassA.BAS_LABEL_TEMPId))]//ClassA表中的BAS_LABEL_TEMPId |
| | | public List<ClassA> ClassAList { get; set; }//注意禁止手动赋值,只能是null |
| | | //多对多外键导航 |
| | | [Navigate(typeof(MappingClass), nameof(MappingClass.BAS_LABEL_TEMPId), nameof(MappingClass.ClassAId))]//注意顺序 |
| | | public List<ClassA> ClassAList { get; set; } //注意禁止手动赋值,只能是null |
| | | */ |
| | | #endregion |
| | | [Navigate(NavigateType.OneToMany, nameof(BAS_LABEL_VAR.LABEL_ID), nameof(ID), "GHOST_ROW = 0")]//ClassA表中的BAS_LABEL_TEMPId |
| | | public List<BAS_LABEL_VAR> Variables { get; set; }//注意禁止手动赋值,只能是null |
| | | #endregion |
| | | |
| | | #region 枚举变量 |
| | | /*例子 |
| | | #region 枚举变量 |
| | | /*例子 |
| | | public enum FieldNames |
| | | { |
| | | [Description("枚举描述0")] |
| | | [Description("枚举描述0")] |
| | | Enum0, |
| | | [Description("枚举描述1")] |
| | | [Description("枚举描述1")] |
| | | Enum1, |
| | | } |
| | | */ |
| | | |
| | | /// <summary> |
| | | /// 枚举:模板类型(0Bartender|1HansLaser大族激光|2Others其他模板) |
| | | /// </summary> |
| | | public enum TEMP_TYPEs |
| | | /// <summary> |
| | | /// 枚举:模板类型(0Bartender|1HansLaser大族激光|2Others其他模板) |
| | | /// </summary> |
| | | public enum TEMP_TYPEs |
| | | { |
| | | [Description("Bartender")] |
| | | Bartender = 0, |
| | | [Description("大族激光")] |
| | | [Description("大族激光")] |
| | | HansLaser = 1, |
| | | [Description("其他模板")] |
| | | [Description("其他模板")] |
| | | Others = 2, |
| | | } |
| | | #endregion |
| | | |
| | | #region 公共方法 |
| | | #region 公共方法 |
| | | |
| | | #endregion |
| | | |