RoadFlow2.1 临时演示

Tree.aspx 942B

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