1
huangxiaoqiang
2025-10-20 63dcb7fc55d32960f643f4040900ce9a0e33536d
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtBoxingInfo_Hty.cs
@@ -7,30 +7,52 @@
namespace WIDESEA_Model.Models
{
    [SugarTable(nameof(DtBoxingInfo_Hty), "组盘历史信息")]
    public class DtBoxingInfo_Hty : DtBoxingInfo,IBaseHistoryEntity
    public class DtBoxingInfo_Hty :BaseEntity
    {
        /// <summary>
        /// åŽŸè¡¨ä¸»é”®
        /// ä¸»é”®
        /// </summary>
        [ImporterHeader(Name = "原表主键")]
        [ExporterHeader(DisplayName = "原表主键")]
        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "原表主键")]
        public int SourceId { get; set; }
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
        /// <summary>
        /// æ“ä½œç±»åž‹
        /// æ‰˜ç›˜ç¼–码
        /// </summary>
        [ImporterHeader(Name = "操作类型")]
        [ExporterHeader(DisplayName = "操作类型")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "操作类型")]
        public string OperateType { get; set; }
        [Required]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "托盘编号")]
        public string PalletCode { get; set; }
        /// <summary>
        /// ç§»å…¥åŽ†å²æ—¶é—´
        /// è´§ä½ç¼–码
        /// </summary>
        [ImporterHeader(Name = "移入历史时间")]
        [ExporterHeader(DisplayName = "移入历史时间")]
        [SugarColumn(IsNullable = false, ColumnDescription = "移入历史时间")]
        public DateTime InsertTime { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "货位编码")]
        public string LocationCode { get; set; }
        /// <summary>
        /// æ˜¯å¦æ»¡ç›˜
        /// </summary>
        [Required]
        [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 Remark { get; set; }
        /// <summary>
        /// åº“存明细
        /// </summary>
        [MinItemsCount(1)] // æ£€æµ‹é›†åˆå…ƒç´ æœ€å°‘1个
        [SugarColumn(ColumnName = "BoxingInfoDetails")]
        [Navigate(NavigateType.OneToMany, nameof(DtBoxingInfoDetail_Hty.BoxingInfoId))]
        public List<DtBoxingInfoDetail_Hty>? BoxingInfoDetails { get; set; }
    }
}