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

<HTML>
	<HEAD>
		<title>check_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="Table4" 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="Table5" width="100%">
							    <TR>
								    <TD align="left" height="25">&nbsp;<asp:dropdownlist id="ddl_tj" runat="server" CssClass="sys_editbox">
											<asp:ListItem Value="check_type">检查种类</asp:ListItem>
											<asp:ListItem Value="check_date">检查日期</asp:ListItem>
											<asp:ListItem Value="result">结论</asp:ListItem>
										</asp:dropdownlist><asp:textbox id="tb_value" runat="server" CssClass="sys_editbox"></asp:textbox>&nbsp;<asp:button id="Button1" 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" HeaderText="编号" SortExpression="id"  >
                                         <ItemStyle HorizontalAlign="Center" Width="30px" />
                                    </asp:BoundField>
                                    <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" />   
                                    <asp:BoundField DataField="CHECK_DATE" HeaderText="检查日期" SortExpression="CHECK_DATE" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False"/>                
                                    <asp:BoundField DataField="CHECK_TYPE" HeaderText="检查种类" SortExpression="CHECK_TYPE" />                                    
                                    <asp:BoundField DataField="RESULT" HeaderText="结论" SortExpression="RESULT" />
                                </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>
				<INPUT id="hd_userid" type="hidden" name="hd_userid" runat="server"> 
		</form>
		<script language="javascript">
	       var s='<%=url%>';
	       
           if (s!='')
	       {
              window.showModalDialog('<%=url%>','','dialogWidth:620px;dialogHeight:600px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
              s='';
              window.location="check_gd.aspx?USERID="+document.getElementById('hd_userid').value;
           }

           function OnRowClickRefresh(s1,s2)
            {
               window.showModalDialog('../showModal.aspx?url='+s1+'?id='+s2,'','dialogWidth:620px;dialogHeight:600px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
	           window.location="check_gd.aspx?tj="+document.getElementById('ddl_tj').value+"&value="+document.getElementById('tb_value').value+"&USERID="+document.getElementById('hd_userid').value; 
            }
  
            
		</script>
	</body>
</HTML>
