Files
kunshan-bzfm-mes-backend/DOAN.Model/MES/Material/Dto/MmLocationDto.cs
git_rabbit fc73df54c7 新增库位下拉接口及相关DTO与错误提示优化
新增 GetLocationOption 接口,完善 Controller、Service 层及 MmLocationOption DTO,实现库位下拉数据获取。修正仓库或库位不存在时的错误提示信息。
2025-12-29 13:56:52 +08:00

65 lines
1.6 KiB
C#

namespace DOAN.Model.BZFM.Dto
{
/// <summary>
/// 库位表查询对象
/// </summary>
public class MmLocationQueryDto : PagerInfo
{
}
/// <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; }
}
}