RoadFlow2.1 临时演示

Tree.aspx 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tree.aspx.cs" Inherits="WebForm.Platform.RoleApp.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="menu"></div>
  11. </form>
  12. <script type="text/javascript">
  13. var AppID = '<%=Request.QueryString["appid"]%>';
  14. var roleid = '<%=Request.QueryString["roleid"]%>';
  15. var roadTree = null;
  16. $(function ()
  17. {
  18. loadTree(roleid);
  19. });
  20. function loadTree(id)
  21. {
  22. $("#menu").html('');
  23. if (id.length > 0)
  24. {
  25. roadTree = new RoadUI.Tree({ id: "menu", path: "Tree1.ashx?roleid=" + id, refreshpath: "TreeRefresh.ashx", onclick: openUrl });
  26. }
  27. }
  28. function reLoad(id)
  29. {
  30. if (roadTree != null)
  31. {
  32. roadTree.refresh(id);
  33. }
  34. }
  35. function openUrl(json)
  36. {
  37. parent.frames[1].location = "Body.aspx?id=" + json.id + "&appid=" + AppID + "&roleid=" + $("#role").val();
  38. }
  39. </script>
  40. </body>
  41. </html>