<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../modules/Pager.ascx" %>
<%@ Page language="c#" Codebehind="person_list.aspx.cs" AutoEventWireup="True" Inherits="health.aspx.sys.person_list" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>person_list</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../css/style.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../../js/Calendar.js" type="text/javascript"></script>
		<script language="JavaScript" src="../../js/common.js" type="text/javascript"></script>
		<style>
	.sys_button1 { BORDER-RIGHT: #9595a9 1px solid; BORDER-TOP: #9595a9 1px solid; FONT-SIZE: 9pt; BACKGROUND: url(../../App_Image/sys/button_gray.jpg) fixed repeat-x center center; BORDER-LEFT: #9595a9 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #9595a9 1px solid; FONT-FAMILY: "宋体"; HEIGHT: 22px; TEXT-ALIGN: center }
		</style>
	</HEAD>
	<body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<br>
				<TABLE class="sys_grid" id="Table2" cellSpacing="0" cellPadding="0" width="95%" border="0"
					align="center">
					<TR>
						<TD class="sys_head_cell" align="left" height="25">
                            &nbsp;<IMG src="../../Image/search.gif" align="absMiddle">&nbsp;
							<asp:Label id="lb" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>&nbsp;员工信息</TD>
					</TR>
					<TR height="25">
						<TD align="center">
							<TABLE class="sys_grid" id="Table5" width="100%" border="0" cellpadding="0" cellspacing="0">
								<TR>
									<TD class="sys_grid_cell_label" align="left" width="439" colSpan="3" height="25">
                                        &nbsp;<asp:dropdownlist id="ddl_tj" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_tj_SelectedIndexChanged">
                                            <asp:ListItem></asp:ListItem>
											<asp:ListItem Value="USER_ID">员工号</asp:ListItem>
											<asp:ListItem Value="USER_NAME">员工姓名</asp:ListItem>
											<asp:ListItem Value="SEX">性别</asp:ListItem>
										</asp:dropdownlist>
										<asp:textbox id="tb_value" runat="server" CssClass="sys_editbox"></asp:textbox>
                                        &nbsp;
										<asp:button id="bntQuery" runat="server" CssClass="sys_button" Text="查 询" Width="60px" onclick="bntQuery_Click"></asp:button><FONT face="宋体">&nbsp;
										</FONT>
									</TD>
								</TR>
							</TABLE>
							<asp:GridView ID="gdv" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                                CssClass="sys_grid" OnRowDataBound="gdv_RowDataBound" OnSorting="gdv_Sorting"  Width="100%">
                                <HeaderStyle CssClass="sys_grid_head_cell" />
                                <Columns>
                                    <asp:BoundField DataField="id" HeaderText="编号" SortExpression="id"  />                        
                                    <asp:BoundField DataField="USER_ID" HeaderText="员工工号" SortExpression="USER_ID"/>
                                    <asp:BoundField DataField="USER_NAME" HeaderText="员工姓名" SortExpression="USER_NAME" />
                                    <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                                </Columns>                        
                                <PagerSettings Visible="False" />
                                <RowStyle HorizontalAlign="Center" Height="25px" />
                            </asp:GridView><uc1:pager id="Pager1" runat="server"></uc1:pager><INPUT id="hd" type="hidden" name="hd" runat="server" style="width: 33px">
						<INPUT id="hd_deptid"  type="hidden" size="1" name="hd_perid"	runat="server"> <INPUT id="hd_deptname"  type="hidden" size="1" name="hd_pername"	runat="server">
						</TD>
					</TR>
				</TABLE>
			</FONT>
		</form>
		<SCRIPT language="javascript">
	       <%=msg%>;

	       var s='<%=url%>';
           if (s!='')
	         {
	          window.showModalDialog('<%=url%>','','dialogWidth:350px;dialogHeight:240px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
              s='';
              window.location="person_list.aspx?deptid="+document.getElementById('hd_deptid').value+"&deptname="+document.getElementById('hd_deptname').value+"&tj="+document.getElementById('ddl_tj').value+"&value="+document.getElementById('tb_value').value;
              
             }
   	        function OnRowClickRefresh(s1,s2)
            {
               window.showModalDialog('../showModal.aspx?url='+s1+'?ID='+s2,'','dialogWidth:350px;dialogHeight:240px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
              window.location="person_list.aspx?deptid="+document.getElementById('hd_deptid').value+"&deptname="+document.getElementById('hd_deptname').value+"&tj="+document.getElementById('ddl_tj').value+"&value="+document.getElementById('tb_value').value;
            }


		</SCRIPT>
	</body>
</HTML>
