using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Core.Attributes;
|
|
namespace WIDESEA_DTO.ERP
|
{
|
/// <summary>
|
/// 标准/bom退料
|
/// </summary>
|
[ModelValidate]
|
public class ErpReturnOrderDTO
|
{
|
/// <summary>
|
/// 操作类型<br/>
|
/// 1:新增<br/>
|
/// 2:修改<br/>
|
/// 3:删除(删除只要明细行号和领料单号)
|
/// </summary>
|
[PropertyValidate("操作类型", NotNullAndEmpty = true, Check = new object[] { 1, 2, 3 })]
|
public int Way { get; set; }
|
|
/// <summary>
|
/// 退料订单号
|
/// </summary>
|
[PropertyValidate("退料订单号", NotNullAndEmpty = true)]
|
public string OrderNo { get; set; }
|
|
/// <summary>
|
/// 仓库编号
|
/// </summary>
|
[PropertyValidate("仓库编号", NotNullAndEmpty = true)]
|
public string WaCode { get; set; }
|
|
/// <summary>
|
/// 单据备注
|
/// </summary>
|
public string? Note { get; set; }
|
|
/// <summary>
|
/// 订单类型<br/>
|
/// 1:标准退料<br/>
|
/// 2:bom退料<br/>
|
/// </summary>
|
[PropertyValidate("订单类型", NotNullAndEmpty = true, Check = new object[] { 1, 2 })]
|
public int OrderType { get; set; }
|
|
/// <summary>
|
/// 是否研发
|
/// 0:否
|
/// 1:是
|
/// </summary>
|
[PropertyValidate("是否研发", NotNullAndEmpty = true, Check = new object[] { 0, 1 })]
|
public int IsDev { get; set; }
|
|
/// <summary>
|
/// 列表
|
/// </summary>
|
[PropertyValidate("列表", NotNullAndEmpty = true)]
|
public List<ReturnDetail> Issitem { get; set; }
|
}
|
/// <summary>
|
/// 退料明细
|
/// </summary>
|
[ModelValidate]
|
public class ReturnDetail
|
{
|
/// <summary>
|
/// 申请单号(发料单)
|
/// </summary>
|
[PropertyValidate("申请单号", NotNullAndEmpty = true)]
|
public string PickCode { get; set; }
|
|
/// <summary>
|
/// 申请单号行号(发料单明细行号)
|
/// </summary>
|
[PropertyValidate("申请单号行号", NotNullAndEmpty = false)]
|
public int? ApplyRow { get; set; }
|
|
/// <summary>
|
/// 退料行号
|
/// </summary>
|
[PropertyValidate("退料行号", NotNullAndEmpty = true)]
|
public int RowId { get; set; }
|
|
/// <summary>
|
/// 退料信息
|
/// </summary>
|
[PropertyValidate("退料信息", NotNullAndEmpty = true)]
|
public List<ReturnInfo> PickList { get; set; }
|
}
|
/// <summary>
|
/// 退料信息
|
/// </summary>
|
[ModelValidate]
|
public class ReturnInfo
|
{
|
/// <summary>
|
/// 物料编码
|
/// </summary>
|
[PropertyValidate("物料编码", NotNullAndEmpty = true)]
|
public string MCode { get; set; }
|
|
/// <summary>
|
/// 可退数量
|
/// </summary>
|
[PropertyValidate("可退数量", NotNullAndEmpty = true)]
|
public float Qty { get; set; }
|
|
/// <summary>
|
/// 单位
|
/// </summary>
|
[PropertyValidate("单位", NotNullAndEmpty = true)]
|
public string Unit { get; set; }
|
|
/// <summary>
|
/// 退回数量
|
/// </summary>
|
[PropertyValidate("退回数量", NotNullAndEmpty = true)]
|
public float ReturnQty { get; set; }
|
|
public string? Code { get; set; }
|
}
|
}
|