RoadFlow2.1 临时演示

Open_Tree.aspx 1.3KB

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