using System; using System.Linq; using System.Text; using JNPF.Common.Security; using SqlSugar; namespace Tnb.BasicData.Entities { /// ///条码标签规则 /// [SugarTable("bas_label_rule")] public partial class BasLabelRule { public BasLabelRule(){ } /// /// Desc:编号 /// Default: /// Nullable:False /// [SugarColumn(IsPrimaryKey=true)] public string id {get;set;} = SnowflakeIdHelper.NextId(); /// /// Desc:所属组织 /// Default:NULL::character varying /// Nullable:True /// public string? org_id {get;set;} /// /// Desc:规则代码 /// Default: /// Nullable:False /// public string rule_code {get;set;} = string.Empty; /// /// Desc:规则名称 /// Default: /// Nullable:False /// public string rule_name {get;set;} = string.Empty; /// /// Desc:条码类型(数据字典): MaterialLot:批次物料条码; MaterialKeyparts:单件物料条码; Product:产品条码; Carton:箱号条码; Pallet:栈板条码; /// Default: /// Nullable:False /// public string sn_type {get;set;} = string.Empty; /// /// Desc:前缀 /// Default: /// Nullable:False /// public string prefix {get;set;} = string.Empty; /// /// Desc:年度 /// Default: /// Nullable:False /// public int year {get;set;} /// /// Desc:季度 /// Default: /// Nullable:False /// public int quarter {get;set;} /// /// Desc:月份 /// Default: /// Nullable:False /// public int month {get;set;} /// /// Desc:周别 /// Default: /// Nullable:False /// public int week {get;set;} /// /// Desc:日期 /// Default: /// Nullable:False /// public int date {get;set;} /// /// Desc:流水码长度 /// Default: /// Nullable:False /// public int serial_lenth {get;set;} /// /// Desc:备注 /// Default:NULL::character varying /// Nullable:True /// public string? remark {get;set;} /// /// Desc:系统类型 /// Default:NULL::character varying /// Nullable:True /// public string? system_type {get;set;} /// /// Desc:时间戳(用于并发处理) /// Default:NULL::character varying /// Nullable:True /// public string? timestamp {get;set;} /// /// Desc:创建用户 /// Default:NULL::character varying /// Nullable:True /// public string? create_id {get;set;} /// /// Desc:创建时间 /// Default: /// Nullable:False /// public DateTime create_time {get;set;} /// /// Desc:修改用户 /// Default:NULL::character varying /// Nullable:True /// public string? modify_id {get;set;} /// /// Desc:修改时间 /// Default: /// Nullable:True /// public DateTime? modify_time {get;set;} /// /// Desc:扩展字段 /// Default: /// Nullable:True /// public string? extras {get;set;} } }