From e3ef3289ab63c62dfa4f04e08addcdf8fca7dcba Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期日, 18 二月 2024 16:17:38 +0800 Subject: [PATCH] 平库入库,地码文本框增加回车验证功能 --- Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs index dcec486..e64f8f5 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs @@ -1281,6 +1281,30 @@ } } + /// <summary> + /// 楠岃瘉鍌ㄤ綅鍦板潃(鍦扮爜)鏄惁鍙敤 + /// </summary> + /// <param name="locatNo">鍌ㄤ綅缂栫爜</param> + /// <returns></returns> + public string CheckLocatNo(string locatNo) + { + try + { + string strMsg = ""; + var storageLocat = Db.Queryable<SysStorageLocat>().First(w => w.IsDel == "0" && w.LocatNo == locatNo && w.Status == "0" && w.WareHouseNo == "W02"); + if (storageLocat == null) + { + throw new Exception("-1:鍦扮爜(鍌ㄤ綅淇℃伅)涓嶅瓨鍦ㄦ垨闈炵┖闂茬姸鎬侊紝璇锋牳鏌�!"); + } + + return strMsg; + } + catch (Exception ex) + { + throw new Exception(ex.Message); + } + } + //鏍规嵁绠辩爜鑾峰彇鐗╂枡銆佹壒娆°�佹暟閲忕瓑淇℃伅 public PdaPalletNoCheckDto GetBoxInfoByBoxNo(string boxNo) { -- Gitblit v1.8.0