//获取树 public string GetTree(string nodeid, string ExpectNum, string _thnumber, string model, string BrowserType, string IsPlacement, string ManageNum, string language) //nodeid 为父元素id { if (!WTreeBLL.IsExistsNumber(_thnumber)) { return("<?xml version=\"1.0\" encoding=\"utf-8\"?><Root><Error>" + GetTran("007320", "您输入的会员编号不存在") + "!</Error></Root>"); } if (IsRoot(Request.QueryString["thnumber"], ExpectNum, EndNumber) == false) { //判断所有的可用网络中是否含有权限。 DataTable ky = WTreeBLL.GetKYWL(Session["Company"].ToString(), "1"); string maxqs = WTreeBLL.GetMaxQS(); string ts = GetTran("007461", " 您没有权限查看"); for (int i = 0; i < ky.Rows.Count; i++) { //if (Request.QueryString["EndNumber"].ToString() != ky.Rows[i]["number"].ToString()) { if (IsRoot(Request.QueryString["thnumber"], maxqs, ky.Rows[i]["number"].ToString())) { ts = GetTran("007462", " 您查看的这期中没有这个会员,所以不能查看该网路!"); break; } } } Session["WLTCS_C_A_QS"] = null; Session["WLTCS_C_A"] = null; return("<?xml version=\"1.0\" encoding=\"utf-8\"?><Root><Error>" + ts + "</Error></Root>"); } else { return(WTreeBLL.GetTree(nodeid, ExpectNum, _thnumber, model, BrowserType, IsPlacement, ManageNum, Session["LanguageCode"].ToString())); } }