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