From b1e28ec2f586d2e2b36fe8b1033fe621a7a72f19 Mon Sep 17 00:00:00 2001 From: ddlucky Date: Sat, 27 May 2023 13:37:16 +0800 Subject: [PATCH] 1 --- .../Services/WMS/Partial/VW_OP_WMS_IMPORTService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Vue.Net/VOL.WMS/Services/WMS/Partial/VW_OP_WMS_IMPORTService.cs b/Vue.Net/VOL.WMS/Services/WMS/Partial/VW_OP_WMS_IMPORTService.cs index 394f687c..9dd49828 100644 --- a/Vue.Net/VOL.WMS/Services/WMS/Partial/VW_OP_WMS_IMPORTService.cs +++ b/Vue.Net/VOL.WMS/Services/WMS/Partial/VW_OP_WMS_IMPORTService.cs @@ -44,6 +44,13 @@ namespace VOL.WMS.Services return _webResponseContent.SaveAndError(errmsg); } + if (string.IsNullOrWhiteSpace(item.CORPNAME)) + { + var errmsg = $"第{infoList.IndexOf(item) + 1}行[{item.MBLNO}]的公司简称未填写"; + return _webResponseContent.SaveAndError(errmsg); + } + + item.STORAGENAME = item.STORAGENAME.Trim(); item.AREANAME = item.AREANAME.Trim(); }