From 810452c0e9e3c678bd4ac14ed360d41c0d9b0229 Mon Sep 17 00:00:00 2001 From: liuying <1427574514@qq.com> Date: 周三, 24 4月 2024 15:17:30 +0800 Subject: [PATCH] 细节 --- iWare_RawMaterialWarehouse_Wms/Admin.NET.Application/Service/WmsBase/WmsArea/WmsAreaService.cs | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Application/Service/WmsBase/WmsArea/WmsAreaService.cs b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Application/Service/WmsBase/WmsArea/WmsAreaService.cs index 88546d3..811b48d 100644 --- a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Application/Service/WmsBase/WmsArea/WmsAreaService.cs +++ b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Application/Service/WmsBase/WmsArea/WmsAreaService.cs @@ -382,20 +382,18 @@ if(!string.IsNullOrEmpty(_WarehouseId)) { - if (!long.TryParse(_WarehouseId, out long outWarehouseId)&&!string.IsNullOrEmpty(_WarehouseId)) + System.Int64 enumWarehouseId = default(System.Int64); + + if(!Enum.TryParse<System.Int64>(_WarehouseId, out enumWarehouseId)&&!string.IsNullOrEmpty(_WarehouseId)) { - throw Oops.Oh($"绗瑊index}琛孾鎵�灞炰粨搴揮{_WarehouseId}鍊间笉姝g‘锛�"); - } - if (outWarehouseId <= 0&&!string.IsNullOrEmpty(_WarehouseId)) - { - throw Oops.Oh($"绗瑊index}琛孾鎵�灞炰粨搴揮{_WarehouseId}鍊间笉鑳藉皬浜庣瓑浜�0锛�"); + throw Oops.Oh($"绗瑊index}琛孾鎵�灞炰粨搴揮{_WarehouseId}鍊间笉姝g‘锛�"); } else { - addItem.WarehouseId = outWarehouseId; + addItem.WarehouseId = enumWarehouseId; } - } + } if (string.IsNullOrEmpty(_IsBarcodeLevelControl)) { -- Gitblit v1.9.3