Beispiel #1
0
 public static string GetXmlValue(string ID, string Root, string name)
 {
     try
     {
         ROYcms.Common.XmlControl XmlControl = new ROYcms.Common.XmlControl(HttpContext.Current.Server.MapPath("~/APP_XML/Xml/" + Root + "/" + ID + ".xml"));
         return(XmlControl.GetText("ROYcms/XML/" + name));
     }
     catch
     {
         return("");
     }
 }
Beispiel #2
0
 public static string GetValue(int ID, string name)
 {
     try
     {
         ROYcms.Common.XmlControl XmlControl = new ROYcms.Common.XmlControl(HttpContext.Current.Server.MapPath("~/APP_data/Class/" + ID + ".xml"));
         return(XmlControl.GetText("ROYcms/Class/" + name));
     }
     catch
     {
         return("");
     }
 }
Beispiel #3
0
 /// <summary>
 /// Gets the organization value.
 /// </summary>
 /// <param name="userid">The userid.</param>
 /// <param name="name">项的名称 The name.</param>
 /// <returns></returns>
 public static string GetUserValue(int userid, string name)
 {
     try
     {
         ROYcms.Common.XmlControl XmlControl = new ROYcms.Common.XmlControl(HttpContext.Current.Server.MapPath("~/APP_XML/UserXml/" + userid + ".xml"));
         return(XmlControl.GetText("ROYcms/User/" + name));
     }
     catch
     {
         return("");
     }
 }