You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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; }
}
}