TreeView.aspx
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
  2. <%@ Page language="c#" Codebehind="TreeView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.MoveTeam.TreeView" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>项目移动</title>
  7. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  8. <meta content="C#" name="CODE_LANGUAGE">
  9. <meta content="JavaScript" name="vs_defaultClientScript">
  10. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  12. <script language="javascript">
  13. function confirmRemove()
  14. {
  15.     var parwin = window.dialogArguments;
  16.     tdText = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("Text")
  17. if(confirm("您确认要移动原项目至 <<"+tdText+">> ?"))
  18. {
  19. parwin.location="TreeView.aspx?Action=1&FromID=<%=FromID%>&ToID="+TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("ID");
  20. window.close();
  21. parwin.alert('移动成功!');
  22. parwin.parent.location.reload();
  23. }
  24. }
  25. </script>
  26. </HEAD>
  27. <body MS_POSITIONING="GridLayout">
  28. <table width="33%" border="0">
  29. <tr>
  30. <td>&nbsp;<iewc:treeview id="TreeView1" ondblclick="javascript:confirmRemove()" runat="server"></iewc:treeview></td>
  31. </tr>
  32. <tr>
  33. <td>&nbsp;<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
  34. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</FONT><INPUT class="ButtonCss" type="button" value="确定" onclick="confirmRemove()"></td>
  35. </tr>
  36. </table>
  37. <form id="TreeView" method="post" runat="server">
  38. </form>
  39. </body>
  40. </HTML>