using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
namespace WIDESEA_DTO.ERP
{
    /// 
    /// 成品仓检报废单
    /// 
    [ModelValidate]
    public class ErpProductScrappedOrderDTO
    {
        /// 
        /// 订单号
        /// 
        [PropertyValidate("订单号", NotNullAndEmpty = true)]
        public string OrderNo { get; set; }
        /// 
        /// 产品编码
        /// 
        [PropertyValidate("产品编码", NotNullAndEmpty = true)]
        public string PCode { get; set; }
        /// 
        /// 产品版本
        /// 
        [PropertyValidate("产品版本", NotNullAndEmpty = true)]
        public string PVer { get; set; }
        /// 
        /// 产品批次
        /// 
        [PropertyValidate("产品批次", NotNullAndEmpty = true)]
        public string PLot { get; set; }
        /// 
        /// 产品周期
        /// 
        [PropertyValidate("产品周期")]
        public int DateCode { get; set; }
        /// 
        /// 仓库类型
        /// HA72=尾数仓、HA71=成品仓、HA73=研发仓
        /// 
        [PropertyValidate("仓库类型", NotNullAndEmpty = true)]
        public string WaType { get; set; }
        /// 
        /// 合格PCS数
        /// 
        [PropertyValidate("合格PCS数", NotNullAndEmpty = true)]
        public float QtyPcs { get; set; }
        /// 
        /// X板数
        /// 
        [PropertyValidate("X板数")]
        public float XQty { get; set; }
        /// 
        /// X板位
        /// 
        [PropertyValidate("X板位")]
        public string XSite { get; set; }
        /// 
        /// 单位
        /// 
        [PropertyValidate("单位", NotNullAndEmpty = true)]
        public string Unit { get; set; }
        /// 
        /// 建单日期
        /// yyyy-MM-dd
        /// 
        [PropertyValidate("建单日期", NotNullAndEmpty = true)]
        public string OrderDate { get; set; }
        /// 
        /// 备注
        /// 
        [PropertyValidate("备注")]
        public string Note { get; set; }
    }
}