<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page_FileFolder_Manage.aspx.cs" Inherits="BDLSerSystem.FileManage.Page_FileFolder_Add" %>
<%@ Register TagPrefix="componentart" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<HTML>
	<HEAD>
		<title>User_Reg</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<LINK href="../css/css.css" type="text/css" rel="stylesheet">
<script language="JavaScript">
    function winconfirm() {
        question = confirm("您确实要删除此文件夹吗?")
        if (!question) {
            event.returnValue = false;
        }
    }
</script>
<script type="text/javascript">
function SetTextBox(id, s)
{
    document.getElementById(id).value = s;
    HideTreeView();
}
function ToggleTreeView()
{
    if (document.getElementById("treeDiv").style.visibility == "visible")
        HideTreeView();        
    else        
        ShowTreeView();        
}
function ShowTreeView()
{
    document.getElementById("treeDiv").style.visibility = "visible";
}
function HideTreeView()
{
    document.getElementById("treeDiv").style.visibility = "hidden";
}
function document.onclick() //任意点击时关闭该控件	//ie6的情况可以由下面的切换焦点处理代替
{
    with (window.event) {
        //判断是不是机构输入框获得焦点
        if (window.event.srcElement.name == "Mech_FathID") {
            ShowTreeView();
        }
        else {
            HideTreeView();
        }
    }
}
function checkform() {
    if (document.Form1.File_SaveName.value == "") {
        alert('文件夹名称不能为空!');
        Form1.File_SaveName.focus();
        return false;
    }
    return true;
}
</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<div align="center">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td height="90" valign="top" class="tbl_3line_rlt2"><div align="center">
										  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td height="30" class="tbl_2line_br"><div align="left">&nbsp;&nbsp;<B>已有文件夹<asp:TextBox ID="Empl_Code" runat="server" Visible="false"></asp:TextBox></B></div></td>
                                            <td width="400" class="tbl_1line_b"><div align="left">&nbsp;&nbsp;<B>文件夹维系</B></div></td>
                                            </tr>
                                            <tr>
                                              <td valign="top" class="tbl_1line_r2"><div align="left">
                                              <DIV id="SelectShow" style="OVERFLOW-Y: auto; OVERFLOW-X: auto; WIDTH: 220px; HEIGHT: 310px">
										<div id="Div1" style="CLEAR: both; BACKGROUND: white; WIDTH: 200px;POSITION: absolute; HEIGHT: 305px">
                                            <COMPONENTART:TREEVIEW id="TreeView2" runat="server" Width="200" 
                                                CssClass="TreeView" NodeCssClass="22"
												SelectedNodeCssClass="TreeViewcss" HoverNodeCssClass="TreeViewMouseOn" NodeEditCssClass="NodeEdit" 
                                                LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" 
                                                DefaultImageHeight="16" ItemSpacing="0" NodeLabelPadding="3" ShowLines="true" 
                                                LineImagesFolderUrl="../images/lines/" EnableViewState="true" 
                                                AutoPostBackOnSelect="True" onnodeselected="TreeView2_NodeSelected" 
                                                ClientSideOnNodeMouseDoubleClick="NodeSelect"></COMPONENTART:TREEVIEW></div>
									</DIV>
                                              </div></td>
                                            <td valign="top"><div align="left">
                                              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                                <tr><td height="10" colspan="3"></td></tr>
                                                <tr>
                                                  <td width="90" height="30"><div align="left">&nbsp;&nbsp;名件夹名：</div></td>
                                                  <td width="200"><div align="left"><asp:TextBox ID="File_SaveName" runat="server" CssClass="TextBox3" Width="204px"></asp:TextBox></div></td>
                                                  <td><div align="left">&nbsp;</div></td>
                                                </tr>
                                                <tr>
                                                  <td height="30"><div align="left">&nbsp;&nbsp;上级目录：</div></td>
                                                <td height="30"><div align="left"><asp:TextBox ID="Mech_FathID" runat="server" CssClass="TextBox3" Width="204px"></asp:TextBox></div>
                                                <div id="treeDiv" style="CLEAR:both; BORDER-RIGHT:1px solid #b2b2b2; BORDER-TOP:1px solid #b2b2b2;BORDER-LEFT:1px solid #b2b2b2; BORDER-BOTTOM:1px solid #b2b2b2;MARGIN-TOP:1px; BACKGROUND:white; VISIBILITY:hidden; WIDTH:204px; POSITION:absolute">
																			<ComponentArt:TreeView id="TreeView1" runat="server" Width="204px" 
                                                                                CssClass="TreeView" NodeCssClass="22"
																				SelectedNodeCssClass="TreeViewcss" HoverNodeCssClass="TreeViewMouseOn" NodeEditCssClass="NodeEdit"
																				LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16" ItemSpacing="0"
																				NodeLabelPadding="3" ShowLines="true" LineImagesFolderUrl="../images/lines/" EnableViewState="true" AutoPostBackOnSelect="True" 
                                                                                onnodeselected="TreeView1_NodeSelected"></ComponentArt:TreeView>
																		</div>
                                                </td>
                                                  <td height="30"><div align="left">&nbsp;<asp:TextBox ID="MechFathIDBack" runat="server" Visible="false"></asp:TextBox><asp:TextBox ID="MechIDBack" runat="server" Visible="false"></asp:TextBox><asp:TextBox ID="EditOK" runat="server" style="DISPLAY:none"></asp:TextBox></div></td>
                                                </tr>                                                
                                                <tr>
                                                <td height="50" colspan="3"><div align="left">&nbsp;&nbsp;<asp:Button ID="Btn_Add" Runat="server" 
                                                        CssClass="BtnStyle" Text="新  增" onclick="Btn_Add_Click"></asp:Button>
                                                    <asp:Button ID="Btn_Edit" Runat="server" CssClass="BtnStyle" Text="修  改" 
                                                        Visible="false" onclick="Btn_Edit_Click"></asp:Button>&nbsp;&nbsp;<asp:Button 
                                                        ID="Btn_Del" runat="server" CssClass="BtnStyle" Text="删  除" Visible="false" 
                                                        onclick="Btn_Del_Click" />&nbsp;&nbsp;<asp:Button 
                                                        ID="Btn_Cancel" Runat="server" CssClass="BtnStyle" Text="取  消" 
                                                        onclick="Btn_Cancel_Click"></asp:Button></div></td>
                                                </tr>
                                                <tr><td colspan="3"></td></tr>
                                              </table>
                                            </div></td>
                                            </tr>
                                          </table>
											</div>
									  </td>
									</tr>
								</table>
			</div>
		</form>
	</body>
</HTML>
