protected void Page_Load(object sender, EventArgs e) { B_Admin badmin = new B_Admin(); Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='../Config/SiteOption.aspx'>系统设置</a></li><li><a href='NodeManage.aspx'>节点管理</a></li><li class=\"active\">添加外部链接</li>"); if (!IsPostBack) { B_ARoleAuth.CheckEx(ZLEnum.Auth.model, "NodeEdit"); if (Pid == 0) { this.LblNodeName.Text = "根节点"; } else { M_Node node = this.bll.GetNodeXML(Pid); if (node.IsNull) { this.LblNodeName.Text = "根节点"; } else { this.LblNodeName.Text = node.NodeName; } } if (NodeID > 0) { M_Node nodemod = bll.GetNodeXML(NodeID); this.HdnNodeID.Value = NodeID.ToString(); this.HdnDepth.Value = nodemod.Depth.ToString(); this.HdnParentId.Value = nodemod.ParentID.ToString(); this.HdnOrderID.Value = nodemod.OrderID.ToString(); this.TxtNodeName.Text = nodemod.NodeName; this.TxtNodeDir.Text = nodemod.NodeDir; this.TxtNodeUrl.Text = nodemod.NodeUrl; this.TxtNodePicUrl.Text = nodemod.NodePic; this.TxtTips.Text = nodemod.Tips; } else { this.HdnParentId.Value = Pid.ToString(); this.HdnDepth.Value = bll.GetDepth(Pid).ToString(); this.HdnOrderID.Value = (bll.GetMaxOrder(Pid) + 1).ToString(); } } }