|
|
@ -7,6 +7,11 @@ namespace ICSSoft.DataProject |
|
|
|
{ |
|
|
|
public static class LanguageHelper |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// 根据传入代码模糊查找获取对应的语言提示信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="Code"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public static Dictionary<string, string> GetName(string Code) |
|
|
|
{ |
|
|
|
WMSBarCoreModel model = new WMSBarCoreModel(); |
|
|
@ -19,13 +24,18 @@ namespace ICSSoft.DataProject |
|
|
|
} |
|
|
|
return dic; |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 根据传入代码模糊查找获取对应的一行语言提示信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="Code"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
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(); |
|
|
|
} |
|
|
|
} |
|
|
|