RoadFlow2.1 临时演示

Tree.aspx 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tree.aspx.cs" Inherits="WebForm.Platform.WorkFlowArchives.Tree" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title></title>
  7. </head>
  8. <body>
  9. <%string rootid = new RoadFlow.Platform.Dictionary().GetIDByCode("FlowTypes").ToString(); %>
  10. <form id="form1" runat="server">
  11. <div id="tree"></div>
  12. </form>
  13. <script type="text/javascript">
  14. var AppID = '<%=Request.QueryString["appid"]%>';
  15. var iframeid = '<%=Request.QueryString["iframeid"]%>';
  16. var openerid = '<%=Request.QueryString["openerid"]%>';
  17. var roadTree = null;
  18. $(function ()
  19. {
  20. roadTree = new RoadUI.Tree({ id: "tree", path: top.rootdir + "/Platform/Dictionary/Tree1.ashx?root=<%=rootid%>", refreshpath: top.rootdir + "/Platform/Dictionary/TreeRefresh.ashx", onclick: openUrl });
  21. });
  22. function openUrl(json)
  23. {
  24. parent.frames[1].location = "List.aspx?typeid=" + json.id + "&appid=" + AppID + "&iframeid=" + iframeid + "&openerid=" + openerid;
  25. }
  26. function reLoad(id)
  27. {
  28. roadTree.refresh(id);
  29. }
  30. </script>
  31. </body>
  32. </html>