From c388b869f9fc019a2dadb41f25f240f4e4aaf31d Mon Sep 17 00:00:00 2001 From: yuyou_x <2336760928@qq.com> Date: 星期三, 13 三月 2024 11:48:45 +0800 Subject: [PATCH] 修改添加物料编码重复的提示消息,编辑物料编码重复时需过滤本身,修改编辑物料信息成功的提示消息,物料类别区域设为必填项,包装管理一级包装添加或编辑时不可为空,类别编码、包装编码不可更改。 --- Wms/WMS.BLL/SysServer/MaterialsServer.cs | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-) diff --git a/Wms/WMS.BLL/SysServer/MaterialsServer.cs b/Wms/WMS.BLL/SysServer/MaterialsServer.cs index eb05ab5..6492fb9 100644 --- a/Wms/WMS.BLL/SysServer/MaterialsServer.cs +++ b/Wms/WMS.BLL/SysServer/MaterialsServer.cs @@ -150,7 +150,7 @@ if (count > 0) { - throw new Exception("鐗╂枡缂栫爜閲嶅"); + return 2; } @@ -209,14 +209,6 @@ //鎹曡幏寮傚父 try { - - int count = GetMateByNo(matedto.SkuNo); - - if (count > 0) - { - throw new Exception("鐗╂枡缂栫爜閲嶅"); - } - if (matedto.AdventTime > 365 && matedto.AdventTime < 30) { return 2; -- Gitblit v1.8.0