Beispiel #1
0
        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;
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
 public static string GetUserTypeNameByCode(string type)
 {
     return(SYSLookup.GetUserTypeNameByCode(type));
 }
Beispiel #4
0
 public static string GetUserLookupNameBuValue(string type, string value)
 {
     return(SYSLookup.GetUserLookupNameByValue(type, value));
 }
Beispiel #5
0
 public static DataTable GetUserLookupValuesByType(string bigcode)
 {
     return(SYSLookup.GetUserLookupValuesByType(bigcode));
 }
Beispiel #6
0
 public static DataTable GetUserLookupTypesByCode(string p)
 {
     return(SYSLookup.GetUserLookupTypesByCode(p));
 }
Beispiel #7
0
 public static DataTable GetLookupTypesByCode(string code)
 {
     return(SYSLookup.GetLookupTypesByCode(code));
 }
Beispiel #8
0
 public static DataTable GetBigCateData(string listurl)
 {
     return(SYSLookup.GetLookupTable(listurl));
 }