namespace DOAN.Model.BZFM.Dto { /// /// 物料表查询对象 /// public class MmMaterialQueryDto : PagerInfo { public object CateoryName; public string CategoryCode { get; set; } 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; } public string Status { get; set; } public DateTime? CreatedTime { get; set; } public int Id { get; set; } } /// /// 物料表输入输出对象 /// 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; } } /// /// 物料清单下拉内容 /// public class MmMaterialOption { public string MaterialCode { get; set; } public string MaterialName { get; set; } public string Specification { get; set; } public string CategoryCode { get; set; } } // /// 物料清单导入导出 /// [SugarTable("mm_material", "物料表")] public class MmMaterialExcelDto { [ExcelColumn(Name = "id")] [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] public int Id { get; set; } [ExcelColumn(Name = "物料标号")] public string Type { get; set; } [ExcelColumn(Name = "物料编码")] [SugarColumn(ColumnName = "material_code")] public string MaterialCode { get; set; } [ExcelColumn(Name = "物料名称")] [SugarColumn(ColumnName = "material_name")] public string MaterialName { get; set; } [ExcelColumn(Name = "规格")] public string Specification { get; set; } [ExcelColumn(Name = "物料分类编码")] [SugarColumn(ColumnName = "category_code")] public string CategoryCode { get; set; } [ExcelColumn(Name = "物料分类名称")] [SugarColumn(ColumnName = "category_name")] public string CategoryName { get; set; } [ExcelColumn(Name = "计量单位")] public string Unit { get; set; } [ExcelColumn(Name = "供应商编码")] [SugarColumn(ColumnName = "supplier_code")] public string SupplierCode { get; set; } [ExcelColumn(Name = "供应商名称")] [SugarColumn(ColumnName = "supplier_name")] public string SupplierName { get; set; } [ExcelColumn(Name = "安全库存")] [SugarColumn(ColumnName = "safety_stock")] public decimal SafetyStock { get; set; } [ExcelColumn(Name = "状态")] public string Status { get; set; } [ExcelColumn(Name = "创建时间")] [SugarColumn(ColumnName = "created_time")] public DateTime? CreatedTime { get; set; } [ExcelColumn(Name = "更新时间")] [SugarColumn(ColumnName = "updated_time")] public DateTime? UpdatedTime { get; set; } [ExcelColumn(Name = "描述")] public string Description { get; set; } } }