<%@ Page language="c#" Codebehind="jkcx_edit.aspx.cs" AutoEventWireup="True" Inherits="health.aspx.jkcx_edit" %>

<HTML>
	<HEAD>
		<title>jkcx_edit</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/common.js" type="text/javascript"></script>

	</HEAD>
	<body >
		<br>
		<form id="Form1"  runat="server">
				<table id="Table3" align="center" class="sys_grid" border="0" cellpadding="0" cellspacing="0" width="98%">
				<TR>
					 <td align="left">
						<table id="Table2" 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">&nbsp;
										<asp:button id="btn_print" runat="server" CssClass="sys_button" Width="60px" Text="打印" onclick="btn_print_Click"></asp:button>&nbsp;&nbsp;<asp:button id="btn_close" runat="server" CssClass="sys_button" Width="60px" Text="返回" OnClientClick="javascript:window.close();"></asp:button>&nbsp;
                                    </TD>
								</TR>
							</TABLE>
					<table border="0" cellpadding="0" cellspacing="3" width="100%" >
					<TR height="25">
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label1" runat="server">人员编号:</asp:label></TD>
						<TD style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_user_id" style="WIDTH: 100%" disabled type="text" size="24"
								name="tb_user_id" runat="server"></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label2" runat="server">人员姓名:</asp:label></TD>
						<TD style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_user_name" style="WIDTH: 100%" disabled type="text" name="tb_user_name"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%; HEIGHT: 24px">&nbsp;
							<asp:label id="lblPro_Type" runat="server">性别:</asp:label></TD>
						<TD style="WIDTH: 30%; HEIGHT: 24px"><asp:textbox id="tb_sex" runat="server" CssClass="sys_editbox" Width="100%" Enabled="False"></asp:textbox></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%; HEIGHT: 24px">&nbsp;
							<asp:label id="Label5" runat="server">出生日期:</asp:label></TD>
						<TD style="WIDTH: 30%; HEIGHT: 24px"><INPUT class="sys_editbox" id="tb_birth_date" style="WIDTH: 100%" disabled name="tb_birth_date"
								runat="server"></TD>
					</TR>
					<TR>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label7" runat="server">部门:</asp:label></TD>
						<TD style="WIDTH: 30%"><asp:textbox id="tb_dept" runat="server" CssClass="sys_editbox" Width="100%" Enabled="False"></asp:textbox></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label6" runat="server">工种:</asp:label></TD>
						<TD style="WIDTH: 30%">
							<asp:textbox id="tb_work_type" runat="server" CssClass="sys_editbox" Width="100%" Enabled="False"></asp:textbox></TD>
					</TR>
					<TR>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="lblPro_Id" runat="server">工作时间:</asp:label></TD>
						<TD style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_job_date" style="WIDTH: 100%" disabled type="text"
								name="tb_factory_date" runat="server"></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="lblPro_Id_old" runat="server">血型:</asp:label></TD>
						<TD style="WIDTH: 30%"><asp:textbox id="tb_blood" runat="server" CssClass="sys_editbox" Width="100%" Enabled="False"></asp:textbox></TD>
					</TR>
					<TR>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label8" runat="server">配偶情况:</asp:label></TD>
						<TD style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_mate" style="WIDTH: 100%; HEIGHT: 21px" type="text" size="24"
								name="tb_mate" runat="server"></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="lblPro_Name" runat="server">健康状况:</asp:label></TD>
						<TD style="WIDTH: 30%">
							<asp:textbox id="tb_health" runat="server" Width="100%" CssClass="sys_editbox" MaxLength="30"
								Enabled="False" ontextchanged="tb_health_TextChanged"></asp:textbox></TD>
					</TR>
					<TR height="25">
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="lblPro_Term" runat="server">检查种类:</asp:label></TD>
						<TD class="sys_grid_cell" style="WIDTH: 30%"><asp:dropdownlist id="ddl_check_type" runat="server" Width="100%" Height="22px"
								Enabled="False" onselectedindexchanged="ddl_check_type_SelectedIndexChanged"></asp:dropdownlist></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label17" runat="server">检查日期:</asp:label></TD>
						<TD class="sys_grid_cell" style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_check_date" style="WIDTH: 100%" type="text" name="tb_check_date"
								runat="server" disabled></TD>
					</TR>
					<TR height="25">
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label3" runat="server">送检医生:</asp:label></TD>
						<TD class="sys_grid_cell" style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_doctor" style="WIDTH: 100%" type="text" name="tb_doctor"
								runat="server"></TD>
						<TD class="sys_grid_cell_label" style="WIDTH: 20%">&nbsp;
							<asp:label id="Label4" runat="server">报告日期:</asp:label></TD>
						<TD class="sys_grid_cell" style="WIDTH: 30%"><INPUT class="sys_editbox" id="tb_report_date" style="WIDTH: 100%" type="text" name="tb_report_date"
								runat="server" disabled></TD>
					</TR>
					<TR height="25">
						<TD style="WIDTH: 20%" borderColorLight="#00d00a">&nbsp;
							<asp:label id="Label13" runat="server">结论</asp:label>:</TD>
						<TD class="sys_grid_cell" style="WIDTH: 80%" colSpan="3">
							<asp:textbox id="tb_result" runat="server" CssClass="sys_editbox" Width="100%" Height="44px"
								TextMode="MultiLine" MaxLength="60" Enabled="False"></asp:textbox></TD>
					</TR>
					</table>
					</td></tr>
				</TABLE>
				<TABLE id=tb41 align="center" class="sys_grid" border="0" cellpadding="0" cellspacing="0" width="98%">
					<%=rows%>
				</TABLE>
				<INPUT id="hd" style="Z-INDEX: 101; LEFT: 33px; POSITION: absolute; TOP: 328px" type="hidden"	name="hd" runat="server"> 
		</form>
		<script language="javascript">
           function getvalue()
           {   
                var s="";
				for (i=0;i<document.forms(0).elements.length;i++)  
				{
					var a=document.forms(0).elements(i).name;
					if (a=="tb")
					{
 					  var v=document.forms(0).elements(i).value;
                      if (v==""||v==null) v="''";else v="'"+v+"'";
					  if (s=="")
					    s=v;  
					  else
					    s+=";"+v; 
					}
				}	
                document.forms(0).hd.value=s;
           }   	

           var s=document.forms(0).hd.value;
           if (s!=''&&s!=null)  
           {
				var arr=s.split(";");  //分号隔开
				var j=0;
				for(var i=0;i<document.forms(0).elements.length;i++)
				{
					var a=document.forms(0).elements(i).name;
					if (a=="tb")
					{
						if (arr[j]=="''") arr[j]="";
						document.forms(0).elements(i).value=arr[j];
						j++;
					}

				}
           }
		</script>
	</body>
</HTML>
