180 lines
5.0 KiB
C#
180 lines
5.0 KiB
C#
|
|
namespace DOAN.Model.BZFM.Dto
|
|
{
|
|
/// <summary>
|
|
/// 物料表查询对象
|
|
/// </summary>
|
|
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; }
|
|
}
|
|
|
|
/// <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
|
|
{
|
|
public string MaterialCode { get; set; }
|
|
public string MaterialName { get; set; }
|
|
public string Specification { get; set; }
|
|
public string CategoryCode { get; set; }
|
|
}
|
|
|
|
// <summary>
|
|
/// 物料清单导入导出
|
|
/// </summary>
|
|
public class MmMaterialExcelDto
|
|
{
|
|
[ExcelColumn(Name = "id")]
|
|
public int Id { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料标号")]
|
|
public string Type { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料编码")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料名称")]
|
|
public string MaterialName { get; set; }
|
|
|
|
[ExcelColumn(Name = "规格")]
|
|
public string Specification { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料分类编码")]
|
|
public string CategoryCode { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料分类名称")]
|
|
public string CategoryName { get; set; }
|
|
|
|
[ExcelColumn(Name = "计量单位")]
|
|
public string Unit { get; set; }
|
|
|
|
[ExcelColumn(Name = "供应商编码")]
|
|
public string SupplierCode { get; set; }
|
|
|
|
[ExcelColumn(Name = "供应商名称")]
|
|
public string SupplierName { get; set; }
|
|
|
|
[ExcelColumn(Name = "安全库存")]
|
|
public decimal SafetyStock { get; set; }
|
|
|
|
[ExcelColumn(Name = "状态")]
|
|
public string Status { get; set; }
|
|
|
|
[ExcelColumn(Name = "创建时间")]
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
[ExcelColumn(Name = "更新时间")]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
[ExcelColumn(Name = "描述")]
|
|
public string Description { get; set; }
|
|
}
|
|
|
|
// <summary>
|
|
/// 物料清单导入导出
|
|
/// </summary>
|
|
public class MmMaterialExcelDto2
|
|
{
|
|
[ExcelColumn(Name = "id")]
|
|
public int Id { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料标号")]
|
|
public string 物料标号 { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料编码")]
|
|
public string 物料编码 { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料名称")]
|
|
public string 物料名称 { get; set; }
|
|
|
|
[ExcelColumn(Name = "规格")]
|
|
public string 规格 { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料分类编码")]
|
|
public string 物料分类编码 { get; set; }
|
|
|
|
[ExcelColumn(Name = "物料分类名称")]
|
|
public string 物料分类名称 { get; set; }
|
|
|
|
[ExcelColumn(Name = "计量单位")]
|
|
public string 计量单位 { get; set; }
|
|
|
|
[ExcelColumn(Name = "供应商编码")]
|
|
public string 供应商编码 { get; set; }
|
|
|
|
[ExcelColumn(Name = "供应商名称")]
|
|
public string 供应商名称 { get; set; }
|
|
|
|
[ExcelColumn(Name = "安全库存")]
|
|
public decimal 安全库存 { get; set; }
|
|
|
|
[ExcelColumn(Name = "状态")]
|
|
public string 状态 { get; set; }
|
|
|
|
[ExcelColumn(Name = "创建时间")]
|
|
public DateTime? 创建时间 { get; set; }
|
|
|
|
[ExcelColumn(Name = "更新时间")]
|
|
public DateTime? 更新时间 { get; set; }
|
|
|
|
[ExcelColumn(Name = "描述")]
|
|
public string 描述 { get; set; }
|
|
}
|
|
} |