/// <summary> /// 获取审批人列表 /// </summary> /// <param name="applicationConfigFile"></param> /// <returns></returns> private ReviewederObject GetReviewederObject(string applicationConfigFile) { System.Xml.XmlDocument xmldom = new System.Xml.XmlDocument(); xmldom.Load(applicationConfigFile); System.Xml.XmlNode root = xmldom.DocumentElement; System.Xml.XmlNode node = root.SelectSingleNode("ResourceInfo"); try { ReviewederObject obj = new ReviewederObject(); obj.LuoJun = new StaffObj() { StaffID = node.SelectSingleNode("Revieweder[@name=\"LuoJun\"]").Attributes["staffid"].Value, StaffName = node.SelectSingleNode("Revieweder[@name=\"LuoJun\"]").Attributes["staffname"].Value }; obj.LiLong = new StaffObj() { StaffID = node.SelectSingleNode("Revieweder[@name=\"LiLong\"]").Attributes["staffid"].Value, StaffName = node.SelectSingleNode("Revieweder[@name=\"LiLong\"]").Attributes["staffname"].Value }; return(obj); } catch { } return(new ReviewederObject()); }
private SystemEnvironment() { string processname = System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToLower(); //this.m_ConfigFile = System.Configuration.ConfigurationManager.AppSettings["ConfigPath"].ToString() + "ApplicationConfig.xml"; this.m_ConfigFile = _MapPath("/App_Config/ApplicationConfig.xml"); this.m_ResourceInfo = new ResourceInfo(m_ConfigFile); this.m_AuthorizationObject = GetAuthorizationObject(this.m_ConfigFile); //this.m_MapPath = System.Configuration.ConfigurationManager.AppSettings["MapPath"].ToString(); this.m_ReviewederObject = GetReviewederObject(this.m_ConfigFile); this.m_MapPath = _MapPath(""); }