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 { /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName="OrderId" ,IsPrimaryKey = true) ] public Guid OrderId { get; set; } /// /// 备 注:单据编号 /// 默认值: /// [SugarColumn(ColumnName="PurchaseNo" ) ] public string? PurchaseNo { get; set; } /// /// 备 注:批次号 /// 默认值: /// [SugarColumn(ColumnName="BatchNo" ) ] public string? BatchNo { get; set; } /// /// 备 注:单据类型 /// 默认值: /// [SugarColumn(ColumnName="PurchaseType" ) ] public string? PurchaseType { get; set; } /// /// 备 注:单据状态 /// 默认值: /// [SugarColumn(ColumnName="PurchaseState" ) ] public string? 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; } } }