using DS.Module.Core; using DS.Module.Core.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; namespace DS.WMS.Core.Code.Entity { /// /// 基础编码规则表 /// [SqlSugar.SugarTable("code_sequence_rule", "基础编码规则表")] public class CodeSequenceRule : BaseModel { /// /// 单据Id /// [SugarColumn(ColumnDescription = "单据Id")] public long SequenceId { get; set; } /// /// 取规则类别,timestamp、const、number /// [SugarColumn(ColumnDescription = "取规则类别", Length = 100, IsNullable = false)] public string RuleType { get; set; } /// /// 规则参数,如 YYMMDD /// [SugarColumn(ColumnDescription = "补齐方向", Length = 100, IsNullable = false)] public string RuleValue { get; set; } /// /// 补齐方向,left或right /// [SugarColumn(ColumnDescription = "补齐方向", Length = 50, IsNullable = true)] public string PaddingSide { get; set; } /// /// 补齐宽度 /// [SugarColumn(ColumnDescription = "补齐宽度")] public int PaddingWidth { get; set; } /// /// 填充字符 /// [SugarColumn(ColumnDescription = "填充字符", Length = 100, IsNullable = true)] public string PaddingChar { get; set; } /// /// 状态 /// [SqlSugar.SugarColumn(ColumnDescription = "状态")] public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 排序号 /// [SugarColumn(ColumnDescription = "排序号",DefaultValue ="100")] public int OrderNo { get; set; } } }