apperrcode.cs
来自「基于C/S的医疗卫生管理系统」· CS 代码 · 共 28 行
CS
28 行
using System;
using System.Collections.Generic;
using System.Text;
using Qeb.Resource;
using Qeb.Support.Common;
namespace Qeb.Support.Common
{
public static class AppErrCode
{
public static string DALErrPrompt = "DALErrPrompt";
public static string GetErrorText(string errCode)
{
string errText = Resource.Resource.GetString(errCode);
if (null == errText)
{
//记录日志(资源文件不存在)
AppLog.Add("没有取到资源文件:"+errCode, LogEntryType.Error,typeof(AppErrCode));
return "";
}
return errText;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?