shgx_tz_mom/ZR.Model/MES/pro/DTO/ProFinishedProductReceiptDto.cs
2025-11-14 17:26:04 +08:00

109 lines
3.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// MES成品入库单主表含产品信息及标签打印状态查询对象
/// </summary>
public class ProFinishedProductReceiptQueryDto : PagerInfo
{
/// <summary>
/// 入库类型
/// </summary>
public string ReceiptType { get; set; }
/// <summary>
/// 单据状态
/// </summary>
public string Status { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
}
/// <summary>
/// MES成品入库单主表含产品信息及标签打印状态输入输出对象
/// </summary>
public class ProFinishedProductReceiptDto
{
[Required(ErrorMessage = "入库单号主键规则RCP+日期+流水号如RCP20251112001不能为空")]
public string ReceiptNo { get; set; }
[Required(ErrorMessage = "入库日期不能为空")]
public DateTime? ReceiptDate { get; set; }
public string SiteNo { get; set; }
public string WorkOrder { get; set; }
[Required(ErrorMessage = "仓库编码(关联仓库表)不能为空")]
public string WarehouseCode { get; set; }
[Required(ErrorMessage = "入库类型NORMAL-正常入库REWORK-返工入库RETURN-客户退货OTHER-其他不能为空")]
public string ReceiptType { get; set; }
[Required(ErrorMessage = "单据状态DRAFT-草稿SUBMITTED-已提交APPROVED-已审核CANCELED-已取消不能为空")]
public string Status { get; set; }
[Required(ErrorMessage = "产品编号对应JSON中的PartNumber如5615101DSV0000B96不能为空")]
public string PartNumber { get; set; }
[Required(ErrorMessage = "产品名称对应JSON中的Description如A58左后门把手-手动版-幻彩银)不能为空")]
public string Description { get; set; }
public string Color { get; set; }
public string Specification { get; set; }
public string ProductionLine { get; set; }
public string Team { get; set; }
public string ShiftNo { get; set; }
public string LabelFrom { get; set; }
public DateTime? ProductionTime { get; set; }
[Required(ErrorMessage = "批次编码对应JSON中的BatchCode如20251016不能为空")]
public string BatchCode { get; set; }
[Required(ErrorMessage = "计量单位(如个、箱、台)不能为空")]
public string Unit { get; set; }
public string PackageCode { get; set; }
public int? PackageCount { get; set; }
public int? PackageNum { get; set; }
public string LabelCode { get; set; }
[Required(ErrorMessage = "标签打印状态UNPRINTED-未打印PRINTED-已打印不能为空")]
public string LabelPrintStatus { get; set; }
public string StorageLocation { get; set; }
public string QcStatus { get; set; }
[Required(ErrorMessage = "创建人用户ID不能为空")]
public string CreatedBy { get; set; }
[Required(ErrorMessage = "创建时间对应JSON中的CreatedTime不能为空")]
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
public string ApprovedBy { get; set; }
public DateTime? ApprovedTime { get; set; }
public string Remark { get; set; }
}
}