<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page_File_Move.aspx.cs" Inherits="BDLSerSystem.FileManage.Page_File_Move" %>
<%@ 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.Mech_FathID.value == "") {
        alert('请选择需移至的文件夹!');
        Form1.Mech_FathID.focus();
        return false; //MechFathIDBack
    }
    if (document.Form1.MechFathIDBack.value == document.Form1.FathIDBack.value) {
        alert('存储位置无变化，请选择新的存储位置!');
        Form1.Mech_FathID.focus();
        return false; //MechFathIDBack
    }
    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><asp:TextBox ID="File_ListString" runat="server"  style="DISPLAY: none"></asp:TextBox><asp:TextBox ID="FathIDBack" runat="server"  style="DISPLAY: none"></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="center"><asp:Label ID="Lbl_FileShow" runat="server"></asp:Label></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 height="30" width="100px"><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"  style="DISPLAY: none"></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 width="100" height="30"><div align="left">&nbsp;&nbsp;移动的类型：</div></td>
                                                  <td width="150"><div align="left"><asp:RadioButton ID="RadioButton1" Text="复制" runat="server" GroupName="FileCopy" /><asp:RadioButton ID="RadioButton2" Text="剪切" runat="server" GroupName="FileCopy" /></div></td>
                                                  <td><div align="left">&nbsp;</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>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button 
                                                        ID="Btn_Cancel" Runat="server" CssClass="BtnStyle" Text="取  消" 
                                                        onclick="Btn_Cancel_Click" Visible="false"></asp:Button></div></td>
                                                </tr>
                                                <tr><td colspan="3"></td></tr>
                                              </table>
                                            </div></td>
                                            </tr>
                                          </table>
											</div>
									  </td>
									</tr>
								</table>
			</div>
		</form>
	</body>
</HTML>
