using CMS.Plugin.HIAWms.Domain.Shared.Enums; using CmsQueryExtensions; using Volo.Abp.Application.Dtos; using Volo.Abp.Domain.Entities; namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsMaterial; /// /// WmsMaterial数据参数对象 /// public class WmsMaterialDto : ExtensibleEntityDto, IHasConcurrencyStamp { /// /// 物料编码(唯一标识) /// public string MaterialNo { get; set; } /// /// 物料名称 /// public string MaterialName { get; set; } /// /// 采购类型(枚举值) /// public PurchaseTypeEnum PurchaseType { get; set; } /// /// 采购类型(枚举值) /// public string PurchaseTypeDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(PurchaseType); } } /// /// 物料类型(枚举值) /// public MaterialTypeEnum MaterialType { get; set; } /// /// 物料类型(枚举值) /// public string MaterialTypeDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(MaterialType); } } /// /// 主单位(如:kg、m、个) /// public string PrimaryUnit { get; set; } /// /// 规格/标准(如:GB/T 8163-2018) /// public string Standard { get; set; } /// /// 外径(单位:mm) /// public decimal OuterDiameter { get; set; } /// /// 壁厚(单位:mm) /// public decimal WallThickness { get; set; } /// /// 材质(如:304不锈钢) /// public string MaterialQuality { get; set; } /// /// 长度(单位:m) /// public decimal Length { get; set; } /// /// 是否为主支管(1: 主支管, 2: 非主支管) /// public YesNoEnum IsMainBranch { get; set; } /// /// 是否为主支管 /// public string IsMainBranchDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(IsMainBranch); } } /// /// 型号 /// public string MaterialModel { get; set; } /// /// 生产工厂 /// public string Factory { get; set; } /// /// 证书编号(如:压力容器认证) /// public string Certification { get; set; } /// /// 冗余字段1 - 预留扩展用途 /// public string RedundantField1 { get; set; } /// /// 冗余字段2 - 预留扩展用途 /// public string RedundantField2 { get; set; } /// /// 冗余字段3 - 预留扩展用途 /// public string RedundantField3 { get; set; } /// /// 排序 /// public virtual int Sort { get; set; } /// /// 备注 /// public virtual string Remark { get; set; } /// /// 是否禁用 /// public virtual bool? IsDisabled { get; set; } /// /// 并发戳 /// public string ConcurrencyStamp { get; set; } /// /// Gets the export data. /// /// public Dictionary GetExportData() { var exportData = new Dictionary(); foreach (var property in this.GetType().GetProperties()) { exportData.Add(property.Name, property.GetValue(this)); } return exportData; } }