From c825dcaffbc8888d4fc8e8e88dce279f86def106 Mon Sep 17 00:00:00 2001 From: lixh Date: Mon, 9 May 2022 15:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ICSSoft.DataProject/LanguageHelper.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/LanguageHelper.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/LanguageHelper.cs index feb3c26..549642f 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/LanguageHelper.cs +++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/LanguageHelper.cs @@ -7,6 +7,11 @@ namespace ICSSoft.DataProject { public static class LanguageHelper { + /// + /// 根据传入代码模糊查找获取对应的语言提示信息 + /// + /// + /// public static Dictionary GetName(string Code) { WMSBarCoreModel model = new WMSBarCoreModel(); @@ -18,14 +23,19 @@ namespace ICSSoft.DataProject dic.Add(dr["Code"].ToString(), dr["Name"].ToString()); } return dic; - } + } + /// + /// 根据传入代码模糊查找获取对应的一行语言提示信息 + /// + /// + /// public static string GetNameSingle(string Code) { WMSBarCoreModel model = new WMSBarCoreModel(); model.Code = Code; var resultStr = ICSSubmitService.PromptInformationGet(model); if (resultStr == null || resultStr.Rows.Count <= 0) - throw new Exception(string.Format("未查询到编码:{0} 对应的信息!",Code)); + throw new Exception(string.Format("未查询到编码:{0} 对应的语言信息!",Code)); return resultStr.Rows[0]["Name"].ToString(); } }