using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 调拨单明细 /// [SugarTable(nameof(Dt_AllocateOrderDetail), "调拨单明细")] public class Dt_AllocateOrderDetail : BaseEntity { /// /// 主键ID(自增) /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 关联订单ID(对应Dt_AllocateOrder.Id) /// [SugarColumn(IsNullable = false, ColumnDescription = "关联订单ID")] public int OrderId { get; set; } /// /// 物料编码 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编码")] public string MaterielCode { get; set; } /// /// 批次号 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "批次号")] public string BatchNo { get; set; } /// /// 订单数量 /// [SugarColumn(IsNullable = false, ColumnDescription = "订单数量")] public decimal OrderQuantity { get; set; } /// /// 收货数量 /// [SugarColumn(IsNullable = false, ColumnDescription = "收货数量")] public decimal ReceiptQuantity { get; set; } /// /// 超额入库数量 /// [SugarColumn(IsNullable = false, ColumnDescription = "超额入库数量")] public decimal OverInQuantity { get; set; } /// /// 明细状态 /// [SugarColumn(IsNullable = false, ColumnDescription = "明细状态")] public int OrderDetailStatus { get; set; } /// /// 单位 /// [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "单位")] public string Unit { get; set; } /// /// 行号 /// [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "行号")] public string LineNo { get; set; } /// /// 仓库编码 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "仓库编码")] public string WarehouseCode { get; set; } /// /// 条形码 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码")] public string Barcode { get; set; } /// /// 供应商编号 /// 默认值: /// [SugarColumn(ColumnName = "supplyCode", ColumnDescription = "供应商编号")] public string? SupplyCode { get; set; } /// /// 条形码数量 /// [SugarColumn(IsNullable = false, ColumnDescription = "条形码数量")] public decimal? BarcodeQty { get; set; } /// /// 条形码单位 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码单位")] public string BarcodeUnit { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = false, Length = 255, ColumnDescription = "备注")] public string Remark { get; set; } /// /// 回传MES /// [SugarColumn(IsNullable = true, ColumnDescription = "回传MES")] public int ReturnToMESStatus { get; set; } = 0; [SugarColumn(IsNullable = true, ColumnDescription = "过期日期")] public DateTime ValidDate { get; set; } } }