在 MmRecordInboundDto 中新增 MaterialCode 和 InboundNo 属性;在 MmRecordInboundService 的 QueryExp 方法中,增加对这两个字段的模糊查询支持,完善入库记录的查询功能。
108 lines
3.3 KiB
C#
108 lines
3.3 KiB
C#
|
|
namespace DOAN.Model.BZFM.Dto
|
|
{
|
|
/// <summary>
|
|
/// 入库记录表查询对象
|
|
/// </summary>
|
|
public class MmRecordInboundQueryDto : PagerInfo
|
|
{
|
|
public string SupplierCode { get; set; }
|
|
|
|
public string Operator { get; set; }
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
public string MaterialCode { get; set; }
|
|
|
|
public string InboundNo { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 入库记录表输入输出对象
|
|
/// </summary>
|
|
public class MmRecordInboundDto
|
|
{
|
|
public string Unit { get; set; }
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
public string Remarks { get; set; }
|
|
|
|
public string Operator { get; set; }
|
|
|
|
public string SupplierName { get; set; }
|
|
|
|
public string SupplierCode { get; set; }
|
|
|
|
public DateTime? ExpiryDate { get; set; }
|
|
|
|
public DateTime? ProductionDate { get; set; }
|
|
|
|
public string BatchNo { get; set; }
|
|
|
|
[Required(ErrorMessage = "入库类型不能为空")]
|
|
public string TransactionType { get; set; }
|
|
|
|
[Required(ErrorMessage = "主键ID不能为空")]
|
|
public int Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "入库数量不能为空")]
|
|
public decimal Quantity { get; set; }
|
|
|
|
public string LocationName { get; set; }
|
|
|
|
public string LocationCode { get; set; }
|
|
|
|
public string WarehouseName { get; set; }
|
|
|
|
[Required(ErrorMessage = "仓库编码不能为空")]
|
|
public string WarehouseCode { get; set; }
|
|
|
|
public string MaterialName { get; set; }
|
|
|
|
[Required(ErrorMessage = "物料编码不能为空")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
[Required(ErrorMessage = "入库单号不能为空")]
|
|
public string InboundNo { get; set; }
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "入库类型")]
|
|
public string TransactionTypeLabel { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 入库单
|
|
/// </summary>
|
|
public class InboundReceiptDto
|
|
{
|
|
public string Unit { get; set; }
|
|
public DateTime? CreatedTime { get; set; }
|
|
public string Remarks { get; set; }
|
|
public string Operator { get; set; }
|
|
public string SupplierName { get; set; }
|
|
public string SupplierCode { get; set; }
|
|
public DateTime? ExpiryDate { get; set; }
|
|
public DateTime? ProductionDate { get; set; }
|
|
public string BatchNo { get; set; }
|
|
[Required(ErrorMessage = "入库类型不能为空")]
|
|
public string TransactionType { get; set; }
|
|
[Required(ErrorMessage = "入库数量不能为空")]
|
|
public decimal Quantity { get; set; }
|
|
public string LocationName { get; set; }
|
|
public string LocationCode { get; set; }
|
|
public string WarehouseName { get; set; }
|
|
[Required(ErrorMessage = "仓库编码不能为空")]
|
|
public string WarehouseCode { get; set; }
|
|
public string MaterialName { get; set; }
|
|
[Required(ErrorMessage = "物料编码不能为空")]
|
|
public string MaterialCode { get; set; }
|
|
[Required(ErrorMessage = "入库单号不能为空")]
|
|
public string InboundNo { get; set; }
|
|
[ExcelColumn(Name = "入库类型")]
|
|
public string TransactionTypeLabel { get; set; }
|
|
// 1-蓝单正向 2-红单逆向
|
|
public int ReceiptType { get; set; } = 1;
|
|
}
|
|
} |