Пример #1
0
        public static string GetSystemXmlString(string xmlNodeName, string key)
        {
            object obj = Cache.CacheHelper.Get("SystemXml" + xmlNodeName);

            if (obj == null)
            {
                var xmlList = ReadXmlHelper.GetXmlList(System.Web.HttpContext.Current.Server.MapPath("~/Config/SystemXml.xml"), xmlNodeName);
                Utility.Cache.CacheHelper.AddPermanent("SystemXml" + xmlNodeName, xmlList);
                obj = xmlList;
            }
            return((obj as Dictionary <string, string>).Count == 0 ? "暂无" : (obj as Dictionary <string, string>)[key]);
        }
Пример #2
0
 public static string GetXmlSqlString(string url, string xmlNodeName)
 {
     return(ReadXmlHelper.GetXmlValue(url + "/Config/SQLXml.xml", xmlNodeName));
 }
Пример #3
0
 public static string GetXmlSqlString(string xmlNodeName, bool IsReplace)
 {
     return(ReadXmlHelper.GetXmlValue(System.Web.HttpContext.Current.Server.MapPath("~/Config/SQLXml.xml"), xmlNodeName, IsReplace));
 }