dengjunjie
2025-10-23 56827df8730c172c6c654fb78fed073ef8d694cb
н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_Model/Models/SquareCabin/Dt_CabinOrder_Hty.cs
@@ -1,4 +1,5 @@
using SqlSugar;
using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -10,63 +11,32 @@
{
    [SugarTable("Dt_CabinOrder_Hty", "入库单表历史表")]
    public class Dt_CabinOrder_Hty : BaseEntity
    public class Dt_CabinOrder_Hty : Dt_CabinOrder,IBaseHistoryEntity
    {
        [SugarColumn(ColumnName = "HistoryId", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "历史记录主键")]
        public int HistoryId { get; set; }
        [SugarColumn(ColumnName = "Id", ColumnDescription = "原主键")]
        public int Id { get; set; }
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "入库单号")]
        public string Order_no { get; set; }
        [SugarColumn(IsNullable = true, Length = 3, ColumnDescription = "入库类型:1正常/3退货")]
        public string Order_type { get; set; }
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "供应商代码")]
        public string Supplier_no { get; set; }
        [SugarColumn(IsNullable = true, Length = 100, ColumnDescription = "供应商名称")]
        public string Supplier_name { get; set; }
        //库房号
        [SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号001")]
        public string Warehouse_no { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "入库记账时间")]
        public DateTime? Account_tiem { get; set; }
        [Navigate(NavigateType.OneToMany, nameof(Dt_CabinOrderDetail_Hty.OrderId))]
        public new List<Dt_CabinOrderDetail_Hty> Details { get; set; }
        /// <summary>
        /// åŽŸè¡¨ä¸»é”®
        /// </summary>
        [ImporterHeader(Name = "原表主键")]
        [ExporterHeader(DisplayName = "原表主键")]
        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "原表主键")]
        public int SourceId { get; set; }
        /// <summary>
        /// ä¸‹æ¸¸çŠ¶æ€ æ–°å»ºï¼Œå¼€å§‹ï¼Œå·²å®Œæˆ
        /// ä¸‹æ¸¸ä¸‹å‘(新建)
        /// è¯¦æƒ…开始(开始)
        /// è¯¦æƒ…全部完成(已完成,上传给上游系统,移入历史表删除信息)
        /// æ“ä½œç±»åž‹
        /// </summary>
        [SugarColumn(ColumnName = "OdrderStatus", IsNullable = true, Length = 50, ColumnDescription = "表头状态")]
        public string OdrderStatus { get; set; }
        [ImporterHeader(Name = "操作类型")]
        [ExporterHeader(DisplayName = "操作类型")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "操作类型")]
        public string OperateType { get; set; }
        //下面是否需要这些字段?
        //优先级 priority
        //[SugarColumn(ColumnName ="Priority",IsNullable =true,ColumnDescription ="优先级")]
        //public int Priority { get; set; }
        //是否取消 Iscancel
        //[SugarColumn(ColumnName = "Iscancel", IsNullable = true, ColumnDescription = "是否取消(1是0否)")]
        //public int Iscancel { get; set; }
        [Navigate(NavigateType.OneToMany, nameof(Dt_CabinOrderDetail.OrderId))]
        public List<Dt_CabinOrderDetail> Details { get; set; }
        /// <summary>
        /// ç§»å…¥åŽ†å²æ—¶é—´
        /// </summary>
        [ImporterHeader(Name = "移入历史时间")]
        [ExporterHeader(DisplayName = "移入历史时间")]
        [SugarColumn(IsNullable = false, ColumnDescription = "移入历史时间")]
        public DateTime InsertTime { get; set; }
    }
}