1
hutongqing
2024-12-18 70f22c9c06c7dfe2a2a83c0d2fcc79892dba7d8f
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Inbound/Dt_PurchaseOrder.cs
@@ -9,57 +9,63 @@
namespace WIDESEA_Model.Models
{
    [SugarTable(nameof(Dt_PurchaseOrder), "采购订单"), ModelValidate]
    /// <summary>
    ///
    /// </summary>
    [SugarTable(nameof(Dt_PurchaseOrder), "采购单"), ModelValidate]
    public class Dt_PurchaseOrder : BaseEntity
    {
        /// <summary>
        /// ä¸»é”®
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
        /// <summary>
        /// é‡‡è´­å•号
        /// </summary>
        [PropertyValidate("采购单号", NotNullAndEmpty = true)]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "采购单号")]
        public string PurchaseOrderNo { get; set; }
        /// <summary>
        /// å•据类型(S:标准入库、V:寄售补给入库)
        /// </summary>
        [PropertyValidate("单据类型", NotNullAndEmpty = true, Check = new[] { "S", "V" })]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "单据类型")]
        public string PurchaseOrderType { get; set; }
        /// <summary>
        /// ä¾›åº”商编号
        /// </summary>
        [PropertyValidate("供应商编号", NotNullAndEmpty = true)]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "供应商编号")]
        public string SupplierCode { get; set; }
        /// <summary>
        /// é‡‡è´­æ•°é‡
        /// </summary>
        [PropertyValidate("采购数量", MinValue = 0, IsContainMinValue = false)]
        [SugarColumn(IsNullable = false, ColumnDescription = "")]
        [SugarColumn(IsNullable = false, ColumnDescription = "采购数量")]
        public float OrderQuantity { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "")]
        /// <summary>
        /// é‡‡è´­å•状态
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "采购单状态")]
        public int PurchaseOrderStatus { get; set; }
        /// <summary>
        /// ä¸‹å•日期
        /// </summary>
        [PropertyValidate("下单日期", NotNullAndEmpty = true)]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "")]
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "下单日期")]
        public string OrderDate { get; set; }
        /// <summary>
        /// å¤‡æ³¨
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "")]
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "备注")]
        public string Remark { get; set; }
        /// <summary>