using Magicodes.ExporterAndImporter.Core;
|
using Masuit.Tools.Core.Validator;
|
using SqlSugar;
|
using System.ComponentModel.DataAnnotations;
|
using WIDESEA_Core.DB.Models;
|
|
namespace WIDESEA_Model.Models
|
{
|
[SugarTable(nameof(DtStockInfo_Hty), "库存信息历史")]
|
public class DtStockInfo_Hty : BaseEntity,IBaseHistoryEntity
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 托盘编码
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "托盘编号")]
|
public string PalletCode { get; set; }
|
|
/// <summary>
|
/// 货位ID
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "货位ID")]
|
public string LocationId { get; set; }
|
|
/// <summary>
|
/// 货位编码
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "货位编码")]
|
public string LocationCode { get; set; }
|
|
/// <summary>
|
/// 是否整出
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "是否整出")]
|
public bool IsFull { get; set; } = true;
|
|
/// <summary>
|
/// 状态
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "状态")]
|
public int StockStatus { get; set; }
|
|
/// <summary>
|
/// 物料名称
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "物料名称")]
|
public string MaterielName { get; set; }
|
|
/// <summary>
|
/// 出库时间
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "出库时间")]
|
public DateTime OutboundTime { get; set; }
|
|
/// <summary>
|
/// 工艺开始时间
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "工艺开始时间")]
|
public string LinedProcessFeedbackTime { get; set; }
|
|
/// <summary>
|
/// 工艺时长
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "工艺时长")]
|
public string SpecialParameterDuration { get; set; }
|
|
/// <summary>
|
/// 产线
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "产线")]
|
public string ProductionLine { get; set; }
|
|
/// <summary>
|
/// 库区ID
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "库区ID")]
|
public string AreaCode { get; set; }
|
|
/// <summary>
|
/// 当前工序
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "当前工序")]
|
public string ProcessCode { get; set; }
|
|
/// <summary>
|
/// 下一工序
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "下一工序")]
|
public string NextProcessCode { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
|
public string Remark { get; set; }
|
|
/// <summary>
|
/// 库存明细
|
/// </summary>
|
[SugarColumn(ColumnName = "DtStockInfoDetails")]
|
[Navigate(NavigateType.OneToMany, nameof(DtStockInfoDetail_Hty.StockId))]
|
public List<DtStockInfoDetail_Hty>? StockInfoDetails { get; set; }
|
|
/// <summary>
|
/// 备 注: 移入历史时间
|
/// 默认值:
|
///</summary>
|
[SugarColumn(ColumnName = "InsertTime", ColumnDescription = "移入历史时间")]
|
public DateTime InsertTime { get; set; }
|
|
/// <summary>
|
/// 备 注: 操作类型
|
/// 默认值:
|
///</summary>
|
[SugarColumn(ColumnName = "OperateType", ColumnDescription = "操作类型")]
|
public string OperateType { get; set; }
|
|
/// <summary>
|
/// 备 注: 源单ID
|
/// 默认值:
|
///</summary>
|
[SugarColumn(ColumnName = "SourceId", ColumnDescription = "源单ID")]
|
public int SourceId { get; set; }
|
}
|
}
|