From 67acdc0b8a57b11108cd8d210875fab1fa94efb0 Mon Sep 17 00:00:00 2001 From: tongfei <244188119@qq.com> Date: Fri, 10 Nov 2023 17:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SysConfigController.cs | 18 +++++++++--------- src/WMS.Web.Core/Dto/EnumStatusResponse.cs | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/WMS.Web.Api/Controllers/SysConfigController.cs b/src/WMS.Web.Api/Controllers/SysConfigController.cs index 50ca44c3..3154460b 100644 --- a/src/WMS.Web.Api/Controllers/SysConfigController.cs +++ b/src/WMS.Web.Api/Controllers/SysConfigController.cs @@ -53,39 +53,39 @@ namespace WMS.Web.Api.Controllers EnumStatusResponse response = new EnumStatusResponse(); foreach (OutStockType enumv in Enum.GetValues(typeof(OutStockType))) { - response.OutStockType.Add(enumv.ToString(), enumv.GetRemark()); + response.OutStockType.Add((int)enumv, enumv.GetRemark()); } foreach (MoveBoxType enumv in Enum.GetValues(typeof(MoveBoxType))) { - response.MoveBoxType.Add(enumv.ToString(), enumv.GetRemark()); + response.MoveBoxType.Add((int)enumv, enumv.GetRemark()); } foreach (TakeStockType enumv in Enum.GetValues(typeof(TakeStockType))) { - response.TakeStockType.Add(enumv.ToString(), enumv.GetRemark()); + response.TakeStockType.Add((int)enumv, enumv.GetRemark()); } foreach (InstockType enumv in Enum.GetValues(typeof(InstockType))) { - response.InstockType.Add(enumv.ToString(), enumv.GetRemark()); + response.InstockType.Add((int)enumv, enumv.GetRemark()); } foreach (InstockStatus enumv in Enum.GetValues(typeof(InstockStatus))) { - response.InstockStatus.Add(enumv.ToString(), enumv.GetRemark()); + response.InstockStatus.Add((int)enumv, enumv.GetRemark()); } foreach (BackRecordType enumv in Enum.GetValues(typeof(BackRecordType))) { - response.BackRecordType.Add(enumv.ToString(), enumv.GetRemark()); + response.BackRecordType.Add((int)enumv, enumv.GetRemark()); } foreach (InventoryInOutType enumv in Enum.GetValues(typeof(InventoryInOutType))) { - response.InventoryInOutType.Add(enumv.ToString(), enumv.GetRemark()); + response.InventoryInOutType.Add((int)enumv, enumv.GetRemark()); } foreach (OrderType enumv in Enum.GetValues(typeof(OrderType))) { - response.OrderType.Add(enumv.ToString(), enumv.GetRemark()); + response.OrderType.Add((int)enumv, enumv.GetRemark()); } foreach (ShelfMethod enumv in Enum.GetValues(typeof(ShelfMethod))) { - response.ShelfMethod.Add(enumv.ToString(), enumv.GetRemark()); + response.ShelfMethod.Add((int)enumv, enumv.GetRemark()); } //2 diff --git a/src/WMS.Web.Core/Dto/EnumStatusResponse.cs b/src/WMS.Web.Core/Dto/EnumStatusResponse.cs index b49f469e..0326b5f3 100644 --- a/src/WMS.Web.Core/Dto/EnumStatusResponse.cs +++ b/src/WMS.Web.Core/Dto/EnumStatusResponse.cs @@ -13,39 +13,39 @@ namespace WMS.Web.Core.Dto /// /// 出库单类型 /// - public Dictionary OutStockType { get; set; } = new Dictionary(); + public Dictionary OutStockType { get; set; } = new Dictionary(); /// /// 移库单类型 /// - public Dictionary MoveBoxType { get; set; } = new Dictionary(); + public Dictionary MoveBoxType { get; set; } = new Dictionary(); /// /// 盘点结果类型 /// - public Dictionary TakeStockType { get; set; } = new Dictionary(); + public Dictionary TakeStockType { get; set; } = new Dictionary(); /// /// 入库单类型 /// - public Dictionary InstockType { get; set; } = new Dictionary(); + public Dictionary InstockType { get; set; } = new Dictionary(); /// /// 入库状态 /// - public Dictionary InstockStatus { get; set; } = new Dictionary(); + public Dictionary InstockStatus { get; set; } = new Dictionary(); /// /// 类型:1为入库回退下架,2为出库回退上架 /// - public Dictionary BackRecordType { get; set; } = new Dictionary(); + public Dictionary BackRecordType { get; set; } = new Dictionary(); /// /// 类型:1为入库,2为出库 /// - public Dictionary InventoryInOutType { get; set; } = new Dictionary(); + public Dictionary InventoryInOutType { get; set; } = new Dictionary(); /// /// 单据类型 /// - public Dictionary OrderType { get; set; } = new Dictionary(); + public Dictionary OrderType { get; set; } = new Dictionary(); /// /// 非采购上架方式 /// - public Dictionary ShelfMethod { get; set; } = new Dictionary(); + public Dictionary ShelfMethod { get; set; } = new Dictionary();