RoadFlow2.1 临时演示

InstanceTree.aspx 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstanceTree.aspx.cs" Inherits="WebForm.Platform.WorkFlowTasks.InstanceTree" %>
  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. <%
  10. string rootid = new RoadFlow.Platform.Dictionary().GetIDByCode("FlowTypes").ToString();
  11. %>
  12. <form id="form1" runat="server">
  13. <div id="tree"></div>
  14. </form>
  15. <script type="text/javascript">
  16. var AppID = '<%=Request.QueryString["appid"]%>';
  17. var tabid = '<%=Request.QueryString["tabid"]%>';
  18. var roadTree = null;
  19. $(function ()
  20. {
  21. roadTree = new RoadUI.Tree({ id: "tree", path: top.rootdir + "/Platform/Dictionary/Tree1.ashx?root=<%=rootid%>", refreshpath: top.rootdir + "/Platform/Dictionary/TreeRefresh.ashx", onclick: openUrl });
  22. });
  23. function openUrl(json)
  24. {
  25. parent.frames[1].location = "InstanceList.aspx?typeid=" + json.id + "&appid=" + AppID + "&tabid=" + tabid;
  26. }
  27. function reLoad(id)
  28. {
  29. roadTree.refresh(id);
  30. }
  31. </script>
  32. </body>
  33. </html>