protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } string src = ""; string masterPage = Page.MasterPageFile; int i = masterPage.LastIndexOf("/"); string masterPageName = masterPage.Substring(i + 1).Split('.')[0]; if (ImgType == "HOMEPAGE_IMG") { src = SYSLookup.GetLookupNameByValue("HOMEPAGE_IMG", masterPageName); } else if (ImgType == "CONTENTPAGE_IMG") { src = SYSLookup.GetLookupNameByValue("CONTENTPAGE_IMG", masterPageName); } imgRender.Src = src; }
public static DataTable GetLookupValuesByType(string lookupType) { #region mock data //DataTable dt=new DataTable(); //dt.Columns.Add("LOOKUP_VALUE"); //dt.Columns.Add("LOOKUP_VALUE_NAME"); //if (lookupType == "BS_TEMPLATE_STATUS") //{ // DataRow dr1 = dt.NewRow(); // dr1["LOOKUP_VALUE"]="ENABLE"; // dr1["LOOKUP_VALUE_NAME"]="启用"; // dt.Rows.Add(dr1); // DataRow dr2 = dt.NewRow(); // dr2["LOOKUP_VALUE"] = "DISABLE"; // dr2["LOOKUP_VALUE_NAME"] = "禁用"; // dt.Rows.Add(dr2); //} //return dt; #endregion return(SYSLookup.GetLookupValuesByType(lookupType)); }
public static string GetUserTypeNameByCode(string type) { return(SYSLookup.GetUserTypeNameByCode(type)); }
public static string GetUserLookupNameBuValue(string type, string value) { return(SYSLookup.GetUserLookupNameByValue(type, value)); }
public static DataTable GetUserLookupValuesByType(string bigcode) { return(SYSLookup.GetUserLookupValuesByType(bigcode)); }
public static DataTable GetUserLookupTypesByCode(string p) { return(SYSLookup.GetUserLookupTypesByCode(p)); }
public static DataTable GetLookupTypesByCode(string code) { return(SYSLookup.GetLookupTypesByCode(code)); }
public static DataTable GetBigCateData(string listurl) { return(SYSLookup.GetLookupTable(listurl)); }