public void BindList() { BP.WF.Node nd = new BP.WF.Node(this.FK_Node); Listens ens = new Listens(); ens.Retrieve(ListenAttr.FK_Node, this.FK_Node); if (ens.Count == 0) { this.Response.Redirect("Listen.aspx?FK_Node=" + this.FK_Node + "&DoType=New", true); return; } this.Pub1.AddTable("width=80%"); this.Pub1.AddCaptionLeft("设置收听:" + nd.Name + "- <a href='Listen.aspx?FK_Node=" + this.FK_Node + "&DoType=New' >新建</a>"); this.Pub1.AddTR(); this.Pub1.AddTDTitle("当前节点"); this.Pub1.AddTDTitle("收听节点"); this.Pub1.AddTDTitle("操作"); this.Pub1.AddTREnd(); foreach (Listen en in ens) { this.Pub1.AddTR(); this.Pub1.AddTD(nd.Name); this.Pub1.AddTD(en.Nodes); // this.Pub1.AddTD(en.Title); //this.Pub1.AddTD(en.Doc); this.Pub1.AddTD("<a href='Listen.aspx?FK_Node=" + this.FK_Node + "&DoType=New&RefOID=" + en.OID + "'>删除-编辑</a>"); this.Pub1.AddTREnd(); } this.Pub1.AddTableEnd(); }
public void BindList() { BP.WF.Node nd = new BP.WF.Node(this.FK_Node); Listens ens = new Listens(); ens.Retrieve(ListenAttr.FK_Node, this.FK_Node); if (ens.Count == 0) { this.Response.Redirect("Listen.aspx?FK_Node=" + this.FK_Node + "&DoType=New", true); return; } this.Pub1.AddTable("class='Table' cellSpacing='1' cellPadding='1' border='1' style='width:100%'"); this.Pub1.AddTR(); this.Pub1.AddTD("class='GroupTitle' colspan='3'", "设置收听:" + nd.Name + " - <a href='Listen.aspx?FK_Node=" + this.FK_Node + "&DoType=New' >新建</a>"); this.Pub1.AddTREnd(); this.Pub1.AddTR(); this.Pub1.AddTD("class='GroupTitle'", "当前节点"); this.Pub1.AddTD("class='GroupTitle'", "收听节点"); this.Pub1.AddTD("class='GroupTitle'", "操作"); this.Pub1.AddTREnd(); foreach (Listen en in ens) { this.Pub1.AddTR(); this.Pub1.AddTD(nd.Name); this.Pub1.AddTD(en.Nodes); this.Pub1.AddTD("<a href='Listen.aspx?FK_Node=" + this.FK_Node + "&DoType=New&RefOID=" + en.OID + "' class='easyui-linkbutton' data-options=\"iconCls:'icon-edit'\">编辑</a>"); this.Pub1.AddTREnd(); } this.Pub1.AddTableEnd(); }