using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
namespace WIDESEA_DTO.MES
{
///
/// MES空托/余料接收实体
///
[ModelValidate]
public class MESReturnIssueDTO
{
///
/// 出库来源明细ID
///
[PropertyValidate("出库来源明细ID", NotNullAndEmpty = true)]
public int OutDetailId { get; set; }
///
/// 呼叫Id
///
[PropertyValidate("呼叫Id", NotNullAndEmpty = true)]
public string IssueId { get; set; }
///
/// 周转位置编号
///
[PropertyValidate("周转位置编号", NotNullAndEmpty = true)]
public string PointCode { get; set; }
///
/// 余料信息
///
[PropertyValidate("余料信息", NotNullAndEmpty = false)]
public MESReturnMaterial? ReturnMaterial { get; set; }
}
///
/// 余料信息
///
public class MESReturnMaterial
{
///
/// 条码信息
///
[PropertyValidate("条码信息", NotNullAndEmpty = true)]
public string BarCode { get; set; }
///
/// 物料代码
///
[PropertyValidate("物料代码", NotNullAndEmpty = true)]
public string MaterialCode { get; set; }
///
/// 物料批次
///
[PropertyValidate("物料批次", NotNullAndEmpty = true)]
public string MaterialLot { get; set; }
///
/// 退料数量
///
[PropertyValidate("退料数量", NotNullAndEmpty = true)]
public decimal ReturnQuantity { get; set; }
///
/// 是否领料(1未领料 0已临料)
///
[PropertyValidate("是否领料(1未领料 0已临料)", NotNullAndEmpty = true)]
public string Whether { get; set; }
///
/// 退料工单号(ERP相关)
///
[PropertyValidate("退料工单号(ERP相关)", NotNullAndEmpty = false)]
public string ReturnOrderNo { get; set; }
///
/// 直径
///
[PropertyValidate("直径", NotNullAndEmpty = true)]
public string Thickness { get; set; }
///
/// 幅宽
///
[PropertyValidate("幅宽", NotNullAndEmpty = true)]
public decimal Wide { get; set; }
///
/// 重量
///
[PropertyValidate("重量", NotNullAndEmpty = true)]
public decimal Weight { get; set; }
}
}