25 lines
No EOL
811 B
C#
25 lines
No EOL
811 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace ULA.Cathay.ModuloMantenimiento.Commons
|
|
{
|
|
public class CustomHelper
|
|
{
|
|
#region IDENTIFICATION
|
|
public static MvcHtmlString Identification(string id, string etiqueta, bool Highlight, string size)
|
|
{
|
|
string text = File.ReadAllText(HttpContext.Current.Server.MapPath("~\\HtmlControls\\identification.html"));
|
|
text = text.Replace("[id]", id);
|
|
text = text.Replace("etiquetalbl", etiqueta);
|
|
if (!Highlight)
|
|
text = text.Replace("labelhighlight", string.Empty);
|
|
text = text.Replace("size", size);
|
|
return new MvcHtmlString(text);
|
|
}
|
|
#endregion
|
|
}
|
|
} |