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

<HTML>
	<HEAD>
		<title>职工健康档案管理系统</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 >
		<form id="Form1" runat="server">
		<br>
			<table id="Table3" align="center" class="sys_grid" border="0" cellpadding="0" cellspacing="0" width="98%">
				<TR>
					 <td align="left">
						<table id="Table1" border="0" cellpadding="0" cellspacing="0"  width="100%" class="sys_head_cell">
								<TR >
									<TD >
                                        &nbsp;<IMG src="../../Image/search.gif" align="absMiddle">查询体检信息</TD>
									<TD align="right" height="25">
										<asp:linkbutton id="Linkbutton1" runat="server" BackColor="Transparent" OnClientClick="javascript:OnPwd2('dangan/webhelp.aspx');" >〖帮助〗</asp:linkbutton>
										<asp:linkbutton id="btnRePwd" runat="server" BackColor="Transparent" Visible="False" OnClientClick="javascript:onchangepwd('dangan/changepassword.aspx');" >〖修改密码〗</asp:linkbutton>
										<asp:linkbutton id="btnReLogin" runat="server" BackColor="Transparent" Visible="False"  OnClick="btnReLogin_Click" >〖重新登录〗</asp:linkbutton></TD>
								</TR>
							</TABLE>
						<TABLE id="Table2" class="sys_grid" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<TR>
								<TD height="25">
                                    &nbsp;<asp:label id="lblPro_Term" runat="server">员工编号：</asp:label>
                                    <INPUT class="sys_editbox" id="tb_user_id" style="WIDTH: 100px" type="text" name="tb_user_id"
										runat="server"></TD>
								<TD height="25"><asp:label id="Label1" runat="server">检查日期：</asp:label>
                                    <INPUT class="Wdate" id="tb_check_date" title="aaa" style="WIDTH: 100px" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
										name="tb_check_date" runat="server"></TD>
								<TD height="25"><asp:label id="Label2" runat="server">检查种类：</asp:label>&nbsp;<asp:dropdownlist id="ddl_check_type" runat="server" CssClass="sys_editbox" Width="100px"></asp:dropdownlist><FONT face="宋体">&nbsp;&nbsp;
									</FONT>
									<asp:button id="btn_query" runat="server" CssClass="sys_button" Width="60px" Text="查 询" onclick="Button1_Click"></asp:button></TD>
							</TR>
							<TR>
								<TD colSpan="3" height="5"></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"  >
                                         <ItemStyle HorizontalAlign="Center" Width="60px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="USER_ID" HeaderText="员工工号" SortExpression="USER_ID">
                                          <ItemStyle HorizontalAlign="Center" Width="60px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="USER_NAME" HeaderText="员工姓名" SortExpression="USER_NAME" >
                                          <ItemStyle HorizontalAlign="Center" Width="80px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="SEX" HeaderText="性别" SortExpression="SEX" >
                                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CHECK_DATE" HeaderText="体检日期" SortExpression="CHECK_DATE" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Center" Width="110px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CHECK_TYPE" HeaderText="检查种类" SortExpression="CHECK_TYPE" >
                                    <ItemStyle HorizontalAlign="Center" Width="150px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="RESULT" HeaderText="结论" SortExpression="RESULT" />
                                    <asp:BoundField DataField="HEALTH" HeaderText="健康状况" SortExpression="HEALTH" >
                                    <ItemStyle HorizontalAlign="Center"  />
                                    </asp:BoundField>
                                </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">
	       <%=msg%>; 
            
            function OnRowClickRefresh(s1,s2)
            {
               window.showModalDialog('../showModal.aspx?url='+s1+'?id='+s2,'','dialogWidth:620px;dialogHeight:620px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
            }

	        function onchangepwd(s1)
	        {
               window.showModalDialog('../showModal.aspx?url='+ s1 +'','','dialogWidth:450px;dialogHeight:260px;help:no;status:no;dialogHide:yes;scrollbars:no');
            }
            function OnPwd2(s1)
	        {
               window.showModalDialog('../showModal.aspx?url='+ s1 +'','dialogWidth:800px;dialogHeight:640px;help:no;status:no;dialogHide:yes;scrollbars:no');
            }
		</script>
	</body>
</HTML>
