本次提交为库位、入库、出库、出入库类别等业务表的查询DTO新增了多个查询字段,并在对应Service层的QueryExp方法中实现了这些字段的动态拼接查询。调整后支持按编码、名称、操作员等多条件模糊筛选,提升了查询灵活性和前端多条件检索能力。同时优化了部分using引用顺序。
68 lines
1.7 KiB
C#
68 lines
1.7 KiB
C#
|
|
namespace DOAN.Model.BZFM.Dto
|
|
{
|
|
/// <summary>
|
|
/// 库位表查询对象
|
|
/// </summary>
|
|
public class MmLocationQueryDto : PagerInfo
|
|
{
|
|
public string LocationCode { get; set; }
|
|
|
|
public string WarehouseCode { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 库位表输入输出对象
|
|
/// </summary>
|
|
public class MmLocationDto
|
|
{
|
|
[Required(ErrorMessage = "主键ID不能为空")]
|
|
public int Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "库位编码不能为空")]
|
|
public string LocationCode { get; set; }
|
|
|
|
[Required(ErrorMessage = "库位名称不能为空")]
|
|
public string LocationName { get; set; }
|
|
|
|
[Required(ErrorMessage = "仓库编码不能为空")]
|
|
public string WarehouseCode { get; set; }
|
|
|
|
public string WarehouseName { get; set; }
|
|
|
|
public string AreaCode { get; set; }
|
|
|
|
public string AreaName { get; set; }
|
|
|
|
public decimal Capacity { get; set; }
|
|
|
|
public string Unit { get; set; }
|
|
|
|
public string LocationType { get; set; }
|
|
|
|
public string Status { get; set; }
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "库位类型(半成品/成品/临时/返工/报废)")]
|
|
public string LocationTypeLabel { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 库位下拉选择
|
|
/// </summary>
|
|
public class MmLocationOption
|
|
{
|
|
public string LocationCode { get; set; }
|
|
public string LocationName { get; set; }
|
|
public string WarehouseCode { get; set; }
|
|
public string WarehouseName { get; set; }
|
|
public string LocationType { get; set; }
|
|
}
|
|
} |