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.Inbound
{
public class AddInboundOrderModel
{
//
/// 仓库Id
///
[PropertyValidate("仓库Id", NotNullAndEmpty = true)]
public int WarehouseId { get; set; }
///
/// 单据编号
///
[PropertyValidate("单据编号", NotNullAndEmpty = true)]
public string OrderNo { get; set; }
///
/// 单据编号
///
[PropertyValidate("上游单据编号", NotNullAndEmpty = true)]
public string UpperOrderNo { get; set; }
///
/// 单据编号
///
[PropertyValidate("单据类型", NotNullAndEmpty = true)]
public int OrderType { get; set; }
///
/// 报废明细
///
[PropertyValidate("入库单明细", NotNullAndEmpty = true)]
public List Details { get; set; }
}
[ModelValidate]
public class InboundOrderDetailDTO
{
///
/// 物料编码
///
[PropertyValidate("物料编码", NotNullAndEmpty = true)]
public string MaterielCode { get; set; }
///
/// 物料名称
///
[PropertyValidate("物料名称", NotNullAndEmpty = true)]
public string MaterielName { get; set; }
///
/// 批次号
///
[PropertyValidate("批次号", NotNullAndEmpty = true)]
public string BatchNo { get; set; }
///
/// 供应商批次号
///
[PropertyValidate("供应商批次号", NotNullAndEmpty = true)]
public string SupplierBatch { get; set; }
///
/// 单据数量
///
[PropertyValidate("单据数量", NotNullAndEmpty = true)]
public decimal OrderQuantity { get; set; }
///
/// 备注
///
[PropertyValidate("备注", NotNullAndEmpty = false)]
public string Remark { get; set; }
}
}