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.WmsMaterialStocks; /// /// 出入库单据详情数据参数对象 /// public class WmsMaterialStockDto : ExtensibleEntityDto, IHasConcurrencyStamp { /// /// 物料ID /// public string MaterialId { get; set; } /// /// 物料名称 /// public string MaterialName { get; set; } /// /// 容器编号 /// public string? ContainerNo { get; set; } /// /// 容器状态 /// public ContainerStatusEnum ContainerStatus { get; set; } /// /// 容器状态 /// public string ContainerStatusDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(ContainerStatus); } } /// /// 容器类型 /// public ContainerTypeEnum ContainerType { get; set; } /// /// 容器类型 /// public string ContainerTypeDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(ContainerType); } } /// /// 物料编号 /// public string MaterialNo { get; set; } /// /// 库存数量 /// public int StockNumber { get; set; } /// /// 物料批次 /// public string? MaterialBatch { get; set; } /// /// 供应商编号 /// public string? SupplierCode { get; set; } /// /// 机型/规格 /// public string? MaterialModel { get; set; } /// /// 库位编号 /// public string? PlaceNo { get; set; } /// /// 库位状态; /// public PlaceStatusEnum PlaceStatus { get; set; } /// /// 库位状态; /// public string PlaceStatusDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(PlaceStatus); } } /// /// 库位类型 /// public PlaceTypeEnum StorageTypeNo { get; set; } /// /// 库位类型 /// public string StorageTypeNoDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(StorageTypeNo); } } /// /// 区域编号 /// public string? AreaCode { get; set; } /// /// 库区名称 /// public string? AreaName { get; set; } /// /// 检验状态(1:未检验,2:检验通过,3:检验不通过) /// public MaterialCheckStatusEnum? CheckStatus { get; set; } /// /// 检验状态(1:未检验,2:检验通过,3:检验不通过) /// public string? CheckStatusDesc { get { if (!CheckStatus.HasValue) { return "未检验"; } return GetEnumDescriptionUtil.GetEnumDescription(CheckStatus); } } /// /// 是否锁定(2:未锁定,1:已锁定) /// public YesNoEnum IsLock { get; set; } /// /// 是否锁定(2:未锁定,1:已锁定) /// public string IsLockDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(IsLock); } } /// /// 是否空托(2:否,1:是) /// public YesNoEnum EmptyContainer { get; set; } /// /// 是否空托(2:否,1:是) /// public string EmptyContainerDesc { get { return GetEnumDescriptionUtil.GetEnumDescription(EmptyContainer); } } /// /// 入库时间 /// public DateTime? InStockTime { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 库存次序 /// public int OrderInPlace { get; set; } /// /// 备注 /// public string? Remark { get; set; } /// /// 冗余字段1 - 预留扩展用途 /// public string? RedundantField1 { get; set; } /// /// 冗余字段2 - 预留扩展用途 /// public string? RedundantField2 { get; set; } /// /// 冗余字段3 - 预留扩展用途 /// public string? RedundantField3 { get; set; } /// /// 是否禁用 /// public bool? IsDisabled { get; set; } /// /// /// public ExtraPropertyDictionary? ExtraProperties { get; set; } /// /// /// public string? ConcurrencyStamp { get; set; } /// /// /// public DateTime CreationTime { get; set; } /// /// /// public string? CreatorId { get; set; } /// /// /// public DateTime? LastModificationTime { get; set; } /// /// /// public string? LastModifierId { get; set; } /// /// /// public bool IsDeleted { get; set; } /// /// /// public string? DeleterId { get; set; } /// /// /// public DateTime? DeletionTime { 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; } }