<%@ 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 align="center" class="sys_grid" border="0" cellpadding="0" cellspacing="0" width="98%">
		  <tr><td>
		    <table id="Table4"  border="0" cellpadding="0" cellspacing="0"  width="100%" class="sys_head_cell">
			    <tr>
			         <td align="left" class="sys_head_cell">
			          &nbsp;<IMG src="../../Image/search.gif" align="absMiddle">个人基本信息
			         </td>
			         <td align="right" class="sys_head_cell" style="height: 25px">
 				        <asp:linkbutton id="Linkbutton1" runat="server" BackColor="Transparent" OnClientClick="javascript:OnPwd2('dangan/webhelp.aspx');" >〖帮助〗</asp:linkbutton>
				        <asp:linkbutton id="btnRePwd" runat="server" BackColor="Transparent" OnClientClick="javascript:onchangepwd('dangan/changepassword.aspx');" >〖修改密码〗</asp:linkbutton>
				        <asp:linkbutton id="btnReLogin" runat="server" BackColor="Transparent"  OnClick="btnReLogin_Click" >〖重新登录〗</asp:linkbutton>
			         </td>

			    </tr>
			 </table>

             <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <td style="width: 15%" align="right">
                                &nbsp;<asp:Label ID="Label14" runat="server" Text="工号："></asp:Label></td>
                            <td>    
                                <asp:TextBox ID="tb_per_id" runat="server"></asp:TextBox></td>
                            <td align="right">
                                &nbsp;<asp:Label ID="Label15" runat="server" Text="姓名："></asp:Label></td>
                            <td>
                                <asp:TextBox ID="tb_per_name" runat="server"></asp:TextBox> </td>                           
                            <td align="right" >
                                &nbsp;<asp:Label ID="Label16" runat="server" Text="性别："></asp:Label></td>
                            <td>
                                <asp:TextBox ID="tb_sex" runat="server"></asp:TextBox></td>
                         </tr>

                        <tr>
                            <td style="width: 15%" align="right" >
                                &nbsp;<asp:Label ID="Label6" runat="server" Text="出生年月："></asp:Label></td><td>
                                <asp:TextBox ID="tb_birth_date" runat="server"></asp:TextBox></td>
                            <td align="right" >
                                &nbsp;<asp:Label ID="Label7" runat="server" Text="部门："></asp:Label></td><td>
                                <asp:TextBox ID="tb_dept" runat="server"></asp:TextBox>
                            </td>
                            <td align="right" >
                                &nbsp;<asp:Label ID="Label8" runat="server" Text="职务："></asp:Label></td><td>
                                <asp:TextBox ID="tb_duty" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                       
                        <tr>
                            <td style="width: 15%" align="right" >
                                &nbsp;<asp:Label ID="Label9" runat="server" Text="配偶情况："></asp:Label></td><td>
                                <asp:TextBox ID="tb_mate" runat="server" AutoCompleteType="Disabled"></asp:TextBox></td>
                            <td align="right" >
                                &nbsp;<asp:Label ID="Label10" runat="server" Text="血型："></asp:Label></td><td>
                                <asp:TextBox ID="tb_blood" runat="server"></asp:TextBox>
                            </td>
                            <td align="right" >
                                &nbsp;<asp:Label ID="Label11" runat="server" Text="健康状况："></asp:Label></td><td>
                                <asp:TextBox ID="tb_health" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 15%" align="right">
                                &nbsp;<asp:Label ID="Label12" runat="server" Text="治疗情况："></asp:Label></td>
                            <td colspan="5">
                                <asp:TextBox ID="tb_cure" runat="server" Rows="4" TextMode="MultiLine" Width="90%"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 15%" align="right">
                                &nbsp;<asp:Label ID="Label13" runat="server" Text="备注："></asp:Label></td>
                            <td colspan="5">
                              <asp:TextBox ID="tb_memo" runat="server" Width="90%"></asp:TextBox></td>
                        </tr>
                    </table>
    
             <table id="Table3" align="center" class="sys_grid" border="0" cellpadding="0" cellspacing="0" width="100%">
				<TR>
					 <td align="left">
						<table id="Table1" border="0" cellpadding="0" cellspacing="0"  width="100%" >
							<TR >
								<TD class="sys_head_cell">
                                    &nbsp;<IMG src="../../Image/search.gif" align="absMiddle">体检信息</TD>
								
							</TR>
							<TR style="height:30px">
							   <TD colSpan="2">
                                &nbsp;&nbsp;
                                <asp:label id="Label1" runat="server">检查日期：</asp:label>
                                <input id="txtsdate" runat="server" class="Wdate" name="txtsdate" onfocus="var txtedate=$dp.$('txtedate');WdatePicker({onpicked:function(){txtedate.focus();},maxDate:'#F{$dp.$D(\'txtedate\')}'})"
                                size="12" type="text" /><asp:Label ID="Label3" runat="server">～</asp:Label><input id="txtedate" runat="server" class="Wdate" name="txtedate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtsdate\')}'})"
                                size="12" type="text" tabindex="1" />&nbsp;<asp:dropdownlist id="ddl_check_type" runat="server" CssClass="sys_editbox" Width="100px" AutoPostBack="True" OnSelectedIndexChanged="ddl_check_type_SelectedIndexChanged"></asp:dropdownlist>&nbsp;&nbsp;
								<asp:button id="btn_query" runat="server" CssClass="sys_button" Width="50px" Text="查询" onclick="Button1_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="60px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="USER_ID" HeaderText="员工工号" SortExpression="USER_ID">
                                          <ItemStyle HorizontalAlign="Center" Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="user_name" HeaderText="员工姓名" SortExpression="user_name">
                                          <ItemStyle HorizontalAlign="Center" Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="CHECK_DATE" HeaderText="体检日期" SortExpression="CHECK_DATE" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
                                          <ItemStyle HorizontalAlign="Center" Width="120px" />
                                    </asp:BoundField>                                    
                                    <asp:BoundField DataField="CHECK_TYPE" HeaderText="检查种类" SortExpression="CHECK_TYPE" >
                                          <ItemStyle HorizontalAlign="Center" Width="120px" />
                                    </asp:BoundField>
                                    
                                    <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>
                
                </td></tr>
		    </table><br>			    
			
			
		</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>
