//获取树 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(), "0"); 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_T_QS"] = null; Session["WLTCS_C_T"] = null; return("<?xml version=\"1.0\" encoding=\"utf-8\"?><Root><Error>" + ts + "</Error></Root>"); } else { return(WTreeBLL.GetTree_II(nodeid, ExpectNum, _thnumber, model, BrowserType, IsPlacement, ManageNum, Session["LanguageCode"].ToString())); } }