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

<HTML>
	<HEAD>
		<title>database</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" rel="stylesheet" type="text/css" />
		<script language="JavaScript" src="../../js/Calendar.js" type="text/javascript"></script>
		<script language="JavaScript" src="../../js/common.js" type="text/javascript"></script>
		
	</HEAD>
	<body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
		<form id="Form1" runat="server">
		<br>
			<TABLE id="Table4" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
				<TR>
					<TD align="center" colSpan="2">
						<TABLE class="sys_grid" id="Table6" cellSpacing="1" cellPadding="1" width="100%" border="1">
							<TR>
								<TD class="sys_head_cell" align="left" colSpan="3">
                                    &nbsp;<IMG src="../../Image/search.gif" align="absMiddle"><asp:label id="lblShowMsg" runat="server" ForeColor="Red"></asp:label>基础信息</TD>
							</TR>
							<TR>
								<TD class="sys_grid_cell_label" align="left" height="25">&nbsp;<asp:dropdownlist id="ddl_tj" runat="server">
										<asp:ListItem Value="type">检查种类</asp:ListItem>
										<asp:ListItem Value="item">字段名</asp:ListItem>
										<asp:ListItem Value="item_name">检查项目名称</asp:ListItem>
									</asp:dropdownlist><asp:textbox id="tb_value" runat="server" CssClass="sys_editbox"></asp:textbox><asp:button id="Button1" runat="server" CssClass="sys_button" Text="查 询" onclick="bntQuery_Click"></asp:button>
								</TD>
							</TR>
						</TABLE>
						
							<asp:datagrid id="grdSQ" runat="server" Width="100%" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False"
								CssClass="sys_grid" >
								<ItemStyle Height="25px" HorizontalAlign="Center"></ItemStyle>
								<HeaderStyle HorizontalAlign="Center" Height="25px" CssClass="sys_grid_head_cell"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="ID" HeaderText="序号">
									</asp:BoundColumn>
									<asp:BoundColumn DataField="TYPE" SortExpression="TYPE" HeaderText="检查种类">
									</asp:BoundColumn>
									<asp:BoundColumn DataField="ITEM" SortExpression="ITEM" HeaderText="字段名">
									</asp:BoundColumn>
									<asp:BoundColumn DataField="item_name" SortExpression="item_name" HeaderText="检查项目名称">
									</asp:BoundColumn>
					   		        <asp:BoundColumn DataField="sort_id" SortExpression="sort_id" HeaderText="顺序号">
									</asp:BoundColumn>
								</Columns>
								<PagerStyle Visible="False"></PagerStyle>
							</asp:datagrid><uc1:pager id="Pager1" runat="server"></uc1:pager><INPUT id="hd" type="hidden" name="hd" runat="server">
                        <input id="hd1" runat="server" name="hd1" type="hidden" /></TD>
				</TR>
			</TABLE>
            &nbsp; &nbsp; &nbsp;&nbsp;
            
            <br />
            <table cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
                <tr>
                    <td ><asp:Label ID="Label1" runat="server" ForeColor="Red" Text="说明：字段名代表数据库中的“字段名称”，每种检查种类的字段名从R1,R2,R3...R30，不能重复，最多定义30个字段。"></asp:Label>
                    </td>
                </tr>
            </table>
		</form>
		<SCRIPT language="javascript">
	       <%=msg%>;

	       var s='<%=url%>';
            
            if (s!='')
	        {
	          window.showModalDialog('<%=url%>','','dialogWidth:450px;dialogHeight:250px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
              s='';
              window.location="fieldinfo.aspx?id="+document.getElementById('hd').value+"&tj="+document.getElementById('ddl_tj').value+"&value="+document.getElementById('tb_value').value+"&typeId="+document.getElementById('hd1').value;
             }
   	        function OnRowClickRefresh(s1,s2)
            {
               window.showModalDialog('../showModal.aspx?url='+s1+'?ID='+s2,'','dialogWidth:450px;dialogHeight:250px;help:no;status:no;dialogHide:yes;scrollbars:no;center:yes');
	           window.location="fieldinfo.aspx?id="+document.getElementById('hd').value+"&tj="+document.getElementById('ddl_tj').value+"&value="+document.getElementById('tb_value').value+"&typeId="+document.getElementById('hd1').value;
            }
   	      

		</SCRIPT>		
	</body>
</HTML>
