|
|
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
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 基础编码规则表
|
|
|
/// </summary>
|
|
|
[SqlSugar.SugarTable("code_sequence_rule", "基础编码规则表")]
|
|
|
public class CodeSequenceRule : BaseModel<long>
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 单据Id
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "单据Id")]
|
|
|
public long SequenceId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 取规则类别,timestamp、const、number
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "取规则类别", Length = 100, IsNullable = false)]
|
|
|
public string RuleType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 规则参数,如 YYMMDD
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "补齐方向", Length = 100, IsNullable = false)]
|
|
|
public string RuleValue { get; set; }
|
|
|
/// <summary>
|
|
|
/// 补齐方向,left或right
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "补齐方向", Length = 50, IsNullable = true)]
|
|
|
public string PaddingSide { get; set; }
|
|
|
/// <summary>
|
|
|
/// 补齐宽度
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "补齐宽度")]
|
|
|
public int PaddingWidth { get; set; }
|
|
|
/// <summary>
|
|
|
/// 填充字符
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "填充字符", Length = 100, IsNullable = true)]
|
|
|
public string PaddingChar { get; set; }
|
|
|
/// <summary>
|
|
|
/// 状态
|
|
|
/// </summary>
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "状态")]
|
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
|
/// <summary>
|
|
|
/// 排序号
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "排序号",DefaultValue ="100")]
|
|
|
public int OrderNo { get; set; }
|
|
|
}
|
|
|
}
|