From 5389229c5ef7ad6b3c390d60914e00e71494e830 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 25 4月 2024 11:59:46 +0800
Subject: [PATCH] 界面checkbox如果是 界面必填的话,不主动选则,会报错,提示要选择
---
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