using System.ComponentModel.DataAnnotations; namespace DOAN.Model.MES.material.Dto { /// /// 北泽线边库出入库查询对象 /// public class MaterialPartsTransactionsQueryDto : PagerInfo { public string PartName { get; set; } public string TransactionType { get; set; } } /// /// 北泽线边库出入库输入输出对象 /// public class MaterialPartsTransactionsDto { [Required(ErrorMessage = "交易ID不能为空")] public int TransactionId { get; set; } [Required(ErrorMessage = "备件ID不能为空")] public int PartId { get; set; } /// /// 备件名称 /// public string PartName { get; set; } [Required(ErrorMessage = "交易类型:入库(in),出库(out)不能为空")] public string TransactionType { get; set; } [Required(ErrorMessage = "数量不能为空")] public int Quantity { get; set; } public DateTime? TransactionDate { get; set; } public int? SupplierId { get; set; } public string Remarks { get; set; } public string CreatedBy { get; set; } } }