using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.Attributes; using WIDESEA_Core.CodeConfigEnum; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 收货单 /// [SugarTable(nameof(Dt_ReceiveOrder), "收货单")] public class Dt_ReceiveOrder : BaseEntity { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int ReceiveOrderId { get; set; } /// /// 收货单号 /// [CodeRule(RuleCodeEnum.ReceiveOrderRule)] [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "收货单号")] public string ReceiveOrderNo { get; set; } /// /// 订单类型 /// [SugarColumn(IsNullable = false, ColumnDescription = "订单类型")] public int ReceiveOrderType { get; set; } /// /// 订单状态 /// [SugarColumn(IsNullable = false, ColumnDescription = "订单状态")] public int ReceiveOrderStatus { get; set; } /// /// 上传状态 /// [SugarColumn(IsNullable = false, ColumnDescription = "上传状态")] public int UploadStatus { get; set; } /// /// 客户代号 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "客户代号")] public string CustomerId { get; set; } /// /// 供应商代号 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "供应商代号")] public string SuppliersId { get; set; } /// /// 仓库主键 /// [SugarColumn(IsNullable = false, ColumnDescription = "仓库主键")] public int WarehouseId { get; set; } /// /// 收货日期 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "收货日期")] public DateTime ReceiveDate { get; set; } /// /// 送货单号 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "送货单号")] public string DeliveryCode { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "备注")] public string Remark { get; set; } /// /// 收货单明细 /// [Navigate(NavigateType.OneToMany, nameof(Dt_ReceiveOrderDetail.ReceiveOrderId), nameof(ReceiveOrderId))] public List Details { get; set; } } }