<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page_SystemUser_Add.aspx.cs" Inherits="BDLSerSystem.SystemSet.Page_SystemUser_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">
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<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/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 == "SMech_FathName") {
                ShowTreeView();
            }
            else {
                HideTreeView();
            }
        }
    }
    function checkform() {
        if (document.Form1.Empl_Code.value == "") {
            alert('操作员账号不能为空!');
            Form1.Empl_Code.focus();
            return false;
        }
        if (document.Form1.Empl_Name.value == "") {
            alert('操作员姓名不能为空!');
            Form1.Empl_Name.focus();
            return false;
        }
        if (document.Form1.Empl_Position.value == "") {
            alert('操作员职位不能为空!');
            Form1.Empl_Position.focus();
            return false;
        }
        if (document.Form1.SMech_FathName.value == "") {
            alert('操作员所在机构不能为空!');
            Form1.SMech_FathName.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 class="tbl_4line_rblt2">
										    <table width="100%" border="0" cellspacing="0" cellpadding="0">
												    <tr><td height="40"><Div align="left">&nbsp;&nbsp;账号：<asp:TextBox ID="Empl_Code" runat="server" CssClass="TextBox3" Width="100px"></asp:TextBox>&nbsp;&nbsp;姓名：<asp:TextBox ID="Empl_Name" runat="server" CssClass="TextBox3" Width="100px"></asp:TextBox>&nbsp;&nbsp;职位：<asp:TextBox ID="Empl_Position" runat="server" CssClass="TextBox3" Width="100px"></asp:TextBox></div></td></tr>
												    <tr><td height="40"><Div align="left">&nbsp;&nbsp;所属机构：<asp:TextBox ID="SMech_FathName" runat="server" CssClass="TextBox3" Width="200px"></asp:TextBox>&nbsp;&nbsp;权限组：<asp:DropDownList ID="RGroup_ID" runat="server" CssClass="Drop_ListStyle"></asp:DropDownList><asp:TextBox ID="SMechFathIDBack" runat="server" Visible="false"></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:200px; POSITION:absolute;left:80;">
																			<ComponentArt:TreeView id="TreeView1" runat="server" Width="200px" 
                                                                                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></tr>
												    <tr>
														<td height="40"><div align="left">&nbsp;&nbsp;<asp:Button ID="Btn_Search" runat="server" CssClass="BtnStyle" Text="新  增" onclick="Btn_Search_Click" />
                                                            <asp:Button ID="Btn_Edit" runat="server" CssClass="BtnStyle" Text="修  改" 
                                                                onclick="Btn_Edit_Click"/>&nbsp;&nbsp;<asp:Button ID="Btn_RePass" runat="server" CssClass="BtnStyle" Text="重置密码" 
                                                                onclick="Btn_RePass_Click" />&nbsp;&nbsp;<asp:Button ID="Btn_Cancel" runat="server" CssClass="BtnStyle" Text="取  消" onclick="Btn_Cancel_Click" />&nbsp;<asp:Label ID="Lab_Show" runat="server"></asp:Label></div></td>
													</tr>
													<tr>
														<td>&nbsp;<asp:TextBox ID="UserIDBack" runat="server" Visible="false"></asp:TextBox></td>
													</tr>
												</table>
										</td>
									</tr>
								</table>
			</div>
		</form>
	</body>
</HTML>
