public void GetCYWLT() { clearText(); string qsnumber = TextBox1.Text.Trim(); string qs = DropDownList_QiShu.SelectedValue; if (!WTreeBLL.IsRoot(qsnumber, qs, ViewState["dc"].ToString())) { ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('你不能查看该网络!')</script>"); return; } //链路图 LitLLT.Text = WTreeBLL.SetLianLuTu_CYWLII(ViewState["dc"].ToString(), qsnumber, qs); //第一层 CYWLTModel cm = WTreeBLL.GetCYWLTModelII(qsnumber, qs, "1", ""); if (cm != null) { dyc1.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cm.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cm.Number + "</a>"; dyc2.Text = cm.PetName; dyc3.Text = cm.Level; dyc4.Text = cm.ZY; dyc5.Text = cm.XY; dyc6.Text = cm.SY; dyc7.Text = cm.Left; dyc8.Text = cm.Right; } //第二层 CYWLTModel cml2 = WTreeBLL.GetCYWLTModelII(cm == null ? "" : cm.Number, qs, "2", ""); if (cml2 != null) { dec1.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cml2.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cml2.Number + "</a>"; dec2.Text = cml2.PetName; dec3.Text = cml2.Level; dec4.Text = cml2.ZY; dec5.Text = cml2.XY; dec6.Text = cml2.SY; dec7.Text = cml2.Left; dec8.Text = cml2.Right; } CYWLTModel cmr2 = WTreeBLL.GetCYWLTModelII(cm == null ? "" : cm.Number, qs, "2", cml2 == null?"":cml2.Number); if (cmr2 != null) { dec9.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cmr2.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cmr2.Number + "</a>"; dec10.Text = cmr2.PetName; dec11.Text = cmr2.Level; dec12.Text = cmr2.ZY; dec13.Text = cmr2.XY; dec14.Text = cmr2.SY; dec15.Text = cmr2.Left; dec16.Text = cmr2.Right; } //第三层 CYWLTModel cml3_1 = WTreeBLL.GetCYWLTModelII(cml2 == null ? "" : cml2.Number, qs, "3", ""); if (cml3_1 != null) { dsc1.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cml3_1.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cml3_1.Number + "</a>"; dsc2.Text = cml3_1.PetName; dsc3.Text = cml3_1.Level; dsc4.Text = cml3_1.ZY; dsc5.Text = cml3_1.XY; dsc6.Text = cml3_1.SY; dsc7.Text = cml3_1.Left; dsc8.Text = cml3_1.Right; } CYWLTModel cml3_2 = WTreeBLL.GetCYWLTModelII(cml2 == null ? "" : cml2.Number, qs, "3", cml3_1 == null?"":cml3_1.Number); if (cml3_2 != null) { dsc9.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cml3_2.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cml3_2.Number + "</a>"; dsc10.Text = cml3_2.PetName; dsc11.Text = cml3_2.Level; dsc12.Text = cml3_2.ZY; dsc13.Text = cml3_2.XY; dsc14.Text = cml3_2.SY; dsc15.Text = cml3_2.Left; dsc16.Text = cml3_2.Right; } CYWLTModel cmr3_1 = WTreeBLL.GetCYWLTModelII(cmr2 == null ? "" : cmr2.Number, qs, "3", ""); if (cmr3_1 != null) { dsc17.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cmr3_1.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cmr3_1.Number + "</a>"; dsc18.Text = cmr3_1.PetName; dsc19.Text = cmr3_1.Level; dsc20.Text = cmr3_1.ZY; dsc21.Text = cmr3_1.XY; dsc22.Text = cmr3_1.SY; dsc23.Text = cmr3_1.Left; dsc24.Text = cmr3_1.Right; } CYWLTModel cmr3_2 = WTreeBLL.GetCYWLTModelII(cmr2 == null ? "" : cmr2.Number, qs, "3", cmr3_1 == null?"":cmr3_1.Number); if (cmr3_2 != null) { dsc25.Text = "<a style='color:red' href='CommonlyNetworkII.aspx?qsNumber=" + cmr3_2.Number + "&EndNumber=" + ViewState["dc"] + "'>" + cmr3_2.Number + "</a>"; dsc26.Text = cmr3_2.PetName; dsc27.Text = cmr3_2.Level; dsc28.Text = cmr3_2.ZY; dsc29.Text = cmr3_2.XY; dsc30.Text = cmr3_2.SY; dsc31.Text = cmr3_2.Left; dsc32.Text = cmr3_2.Right; } }