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

<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/calendar.js" type="text/javascript"></script>
		<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"><asp:Button ID="btn_continue" runat="server" CssClass="sys_button" Text="继续添加" Width="60px" OnClientClick="javascript:document.forms(0).hd.value='';" OnClick="btn_continue_Click" />
                                    <asp:Button ID="btn_save" runat="server" CssClass="sys_button" Text="保存" Width="60px" OnClientClick="getvalue();" OnClick="btn_save_Click" />&nbsp;<asp:button id="btn_print" runat="server" CssClass="sys_button" Width="60px" Text="打印" OnClientClick="javascript:document.execCommand('Print');"></asp:button>
									<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%" 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%" type="text" name="tb_user_name"
							            runat="server"></TD>
				            </TR>
				            <TR height="25">
					            <TD class="sys_grid_cell_label" style="WIDTH: 20%; HEIGHT: 24px">&nbsp;
						            <asp:label id="lblPro_Term" runat="server">检查种类</asp:label>
                                    <asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*" Width="8px"></asp:Label></TD>
					            <TD class="sys_grid_cell" style="WIDTH: 30%; HEIGHT: 24px">
						            <asp:dropdownlist id="ddl_check_type" runat="server" Width="100%" AutoPostBack="True"
							            Height="22px" onselectedindexchanged="ddl_check_type_SelectedIndexChanged"></asp:dropdownlist></TD>
					            <TD class="sys_grid_cell_label" style="WIDTH: 20%; HEIGHT: 24px">&nbsp;
						            <asp:label id="Label17" runat="server">检查日期</asp:label>
                                    <asp:Label ID="Label8" runat="server" ForeColor="Red" Text="*" Width="8px"></asp:Label></TD>
					            <TD class="sys_grid_cell" style="WIDTH: 30%; HEIGHT: 24px"><INPUT class="sys_editbox" id="tb_check_date" style="WIDTH: 100%" type="text" name="tb_check_date" onclick="javascript:selDate(document.all.tb_check_date);"
							            runat="server"></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" onclick="javascript:selDate(document.all.tb_report_date);"
							            runat="server"></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"  Height="44px" Width="100%"
							            TextMode="MultiLine" MaxLength="60"></asp:textbox></TD>
				            </TR>
				         </table>
				         </td></tr>
			        </TABLE>
			        <div style="overflow:auto" runat=server>
			        <TABLE id="tb4" align="center" class="sys_grid" border="0" cellpadding="0" cellspacing="0" width="98%" >
				        <%=rows%>
			        </TABLE>
			        </div>
			<INPUT id="hd" 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="''";
                      }
                      
					  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>
