<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../modules/Pager.ascx" %>
<%@ Page language="c#" Codebehind="person_gd.aspx.cs" AutoEventWireup="True" Inherits="health.aspx.person_gd" %>

<HTML>
	<HEAD>
		<title>person_gd</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/My97DatePicker/WdatePicker.js" defer type="text/javascript"></script>
		<script language="JavaScript" src="../../js/common.js" type="text/javascript"></script>

	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<br>
			<TABLE id="Table1" cellPadding="0" width="98%" align="center" border="0">
				<TR>
					<TD align="center" colSpan="2">
						<TABLE class="sys_grid" id="Table3" cellSpacing="1" cellPadding="0" width="100%" border="0">
							<TR>
								<TD class="sys_head_cell" align="left" colSpan="3">
                                    &nbsp;<IMG src="../../Image/search.gif" align="absMiddle">员工信息</TD>
							</TR>
						</TABLE>
						<TABLE class="sys_grid" id="Table2" width="100%">
							<TR>
								<TD class="sys_grid_cell_label" align="left" colSpan="3" height="25">
                                    &nbsp;<asp:dropdownlist id="ddl_tj" runat="server" Width="80px">
										<asp:ListItem Value="user_id">员工工号</asp:ListItem>
										<asp:ListItem Value="user_name">员工姓名</asp:ListItem>
										<asp:ListItem Value="dept">部门</asp:ListItem>
									</asp:dropdownlist><asp:textbox id="tb_value" runat="server" Width="80px" CssClass="sys_editbox"></asp:textbox>&nbsp;<asp:button id="bntQuery" runat="server" CssClass="sys_button" Text="查 询" onclick="bntQuery_Click"></asp:button></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" Visible="False" />                        
                            <asp:BoundField DataField="USER_ID" HeaderText="员工工号" SortExpression="USER_ID"/>
                            <asp:BoundField DataField="USER_NAME" HeaderText="员工姓名" SortExpression="USER_NAME" />
                            <asp:BoundField DataField="DEPT" HeaderText="部门" SortExpression="DEPT" />
                        </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">
					</TD>
				</TR>
			</TABLE>
		</form>
		<script language="javascript">
		function OnTRClick(TableName,HdnKey, HdnMode, Url)
		{ 
			var mode = document.getElementById(HdnMode);
			if ((mode != null) && (mode.value != ""))
				return;
			TB = document.getElementById(TableName);
			for(var i = 1; i < TB.rows.length; i++)
			{
				TB.rows[i].style.backgroundColor="";  
			}
			event.srcElement.parentElement.style.backgroundColor="#FFFFAC";
			s=event.srcElement.parentElement.cells[0].value;
			parent.frames.rightFrame.location = Url;
		}    
	
	
		</script>
	</body>
</HTML>
