//判断是否有权限查看该网咯 public bool IsRoot(string StartNumber, string qs, string EndNumber) { return(WTreeBLL.IsRoot_II(StartNumber, qs, EndNumber)); }
protected void Button1_Click(object sender, System.EventArgs e) { if (this.TextBox1.Text.Trim() == "") { Response.Write("<script>alert('" + GetTran("007307", "请先填写网络起点编号") + "!');</script>"); return; } if (DAL.MemberInfoDAL.SelectMemberExist(this.TextBox1.Text.Trim()) == false) { Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');</script>"); return; } bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), Convert.ToString(Session["jgbh"]), getBH()); if (flag == false) { Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');</script>"); return; } if (ViewState["isAnZhi_TuiJian"].ToString() == "az") { if (WTreeBLL.IsRoot(this.TextBox1.Text.Trim(), this.DropDownList_QiShu.SelectedValue, GetLoginMember()) == false) { Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');</script>"); return; } } else { if (WTreeBLL.IsRoot_II(this.TextBox1.Text.Trim(), this.DropDownList_QiShu.SelectedValue, GetLoginMember()) == false) { Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');</script>"); return; } } if (ViewState["isAnZhi_TuiJian"].ToString() == "az") { if (this.TextBox1.Text.Trim() != "") { Divt1.InnerHtml = JieGouNew2.Direct_Table_New(this.TextBox1.Text.Trim(), Convert.ToInt32(this.DropDownList_QiShu.SelectedValue), 1); } else { Divt1.InnerHtml = JieGouNew2.Direct_Table_New(ViewState["bh"].ToString(), Convert.ToInt32(this.DropDownList_QiShu.SelectedValue), 1); } } else { if (this.TextBox1.Text.Trim() != "") { Divt1.InnerHtml = JieGouNew2.Direct_Table_New(this.TextBox1.Text.Trim(), Convert.ToInt32(this.DropDownList_QiShu.SelectedValue), 2); } else { Divt1.InnerHtml = JieGouNew2.Direct_Table_New(ViewState["bh"].ToString(), Convert.ToInt32(this.DropDownList_QiShu.SelectedValue), 2); } } SetDaoHang(); }