Exemplo n.º 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]);
        }
Exemplo n.º 2
0
 public static string GetXmlSqlString(string url, string xmlNodeName)
 {
     return(ReadXmlHelper.GetXmlValue(url + "/Config/SQLXml.xml", xmlNodeName));
 }
Exemplo n.º 3
0
 public static string GetXmlSqlString(string xmlNodeName, bool IsReplace)
 {
     return(ReadXmlHelper.GetXmlValue(System.Web.HttpContext.Current.Server.MapPath("~/Config/SQLXml.xml"), xmlNodeName, IsReplace));
 }