1234567891011121314151617181920212223 |
- using EMIS.Utility;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- namespace EMIS.Web.Controls
- {
- public static class LabelExtensions
- {
- /// <summary>
- /// 读取资源文件以呈现字符串,当应用于不同客户,并且这些客户对同一个数据有不同称呼时需要使用
- /// </summary>
- /// <param name="htmlHelper"></param>
- /// <param name="labelName">资源标签名</param>
- /// <returns></returns>
- public static MvcHtmlString RSLabel(this HtmlHelper htmlHelper, string labelName)
- {
- return MvcHtmlString.Create(RSL.Get(labelName));
- }
- }
- }
|