| | |
| | | using Magicodes.ExporterAndImporter.Core; |
| | | using Masuit.Tools.Core.Validator; |
| | | using SqlSugar; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using WIDESEA_Core.DB.Models; |
| | | |
| | | namespace WIDESEA_Model.Models |
| | | { |
| | | [SugarTable(nameof(DtStockInfo_Hty), "åºåä¿¡æ¯åå²")] |
| | | public class DtStockInfo_Hty : DtStockInfo, IBaseHistoryEntity |
| | | public class DtStockInfo_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> |
| | | [SugarColumn(ColumnName = "DtSTockInfoDetails")] |
| | | [Navigate(NavigateType.OneToMany, nameof(DtStockInfoDetail_Hty.StockId))] |
| | | public List<DtStockInfoDetail_Hty>? StockInfoDetails { get; set; } |
| | | } |
| | | } |