using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
namespace WIDESEA_DTO.MES
{
    /// 
    /// 返工提库
    /// 
    [ModelValidate]
    public class RworkTaskModel
    {
        /// 
        /// 任务单号
        /// 
        [PropertyValidate("任务单号", NotNullAndEmpty = true)]
        public string TaskNo {  get; set; }
        /// 
        /// 产品编码
        /// 
        [PropertyValidate("产品编码", NotNullAndEmpty = true)]
        public string ProductCode { get; set; }
        /// 
        /// 产品名称
        /// 
        [PropertyValidate("产品名称", NotNullAndEmpty = true)]
        public string ProductName { get; set; }
        /// 
        /// 产品版本
        /// 
        [PropertyValidate("产品版本", NotNullAndEmpty = true)]
        public string ProductVersion { get; set; }
        /// 
        /// 周期
        /// 
        [PropertyValidate("周期", NotNullAndEmpty = true)]
        public string DateCode { get; set; }
        /// 
        /// 需求PCS数量
        /// 
        [PropertyValidate("需求数量", NotNullAndEmpty = true)]
        public float RequiredQuantity { get; set; }
        /// 
        /// 需求SET数量
        /// 
        public float RequiredSetCount { get; set; }
        /// 
        /// 仓库
        /// 
        public string WarehouseCode { get; set; }
        /// 
        /// 工厂
        /// 
        public string FactoryCode { get; set; } = "HA02";
        /// 
        /// 接收
        /// 
        public int ReceiveDown { get; set; }
        /// 
        /// 销售订单
        /// 
        [PropertyValidate("销售订单", NotNullAndEmpty = true)]
        public string SaleOrder { get; set; }
        /// 
        /// 库存类型
        /// 1:客退
        /// 2:库存不良
        /// 3:余数提仓
        /// 
        [PropertyValidate("库存类型", NotNullAndEmpty = true, Check = new object[] { 1, 2,3 })]
        public int InventoryType { get; set; }
    }
}