using CMS.Plugin.HIAWms.Domain.Shared.Enums; using CmsQueryExtensions; using Volo.Abp.Application.Dtos; using Volo.Abp.Data; using Volo.Abp.Domain.Entities; namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsMaterial; /// /// 物料基础信息表数据参数对象 /// public class WmsMaterialDto: ExtensibleEntityDto, IHasConcurrencyStamp { /// /// 物料编码(唯一标识) /// public string MaterialCode { get; set; } /// /// 是否有效物料 /// public bool IsValid { get; set; } /// /// 是否自产 /// public bool? IsSelfMade { get; set; } /// /// 数量 /// public int Num { get; set; } /// /// 自有数量 /// public int? SelfNum { get; set; } /// /// 物料名称 /// public string MaterialName { get; set; } /// /// 可空长度 /// public decimal? NullLength { 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; } /// /// 是否为主支管 /// public YesNoEnum IsMainBranch { get; set; } /// /// 是否为主支管 /// public string IsMainBranchDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(IsMainBranch); } } /// /// 生产工厂 /// 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 int Sort { get; set; } /// /// 备注 /// public string? Remark { get; set; } /// /// 是否禁用 /// public bool? IsDisabled { get; set; } /// /// 扩展属性 /// public ExtraPropertyDictionary? ExtraProperties { get; set; } /// /// 并发戳 /// public string? ConcurrencyStamp { get; set; } /// /// 创建时间 /// public DateTime CreationTime { get; set; } /// /// 创建人ID /// public string? CreatorId { get; set; } /// /// 修改时间 /// public DateTime? LastModificationTime { get; set; } /// /// 修改人ID /// public string? LastModifierId { get; set; } /// /// 是否删除 /// public bool IsDeleted { get; set; } /// /// 删除人ID /// public string? DeleterId { get; set; } /// /// 删除时间 /// public DateTime? DeletionTime { get; set; } /// /// 创建人 /// public string? CreatorName { get; set; } /// /// 修改人 /// public string? LastModifierName { get; set; } /// /// 操作备注 /// public string? OperationRemark { get; set; } /// /// 删除备注 /// public string? DeleteRemark { get; set; } /// /// 扩展字段1 /// public string? ExtraField1 { get; set; } /// /// 扩展字段2 /// public string? ExtraField2 { get; set; } /// /// 扩展字段3 /// public string? ExtraField3 { 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; } }