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

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="TreeView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Mail.TreeView" %>
  2. <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>TreeView</title>
  7. <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  8. <meta name="CODE_LANGUAGE" Content="C#">
  9. <meta name="vs_defaultClientScript" content="JavaScript">
  10. <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  11. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  12. <base target="_self">
  13. <script language="javascript">
  14. function confirmSelect()
  15. {
  16.     var parwin = window.dialogArguments;
  17.     tdText = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("Text");
  18.     tdID   = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("ID");
  19. if(parwin.ReadMail!=null)
  20. {
  21. if(confirm("您确认要选择 <<"+tdText+">> ?"))
  22. {
  23. parwin.location='ReadMail.aspx?Action=3&ClassID='+tdID+'&MailID='+parwin.ReadMail.hdnMailID.value;
  24. window.close();
  25. }
  26. }
  27. if(confirm("您确认要选择 <<"+tdText+">> ?"))
  28. {
  29. parwin.document.all.txtProjectName.value=tdText;
  30. parwin.document.all.hdnProjectID.value=tdID;
  31. window.close();
  32. }
  33. }
  34. </script>
  35. </HEAD>
  36. <body MS_POSITIONING="GridLayout">
  37. <table width="33%" border="0">
  38. <tr>
  39. <td>&nbsp;
  40. <iewc:TreeView id="TreeView1" runat="server" ondblclick="javascript:confirmSelect()"></iewc:TreeView></td>
  41. </tr>
  42. <tr>
  43. <td>&nbsp;<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
  44. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</FONT><INPUT class="ButtonCss" type="button" value="确定" onclick="confirmSelect()"></td>
  45. </tr>
  46. </table>
  47. <form id="TreeView" method="post" runat="server">
  48. </form>
  49. </body>
  50. </HTML>