using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
namespace WIDESEA_DTO.ERP
{
///
/// ERP采购入库单接收实体
///
[ModelValidate]
public class ERPPurchaseOrderDTO
{
///
/// 操作类型(1:新增 2:修改 3:删除)
///
[PropertyValidate("操作类型(1:新增 2:修改 3:删除)", NotNullAndEmpty = true)]
public int OperateType { get; set; }
///
/// 采购入库单号
///
[PropertyValidate("采购入库单号", NotNullAndEmpty = true)]
public string PurchaseInCode { get; set; }
///
/// 仓库编号
///
[PropertyValidate("仓库编号", NotNullAndEmpty = true)]
public string WarehouseCode { get; set; }
///
/// 供应商编号
///
[PropertyValidate("供应商编号", NotNullAndEmpty = true)]
public string SupplierCode { get; set; }
///
/// 总采购数量
///
[PropertyValidate("总采购数量", NotNullAndEmpty = true)]
public decimal SumQty { get; set; }
///
/// 备注信息
///
[PropertyValidate("备注信息", NotNullAndEmpty = false)]
public string? Remark { get; set; }
///
/// 采购入库明细
///
[PropertyValidate("采购入库明细", NotNullAndEmpty = true)]
public List PurchaseInDetail { get; set; }
}
///
/// 采购入库明细
///
public class PurchaseInDetailItem
{
///
/// 采购入库明细ID
///
[PropertyValidate("采购入库明细ID", NotNullAndEmpty = true)]
public int DetailId { get; set; }
///
/// 采购入库物料条码
///
[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 MaterialQty { get; set; }
///
/// 采购入库卷料卷径
///
[PropertyValidate("采购入库卷料卷径", NotNullAndEmpty = false)]
public decimal Thickness { get; set; }
///
/// 采购入库重量
///
[PropertyValidate("采购入库重量", NotNullAndEmpty = true)]
public decimal Weight { get; set; }
///
/// 幅宽
///
[PropertyValidate("幅宽", NotNullAndEmpty = true)]
public decimal Wide { get; set; }
}
}