在 MmRecordOutboundDto 新增 Operator 字段,并在 MmRecordOutboundService 中增加对 Operator 的模糊查询条件,支持按操作人筛选出库记录。
114 lines
3.1 KiB
C#
114 lines
3.1 KiB
C#
|
|
namespace DOAN.Model.BZFM.Dto
|
|
{
|
|
/// <summary>
|
|
/// 出库记录表查询对象
|
|
/// </summary>
|
|
public class MmRecordOutboundQueryDto : PagerInfo
|
|
{
|
|
public string MaterialCode { get; set; }
|
|
|
|
public string OutboundNo { get; set; }
|
|
|
|
public DateTime[] CreatedTime { get; set; } = new DateTime[2];
|
|
|
|
public string TransactionType { get; set; }
|
|
|
|
public string Operator { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 出库记录表输入输出对象
|
|
/// </summary>
|
|
public class MmRecordOutboundDto
|
|
{
|
|
[Required(ErrorMessage = "主键ID不能为空")]
|
|
public int Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "出库单号不能为空")]
|
|
public string OutboundNo { get; set; }
|
|
|
|
[Required(ErrorMessage = "物料编码不能为空")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
public string MaterialName { get; set; }
|
|
|
|
[Required(ErrorMessage = "仓库编码不能为空")]
|
|
public string WarehouseCode { get; set; }
|
|
|
|
public string WarehouseName { get; set; }
|
|
|
|
public string LocationCode { get; set; }
|
|
|
|
public string LocationName { get; set; }
|
|
|
|
[Required(ErrorMessage = "出库数量不能为空")]
|
|
public decimal Quantity { get; set; }
|
|
|
|
public string Unit { get; set; }
|
|
|
|
[Required(ErrorMessage = "出库类型不能为空")]
|
|
public string TransactionType { get; set; }
|
|
|
|
public string BatchNo { get; set; }
|
|
|
|
public string OrderNo { get; set; }
|
|
|
|
public string Operator { get; set; }
|
|
|
|
public string Remarks { get; set; }
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "出库类型")]
|
|
public string TransactionTypeLabel { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 出库单
|
|
/// </summary>
|
|
public class OutboundReceiptDto
|
|
{
|
|
[Required(ErrorMessage = "出库单号不能为空")]
|
|
public string OutboundNo { get; set; }
|
|
|
|
[Required(ErrorMessage = "物料编码不能为空")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
public string MaterialName { get; set; }
|
|
|
|
[Required(ErrorMessage = "仓库编码不能为空")]
|
|
public string WarehouseCode { get; set; }
|
|
|
|
public string WarehouseName { get; set; }
|
|
|
|
public string LocationCode { get; set; }
|
|
|
|
public string LocationName { get; set; }
|
|
|
|
[Required(ErrorMessage = "出库数量不能为空")]
|
|
public decimal Quantity { get; set; }
|
|
|
|
public string Unit { get; set; }
|
|
|
|
[Required(ErrorMessage = "出库类型不能为空")]
|
|
public string TransactionType { get; set; }
|
|
|
|
public string BatchNo { get; set; }
|
|
|
|
public string OrderNo { get; set; }
|
|
|
|
public string Operator { get; set; }
|
|
|
|
public string Remarks { get; set; }
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
[ExcelColumn(Name = "出库类型")]
|
|
public string TransactionTypeLabel { get; set; }
|
|
|
|
// 1-蓝单正向 2-红单逆向
|
|
public int ReceiptType { get; set; } = 1;
|
|
}
|
|
} |