using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Core.DB.Models;
|
|
namespace WIDESEA_Model.Models
|
{
|
/// <summary>
|
/// 物料追溯码
|
/// </summary>
|
[SugarTable(nameof(Dt_TraceabilityCode), "物料追溯码")]
|
public class Dt_TraceabilityCode : BaseEntity
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 物料编号
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
|
public string MaterielCode { get; set; }
|
|
/// <summary>
|
/// 入库单号
|
/// </summary>
|
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "入库单号")]
|
public string Inorder { get; set; }
|
|
/// <summary>
|
/// 入库单详情id
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "入库单详情id")]
|
public int InorderDetail { get; set; }
|
|
|
/// <summary>
|
/// 出库单号
|
/// </summary>
|
[SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "出库单号")]
|
public string Outorder { get; set; }
|
|
/// <summary>
|
/// 出库单详情id
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "出库单详情id")]
|
public int OutorderDetail { get; set; }
|
|
/// <summary>
|
/// 大追溯码
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")]
|
public int BigTraceabilityCode { get; set; }
|
|
/// <summary>
|
/// 中追溯码
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")]
|
public int MediumTraceabilityCode { get; set; }
|
|
|
/// <summary>
|
/// 小追溯码
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "大追溯码")]
|
public int SmallTraceabilityCode { get; set; }
|
|
|
/// <summary>
|
/// 物料批次id
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "物料批次id")]
|
public int MaterialBatchID { get; set; }
|
|
|
/// <summary>
|
/// 追溯码状态(未使用,已使用,已销户,已禁用)
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "追溯码状态")]
|
public int TraceabilityState { get; set; }
|
|
}
|
|
/// <summary>
|
/// 追溯码状态
|
/// </summary>
|
public enum TraceabilityStateEnum
|
{
|
/// <summary>
|
/// 未使用
|
/// </summary>
|
[Description("未使用")]
|
Unused = 0,
|
|
/// <summary>
|
/// 已使用
|
/// </summary>
|
[Description("已使用")]
|
Used = 1,
|
|
/// <summary>
|
/// 已销户
|
/// </summary>
|
[Description("已销户(出库完成的时候的状态)")]
|
AccountClosed = 2,
|
|
/// <summary>
|
/// 禁用
|
/// </summary>
|
[Description("已禁用")]
|
Disable = 3
|
}
|
}
|