TreeView.aspx
资源名称:精品OA.rar [点击查看]
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:2k
源码类别:
OA系统
开发平台:
C#
- <%@ Page language="c#" Codebehind="TreeView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Mail.TreeView" %>
- <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>TreeView</title>
- <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
- <meta name="CODE_LANGUAGE" Content="C#">
- <meta name="vs_defaultClientScript" content="JavaScript">
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
- <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
- <base target="_self">
- <script language="javascript">
- function confirmSelect()
- {
- var parwin = window.dialogArguments;
- tdText = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("Text");
- tdID = TreeView1.getTreeNode(TreeView1.selectedNodeIndex).getAttribute("ID");
- if(parwin.ReadMail!=null)
- {
- if(confirm("您确认要选择 <<"+tdText+">> ?"))
- {
- parwin.location='ReadMail.aspx?Action=3&ClassID='+tdID+'&MailID='+parwin.ReadMail.hdnMailID.value;
- window.close();
- }
- }
- if(confirm("您确认要选择 <<"+tdText+">> ?"))
- {
- parwin.document.all.txtProjectName.value=tdText;
- parwin.document.all.hdnProjectID.value=tdID;
- window.close();
- }
- }
- </script>
- </HEAD>
- <body MS_POSITIONING="GridLayout">
- <table width="33%" border="0">
- <tr>
- <td>
- <iewc:TreeView id="TreeView1" runat="server" ondblclick="javascript:confirmSelect()"></iewc:TreeView></td>
- </tr>
- <tr>
- <td> <FONT face="宋体"> <BR>
- </FONT><INPUT class="ButtonCss" type="button" value="确定" onclick="confirmSelect()"></td>
- </tr>
- </table>
- <form id="TreeView" method="post" runat="server">
- </form>
- </body>
- </HTML>