|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Code.Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 基础编码表
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarTable("code_sequence", "基础编码表")]
|
|
|
|
|
public class CodeSequence : BaseOrgModel<long>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 权限ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "权限ID")]
|
|
|
|
|
public long PermissionId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 权限实体
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "权限实体",Length = 50)]
|
|
|
|
|
public string PermissionEntity { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "名称", Length = 50)]
|
|
|
|
|
public string SequenceName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分隔符
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "分隔符", Length = 50,IsNullable = true)]
|
|
|
|
|
public string SequenceDelimiter { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 序号重置规则
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "分隔符", Length = 100, IsNullable = true)]
|
|
|
|
|
public string SequenceReset { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 步长
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "步长", DefaultValue ="1")]
|
|
|
|
|
public int Step { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前值
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "当前值")]
|
|
|
|
|
public int CurrentNo { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "当前编码", Length = 100, IsNullable = true)]
|
|
|
|
|
public string CurrentCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前重置依赖,即最后一次获取编码的日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "当前重置依赖", Length = 100, IsNullable = true)]
|
|
|
|
|
public string CurrentReset { 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; }
|
|
|
|
|
}
|
|
|
|
|
}
|