pan
5 天以前 7d3d385f0bdcf40b0c42d14ab526df318e04a433
ÏîÄ¿´úÂë/WMSÎÞ²Ö´¢°æ/WIDESEA_WMSServer/WIDESEA_Model/Models/Allocate/Dt_AllocateOrderDetail.cs
@@ -1,12 +1,127 @@
using System;
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.Allocate
namespace WIDESEA_Model.Models
{
    public class Dt_AllocateOrderDetail
    /// <summary>
    /// è°ƒæ‹¨å•明细
    /// </summary>
    [SugarTable(nameof(Dt_AllocateOrderDetail), "调拨单明细")]
    public class Dt_AllocateOrderDetail : BaseEntity
    {
        /// <summary>
        /// ä¸»é”®ID(自增)
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
        /// <summary>
        /// å…³è”订单ID(对应Dt_AllocateOrder.Id)
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "关联订单ID")]
        public int OrderId { get; set; }
        /// <summary>
        /// ç‰©æ–™ç¼–码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编码")]
        public string MaterielCode { get; set; }
        public string MaterielName { get; set; }
        /// <summary>
        /// æ‰¹æ¬¡å·
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "批次号")]
        public string BatchNo { get; set; }
        /// <summary>
        /// è®¢å•数量
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "订单数量")]
        public decimal OrderQuantity { get; set; }
        /// <summary>
        /// æ”¶è´§æ•°é‡
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "收货数量")]
        public decimal ReceiptQuantity { get; set; }
        /// <summary>
        /// è¶…额入库数量
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "超额入库数量")]
        public decimal OverInQuantity { get; set; }
        /// <summary>
        /// æ˜Žç»†çŠ¶æ€
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "明细状态")]
        public int OrderDetailStatus { get; set; }
        /// <summary>
        /// å•位
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "单位")]
        public string Unit { get; set; }
        /// <summary>
        /// è¡Œå·
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "行号")]
        public string LineNo { get; set; }
        /// <summary>
        /// ä»“库编码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "仓库编码")]
        public string WarehouseCode { get; set; }
        /// <summary>
        /// æ¡å½¢ç 
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码")]
        public string Barcode { get; set; }
        /// <summary>
        /// ä¾›åº”商编号
        /// é»˜è®¤å€¼:
        ///</summary>
        [SugarColumn(ColumnName = "supplyCode", ColumnDescription = "供应商编号")]
        public string? SupplyCode { get; set; }
        /// <summary>
        /// æ¡å½¢ç æ•°é‡
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "条形码数量")]
        public decimal? BarcodeQty { get; set; }
        /// <summary>
        /// æ¡å½¢ç å•位
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码单位")]
        public string BarcodeUnit { get; set; }
        /// <summary>
        /// å¤‡æ³¨
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 255, ColumnDescription = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// å›žä¼ MES
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "回传MES")]
        public int ReturnToMESStatus { get; set; } = 0;
        [SugarColumn(IsNullable = true, ColumnDescription = "过期日期")]
        public DateTime ValidDate { get; set; }
    }
}