huangxiaoqiang
2025-10-15 b7da1f32d5d9997378b5ac535593a3f6144af46b
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfoDetail_Hty.cs
@@ -1,74 +1,33 @@
using SqlSugar;
using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models;
[SugarTable(nameof(DtStockInfoDetail_Hty), "库存信息明细")]
public class DtStockInfoDetail_Hty : BaseEntity
public class DtStockInfoDetail_Hty : DtStockInfoDetail, IBaseHistoryEntity
{
    /// <summary>
    /// ä¸»é”®
    /// åŽŸè¡¨ä¸»é”®
    /// </summary>
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
    public int Id { get; set; }
    [ImporterHeader(Name = "原表主键")]
    [ExporterHeader(DisplayName = "原表主键")]
    [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "原表主键")]
    public int SourceId { get; set; }
    /// <summary>
    /// åº“存信息主键
    /// æ“ä½œç±»åž‹
    /// </summary>
    [SugarColumn(IsNullable = false, ColumnDescription = "库存信息主键")]
    public int StockId { get; set; }
    [ImporterHeader(Name = "操作类型")]
    [ExporterHeader(DisplayName = "操作类型")]
    [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "操作类型")]
    public string OperateType { get; set; }
    /// <summary>
    /// ç‰©æ–™ç¼–号
    /// ç§»å…¥åŽ†å²æ—¶é—´
    /// </summary>
    [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
    public string MaterielCode { get; set; }
    /// <summary>
    /// ç‰©æ–™åç§°
    /// </summary>
    [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "物料名称")]
    public string MaterielName { get; set; }
    /// <summary>
    /// å•据编号
    /// </summary>
    [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "单据编号")]
    public string OrderNo { get; set; }
    /// <summary>
    /// æ‰¹æ¬¡å·
    /// </summary>
    [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "批次号")]
    public string BatchNo { get; set; }
    /// <summary>
    /// åºåˆ—号
    /// </summary>
    [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "序列号")]
    public string SerialNumber { get; set; }
    /// <summary>
    /// åº“存数量
    /// </summary>
    [SugarColumn(IsNullable = false, DecimalDigits = 2, ColumnDescription = "库存数量")]
    public decimal StockQuantity { get; set; }
    /// <summary>
    /// å‡ºåº“数量
    /// </summary>
    [SugarColumn(IsNullable = false, DecimalDigits = 2, ColumnDescription = "出库数量", DefaultValue = "0")]
    public decimal OutboundQuantity { get; set; }
    /// <summary>
    /// åº“存明细状态
    /// </summary>
    [SugarColumn(IsNullable = false, ColumnDescription = "库存明细状态")]
    public int Status { get; set; }
    /// <summary>
    /// å¤‡æ³¨
    /// </summary>
    [SugarColumn(IsNullable = true, ColumnDescription = "备注", Length = int.MaxValue)]
    public string Remark { get; set; }
    [ImporterHeader(Name = "移入历史时间")]
    [ExporterHeader(DisplayName = "移入历史时间")]
    [SugarColumn(IsNullable = false, ColumnDescription = "移入历史时间")]
    public DateTime InsertTime { get; set; }
}