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 { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 托盘编码 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "托盘编号")] public string PalletCode { get; set; } /// /// 货位ID /// [SugarColumn(IsNullable = true, ColumnDescription = "货位ID")] public string LocationId { get; set; } /// /// 货位编码 /// [SugarColumn(IsNullable = true, ColumnDescription = "货位编码")] public string LocationCode { get; set; } /// /// 是否整出 /// [SugarColumn(IsNullable = true, ColumnDescription = "是否整出")] public bool IsFull { get; set; } = true; /// /// 状态 /// [SugarColumn(IsNullable = true, ColumnDescription = "状态")] public int StockStatus { get; set; } /// /// 物料名称 /// [SugarColumn(IsNullable = true, ColumnDescription = "物料名称")] public string MaterielName { get; set; } /// /// 出库时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "出库时间")] public DateTime OutboundTime { get; set; } /// /// 工艺开始时间 /// [SugarColumn(IsNullable = true, ColumnDescription = "工艺开始时间")] public string LinedProcessFeedbackTime { get; set; } /// /// 工艺时长 /// [SugarColumn(IsNullable = true, ColumnDescription = "工艺时长")] public string SpecialParameterDuration { get; set; } /// /// 产线 /// [SugarColumn(IsNullable = true, ColumnDescription = "产线")] public string ProductionLine { get; set; } /// /// 库区ID /// [SugarColumn(IsNullable = true, ColumnDescription = "库区ID")] public string AreaCode { get; set; } /// /// 当前工序 /// [SugarColumn(IsNullable = true, ColumnDescription = "当前工序")] public string ProcessCode { get; set; } /// /// 下一工序 /// [SugarColumn(IsNullable = true, ColumnDescription = "下一工序")] public string NextProcessCode { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, ColumnDescription = "备注")] public string Remark { get; set; } /// /// 库存明细 /// [SugarColumn(ColumnName = "DtStockInfoDetails")] [Navigate(NavigateType.OneToMany, nameof(DtStockInfoDetail_Hty.StockId))] public List? StockInfoDetails { get; set; } /// /// 备 注: 移入历史时间 /// 默认值: /// [SugarColumn(ColumnName = "InsertTime", ColumnDescription = "移入历史时间")] public DateTime InsertTime { get; set; } /// /// 备 注: 操作类型 /// 默认值: /// [SugarColumn(ColumnName = "OperateType", ColumnDescription = "操作类型")] public string OperateType { get; set; } /// /// 备 注: 源单ID /// 默认值: /// [SugarColumn(ColumnName = "SourceId", ColumnDescription = "源单ID")] public int SourceId { get; set; } } }