Files
kunshan-bzfm-mes-backend/DOAN.Model/MES/Material/Dto/MmMaterialDto.cs

144 lines
4.2 KiB
C#
Raw Normal View History

namespace DOAN.Model.BZFM.Dto
{
/// <summary>
/// 物料表查询对象
/// </summary>
public class MmMaterialQueryDto : PagerInfo
{
public object CateoryName;
public string CategoryCode { get; set; }
2025-12-25 17:38:24 +08:00
public string MaterialName { get; set; }
public string MaterialCode { get; set; }
public string Specification { get; set; }
public string TypeLabel { get; set; }
public string Type { get; set; }
2025-12-25 17:38:24 +08:00
public string Status { get; set; }
public DateTime? CreatedTime { get; set; }
2026-01-06 17:26:47 +08:00
public int Id { get; set; }
}
/// <summary>
/// 物料表输入输出对象
/// </summary>
public class MmMaterialDto
{
[Required(ErrorMessage = "主键ID不能为空")]
public int Id { get; set; }
[Required(ErrorMessage = "物料编码不能为空")]
public string MaterialCode { get; set; }
[Required(ErrorMessage = "物料名称不能为空")]
public string MaterialName { get; set; }
public string Specification { get; set; }
public string CategoryCode { get; set; }
public string CategoryName { get; set; }
public string Unit { get; set; }
public string Type { get; set; }
public string SupplierCode { get; set; }
public string SupplierName { get; set; }
public decimal SafetyStock { 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 TypeLabel { get; set; }
}
/// <summary>
/// 物料清单下拉内容
/// </summary>
public class MmMaterialOption
{
2026-01-09 15:54:21 +08:00
public int Id { get; set; }
public string MaterialCode { get; set; }
public string MaterialName { get; set; }
public string Specification { get; set; }
public string CategoryCode { get; set; }
2026-01-09 11:22:45 +08:00
public string SupplierCode { get; set; }
public string SupplierName { get; set; }
public string Type { get; set; }
}
2026-01-07 15:15:36 +08:00
// <summary>
/// 物料清单导入导出
/// </summary>
2026-01-07 16:46:43 +08:00
[SugarTable("mm_material", "物料表")]
2026-01-07 15:15:36 +08:00
public class MmMaterialExcelDto
{
[ExcelColumn(Name = "id")]
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
2026-01-07 15:15:36 +08:00
public int Id { get; set; }
[ExcelColumn(Name = "物料标号")]
2026-01-07 15:18:04 +08:00
public string Type { get; set; }
[ExcelColumn(Name = "物料编码")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "material_code")]
2026-01-07 15:15:36 +08:00
public string MaterialCode { get; set; }
[ExcelColumn(Name = "物料名称")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "material_name")]
2026-01-07 15:15:36 +08:00
public string MaterialName { get; set; }
[ExcelColumn(Name = "规格")]
2026-01-07 15:15:36 +08:00
public string Specification { get; set; }
[ExcelColumn(Name = "物料分类编码")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "category_code")]
2026-01-07 15:15:36 +08:00
public string CategoryCode { get; set; }
[ExcelColumn(Name = "物料分类名称")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "category_name")]
2026-01-07 15:15:36 +08:00
public string CategoryName { get; set; }
[ExcelColumn(Name = "计量单位")]
2026-01-07 15:15:36 +08:00
public string Unit { get; set; }
[ExcelColumn(Name = "供应商编码")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "supplier_code")]
2026-01-07 15:15:36 +08:00
public string SupplierCode { get; set; }
[ExcelColumn(Name = "供应商名称")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "supplier_name")]
2026-01-07 15:15:36 +08:00
public string SupplierName { get; set; }
[ExcelColumn(Name = "安全库存")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "safety_stock")]
2026-01-07 15:15:36 +08:00
public decimal SafetyStock { get; set; }
[ExcelColumn(Name = "状态")]
2026-01-07 15:15:36 +08:00
public string Status { get; set; }
[ExcelColumn(Name = "创建时间")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "created_time")]
2026-01-07 15:15:36 +08:00
public DateTime? CreatedTime { get; set; }
[ExcelColumn(Name = "更新时间")]
2026-01-07 16:53:59 +08:00
[SugarColumn(ColumnName = "updated_time")]
2026-01-07 15:15:36 +08:00
public DateTime? UpdatedTime { get; set; }
[ExcelColumn(Name = "描述")]
2026-01-07 15:15:36 +08:00
public string Description { get; set; }
}
}