using System; using System.Collections.Generic; using System.Linq; using SqlSugar; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 采购入库主表 /// [SugarTable("Dt_InboundOrderPurchase")] public class Dt_InboundOrderPurchase : BaseEntity { /// /// 备 注:入库单ID /// 默认值: /// [SugarColumn(ColumnName="OrderId" ,IsPrimaryKey = true,IsIdentity = true) ] public int OrderId { get; set; } /// /// 备 注:单据编号 /// 默认值: /// [SugarColumn(ColumnName="PurchaseNo" ) ] public string? PurchaseNo { get; set; } /// /// 备 注:批次号 /// 默认值: /// [SugarColumn(ColumnName="BatchNo" ) ] public string? BatchNo { get; set; } /// /// 备 注:单据类型1,一般入库 2,盘点入库 3,分拣入库 4,质检入库 5,库内移库 6,库外移库 /// 默认值: /// [SugarColumn(ColumnName="PurchaseType" ) ] public int? PurchaseType { get; set; } /// /// 备 注:单据状态 /// 默认值: /// [SugarColumn(ColumnName="PurchaseState" ) ] public int? PurchaseState { get; set; } /// /// 备 注:同步标志(0:未同步 1:同步成功 2:同步失败) /// 默认值: /// [SugarColumn(ColumnName="SynchronizationFlag" ) ] public int? SynchronizationFlag { get; set; } /// /// 备 注:采购日期 /// 默认值: /// [SugarColumn(ColumnName="PurchaseDate" ) ] public string? PurchaseDate { get; set; } /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="Remark" ) ] public string? Remark { get; set; } /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="Spare1" ) ] public string? Spare1 { get; set; } /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="Spare2" ) ] public string? Spare2 { get; set; } /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="Spare3" ) ] public string? Spare3 { get; set; } /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="Spare4" ) ] public string? Spare4 { get; set; } /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="Spare5" ) ] public string? Spare5 { get; set; } /// /// 入库单明细 /// [Navigate(NavigateType.OneToMany, nameof(Dt_InboundOrderPurchaseDetail.OrderId))] public List Dt_InboundOrderPurchaseDetailList { get; set; } } }