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>
|
/// 博思通采购入库单接收实体
|
/// </summary>
|
[ModelValidate]
|
public class BSTPurchaseOrderDTO
|
{
|
/// <summary>
|
/// 数据获取方式标识(1:新增 2:修改 3:删除)
|
/// </summary>
|
[PropertyValidate("数据获取方式标识(1:新增 2:修改 3:删除)", NotNullAndEmpty = true)]
|
public int Way { get; set; }
|
|
/// <summary>
|
/// 纸质收货单主表ID
|
/// </summary>
|
[PropertyValidate("纸质收货单主表ID", NotNullAndEmpty = true)]
|
public int PaperReceiptId { get; set; }
|
|
/// <summary>
|
/// 纸质收货单编号
|
/// </summary>
|
[PropertyValidate("纸质收货单编号", NotNullAndEmpty = true)]
|
public string PaperReceiptNo { get; set; }
|
|
/// <summary>
|
/// 供应商编号
|
/// </summary>
|
[PropertyValidate("供应商编号", NotNullAndEmpty = true)]
|
public string VendNo { get; set; }
|
|
/// <summary>
|
/// 总采购长度
|
/// </summary>
|
[PropertyValidate("总采购长度", NotNullAndEmpty = true)]
|
public decimal TotalProcurementLength { get; set; }
|
|
/// <summary>
|
/// 收货日期
|
/// </summary>
|
[PropertyValidate("收货日期", NotNullAndEmpty = true)]
|
public long ReceiptDate { get; set; }
|
|
/// <summary>
|
/// 备注信息
|
/// </summary>
|
[PropertyValidate("备注信息", NotNullAndEmpty = false)]
|
public string? Remark { get; set; }
|
|
/// <summary>
|
/// 纸质收货单明细列表
|
/// </summary>
|
[PropertyValidate("纸质收货单明细列表", NotNullAndEmpty = true)]
|
public List<PaperReceiptDetailsItem> PaperReceiptDetails { get; set; }
|
}
|
/// <summary>
|
/// 采购收货明细
|
/// </summary>
|
public class PaperReceiptDetailsItem
|
{
|
/// <summary>
|
/// 关联的主表ID
|
/// </summary>
|
[PropertyValidate("关联的主表ID", NotNullAndEmpty = true)]
|
public int PaperReceiptId { get; set; }
|
|
/// <summary>
|
/// 物料条码
|
/// </summary>
|
[PropertyValidate("物料条码", NotNullAndEmpty = true)]
|
public string Barcode { get; set; }
|
|
/// <summary>
|
/// 物料来源ID(上游)
|
/// </summary>
|
[PropertyValidate("物料ID", NotNullAndEmpty = true)]
|
public int MaterialId { get; set; }
|
|
/// <summary>
|
/// 物料编号
|
/// </summary>
|
[PropertyValidate("物料编号", NotNullAndEmpty = true)]
|
public string MaterialNo { get; set; }
|
|
/// <summary>
|
/// 批次序列号
|
/// </summary>
|
[PropertyValidate("批次序列号", NotNullAndEmpty = true)]
|
public int SeqNo { get; set; }
|
|
/// <summary>
|
/// 幅宽
|
/// </summary>
|
[PropertyValidate("幅宽", NotNullAndEmpty = true)]
|
public decimal W { get; set; }
|
|
/// <summary>
|
/// 厚度
|
/// </summary>
|
[PropertyValidate("厚度", NotNullAndEmpty = true)]
|
public decimal Thick { get; set; }
|
|
/// <summary>
|
/// 采购长度
|
/// </summary>
|
[PropertyValidate("采购长度", NotNullAndEmpty = true)]
|
public decimal ProcurementLength { get; set; }
|
|
/// <summary>
|
/// 交货数量
|
/// </summary>
|
[PropertyValidate("交货数量", NotNullAndEmpty = true)]
|
public decimal DeliveryQty { get; set; }
|
|
/// <summary>
|
/// 计量单位(KG)
|
/// </summary>
|
[PropertyValidate("计量单位", NotNullAndEmpty = true)]
|
public string Unit { get; set; }
|
}
|
}
|