RoadFlow2.1 临时演示

Tree.aspx 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tree.aspx.cs" Inherits="WebForm.Platform.AppLibrary.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 tabID = '<%=Request.QueryString["tabid"]%>';
  15. var rootID = '<%=new RoadFlow.Platform.Dictionary().GetIDByCode("AppLibraryTypes").ToString()%>';
  16. var roadTree = null;
  17. $(function ()
  18. {
  19. roadTree = new RoadUI.Tree({ id: "tree", path: "../Dictionary/Tree1.ashx?root=" + rootID, refreshpath: "../Dictionary/TreeRefresh.ashx", onclick: openUrl });
  20. });
  21. function openUrl(json)
  22. {
  23. parent.frames[1].location = "List.aspx?typeid=" + json.id + "&appid=" + appID + "&tabid=" + tabID;
  24. }
  25. function reLoad(id)
  26. {
  27. roadTree.refresh(id);
  28. }
  29. </script>
  30. </body>
  31. </html>