using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
using WIDESEA_Core.CodeConfigEnum;
namespace WIDESEA_DTO.Basic
{
    /// 
    /// 
    /// 
    [AnalysisRule, ModelValidate]
    public class MatSerNumAnalysisModel
    {
        /// 
        /// 物料编号
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.MTC), PropertyValidate("物料编号", NotNullAndEmpty = true)]
        public string MaterielCode { get; set; }
        /// 
        /// 批次号
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.BHN), PropertyValidate("批次号", NotNullAndEmpty = true)]
        public string LotNo { get; set; }
        /// 
        /// 生产日期
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.MTPD), PropertyValidate("生产日期", NotNullAndEmpty = true)]
        public string ProductionDate { get; set; }
        /// 
        /// 有效期
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.ED), PropertyValidate("有效期", NotNullAndEmpty = true)]
        public string EffectiveDate { get; set; }
        /// 
        /// 采购单号
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.ODN), PropertyValidate("采购单号", NotNullAndEmpty = true)]
        public string PurchaseOrderNo { get; set; }
        /// 
        /// 数量
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.MTQ), PropertyValidate("数量", NotNullAndEmpty = true)]
        public float Quantity { get; set; }
        /// 
        /// 原始数据
        /// 
        [AnalysisItemRule(AnalysisFormatTypeEnum.BD), PropertyValidate("原始数据", NotNullAndEmpty = true)]
        public string SerialNumber { get; set; }
    }
}