using System; using System.Collections.Generic; using System.Linq; using Magicodes.ExporterAndImporter.Core; using SqlSugar; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 入库单主表 /// [SugarTable("Dt_InboundOrder")] public class Dt_InboundOrder : BaseEntity { /// /// 备 注:入库单ID /// 默认值: /// [SugarColumn(ColumnName="OrderId" ,IsPrimaryKey = true,IsIdentity = true) ] public int OrderId { get; set; } /// /// 备 注:单据编号 /// 默认值: /// [SugarColumn(ColumnName="InboundNo" ) ] public string? InboundNo { get; set; } /// /// 备 注:上游单据编号 /// 默认值: /// [SugarColumn(ColumnName="InboundUpperNo" ) ] public string? InboundUpperNo { get; set; } /// /// 备 注:批次号 /// 默认值: /// [SugarColumn(ColumnName="BatchNo" ) ] public string? BatchNo { get; set; } /// /// 备 注:单据日期 /// 默认值: /// [SugarColumn(ColumnName="InboundDate" ) ] public DateTime? InboundDate { get; set; } /// /// 备 注:上游单据类型 100 生产入库单;200 生产退料单;300 采购入库单;400 调拨入库单;500 销售退货单;600 空盘入库单;700 其他入库单 /// 默认值: /// [SugarColumn(ColumnName="InboundType" ) ] public int? InboundType { get; set; } /// /// 备 注:单据状态(0,未开始 1,组盘中 2,完成组盘 3,入库中 4,已入库 ) /// 默认值: /// [SugarColumn(ColumnName="InboundState" ) ] public int? InboundState { 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; } /// /// 入库单明细 /// [SugarColumn(ColumnName = "Dt_InboundOrderDetailList")] [Navigate(NavigateType.OneToMany, nameof(Dt_InboundOrderDetail.OrderId))] public List Dt_InboundOrderDetailList { get; set; } } }