<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../modules/Pager.ascx" %>
<%@ Register Assembly="DundasWebChart" Namespace="Dundas.Charting.WebControl" TagPrefix="dcwc" %>
<%@ Page language="c#" Codebehind="jktj.aspx.cs" AutoEventWireup="True" Inherits="health.aspx.jktj" %>

<HTML>
	<HEAD>
		<title>jktj</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">
			<FONT face="宋体">
				<br>
				<TABLE class="sys_grid" id="Table4" cellSpacing="0" cellPadding="0" width="98%" border="0"
					align="center">
					<TR>
						<TD class="sys_grid_head_cell"><FONT face="宋体">信息统计</FONT></TD>
					</TR>
					<TR>
						<TD>
							<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TR>
									<TD style="WIDTH: 10%">&nbsp; 统计类型</TD>
									<TD style="WIDTH: 130px"><asp:dropdownlist id="ddl_type" runat="server" AutoPostBack="True" Width="112px" onselectedindexchanged="ddl_type_SelectedIndexChanged">
											<asp:ListItem></asp:ListItem>
											<asp:ListItem Value="血型统计">血型统计</asp:ListItem>
											<asp:ListItem Value="性别统计">性别统计</asp:ListItem>
											<asp:ListItem Value="体检统计">体检统计</asp:ListItem>
										</asp:dropdownlist></TD>
									<TD><INPUT class="sys_button" id="btnsearch" style="WIDTH: 60px" type="button" value="查 询"
											name="Button1" runat="server" onserverclick="btnsearch_ServerClick">
										<asp:button id="btnreset" runat="server" Width="60px" Height="22px" Text="重 置" CssClass="sys_button"></asp:button></TD>
								</TR>
							</TABLE>
						</TD>
					</TR>
					<TR>
						<TD class="sys_grid_head_cell"><FONT face="宋体">统计条件</FONT></TD>
					</TR>
					<TR>
						<TD><FONT face="宋体">
								<TABLE class="sys_grid" id="Table5" cellSpacing="1" cellPadding="1" width="100%" border="1">
									<TR>
										<TD width="10%" style="height: 24px"><FONT face="宋体">&nbsp;
												<asp:label id="Label3" runat="server" ForeColor="Navy">员工部门</asp:label></FONT></TD>
										<TD width="30%" style="height: 24px"><asp:dropdownlist id="ddl_dept" runat="server" Width="115px">
												<asp:ListItem Value=" ">aa</asp:ListItem>
											</asp:dropdownlist></TD>
										<asp:panel id="Panel2" runat="server"></asp:panel>
										<TD width="10%" style="height: 24px"><FONT face="宋体">&nbsp;</FONT></TD>
										<TD width="20%" style="height: 24px"></TD>
										<TD align="center" width="10%" style="height: 24px"></TD>
										<TD width="20%" style="height: 24px"></TD>
									</TR>
									<TR>
										<TD style="HEIGHT: 21px" width="10%"><FONT face="宋体">&nbsp; </FONT>
											<asp:label id="Label11" runat="server" ForeColor="Navy">选择字段</asp:label></TD>
										<TD style="HEIGHT: 21px" width="30%"><asp:dropdownlist id="ddl_field1" runat="server" Width="115px">
												<asp:ListItem></asp:ListItem>
												<asp:ListItem Value="u.sex">性别</asp:ListItem>
												<asp:ListItem Value="u.job_date">工作时间</asp:ListItem>
												<asp:ListItem Value="u.birth_date">出生日期</asp:ListItem>
												<asp:ListItem Value="u.work_type">工作岗位</asp:ListItem>
												<asp:ListItem Value="u.blood">血型</asp:ListItem>
												<asp:ListItem Value="u.health">健康状况</asp:ListItem>
												<asp:ListItem Value="p.result">体检结论</asp:ListItem>
											</asp:dropdownlist></TD>
										<TD style="HEIGHT: 21px" width="10%"><FONT face="宋体">&nbsp; </FONT>
											<asp:label id="Label12" runat="server" ForeColor="Navy">操作符</asp:label></TD>
										<TD style="HEIGHT: 21px" width="20%"><asp:dropdownlist id="ddl_tj1" runat="server" Width="115px" CausesValidation="True">
												<asp:ListItem Value="like">好像</asp:ListItem>
												<asp:ListItem Value="=">等于</asp:ListItem>
												<asp:ListItem Value="&gt;">大于</asp:ListItem>
												<asp:ListItem Value="&gt;=">大于等于</asp:ListItem>
												<asp:ListItem Value="&lt;">小于</asp:ListItem>
												<asp:ListItem Value="&lt;=">小于等于</asp:ListItem>
												<asp:ListItem Value="&lt;&gt;">不等于</asp:ListItem>
											</asp:dropdownlist></TD>
										<TD style="HEIGHT: 21px" width="10%"><FONT face="宋体">&nbsp; </FONT>
											<asp:label id="Label13" runat="server" ForeColor="Navy">字段值</asp:label></TD>
										<TD style="HEIGHT: 21px" width="20%"><asp:textbox id="tb_value1" runat="server" Width="115px" CssClass="stringedit"></asp:textbox></TD>
									</TR>
									<asp:panel id="Panel1" runat="server">
										<TR>
											<TD style="HEIGHT: 20px" width="10%">&nbsp;
												<asp:label id="Label2" runat="server" ForeColor="Navy">体检日期</asp:label></TD>
											<TD style="HEIGHT: 20px" width="30%" colSpan="5"><INPUT CssClass="stringedit" id="tb_check_date" style="width:115px"  type="text" name="tb_check_date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
													runat="server">&nbsp; 至 &nbsp;<INPUT CssClass="stringedit" id="tb_check_date_to" style="width:115px" type="text" name="tb_check_date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
													runat="server"> &nbsp; </TD>
										</TR>
										<TR>
											<TD width="10%"><FONT face="宋体">&nbsp;
													<asp:label id="Label4" runat="server" ForeColor="Navy">体检种类</asp:label></FONT></TD>
											<TD width="30%">
												<asp:dropdownlist id="ddl_pro_property" runat="server" Width="115px" AutoPostBack="True" CssClass="comble" onselectedindexchanged="ddl_pro_property_SelectedIndexChanged">
													<asp:ListItem></asp:ListItem>
												</asp:dropdownlist>
												<asp:dropdownlist id="ddl_pro_property_old" runat="server" Width="115px">
													<asp:ListItem></asp:ListItem>
												</asp:dropdownlist></TD>
											<TD width="10%"><FONT face="宋体">&nbsp;
													<asp:label id="Label9" runat="server" ForeColor="Navy">操作符</asp:label></FONT></TD>
											<TD width="20%">
												<asp:dropdownlist id="ddl_tj" runat="server" Width="115px" CssClass="comble">
													<asp:ListItem Value="like">好像</asp:ListItem>
													<asp:ListItem Value="=">等于</asp:ListItem>
													<asp:ListItem Value="&gt;">大于</asp:ListItem>
													<asp:ListItem Value="&gt;=">大于等于</asp:ListItem>
													<asp:ListItem Value="&lt;">小于</asp:ListItem>
													<asp:ListItem Value="&lt;=">小于等于</asp:ListItem>
													<asp:ListItem Value="&lt;&gt;">不等于</asp:ListItem>
												</asp:dropdownlist></TD>
											<TD width="10%"><FONT face="宋体">&nbsp; </FONT>
												<asp:label id="Label10" runat="server" ForeColor="Navy">字段值</asp:label></TD>
											<TD width="20%">
												<asp:textbox id="tb_value" runat="server" Width="115px" CssClass="stringedit"></asp:textbox></TD>
										</TR>
									</asp:panel></TABLE>
							</FONT>
						</TD>
					</TR>
					<TR>
						<TD align="center"><FONT face="宋体">
								<TABLE id="Table3" cellSpacing="0" cellPadding="0" width="100%" border="0">
									<TR>
										<TD align="center">
                                            <dcwc:Chart ID="ctTJ" runat="server" BackColor="WhiteSmoke" BackGradientEndColor="White"
                                                BackGradientType="DiagonalLeft" BorderLineColor="26, 59, 105" BorderLineStyle="Solid"
                                                Palette="Dundas" Visible=False>
                                                <Legends>
                                                    <dcwc:Legend BackColor="White" BorderColor="26, 59, 105" DockToChartArea="Default"
                                                        Enabled="False" LegendStyle="Column" Name="Default" ShadowOffset="2">
                                                    </dcwc:Legend>
                                                </Legends>
                                                <BorderSkin FrameBackColor="CornflowerBlue" FrameBackGradientEndColor="CornflowerBlue"
                                                    PageColor="Control" SkinStyle="Emboss" />
                                                <Titles>
                                                    <dcwc:Title Name="Title1" Text="体检统计">
                                                    </dcwc:Title>
                                                </Titles>
                                                <Series>
                                                    <dcwc:Series BorderColor="26, 59, 105" BorderWidth="2" ChartType="Line" CustomAttributes="LabelStyle=Top" Name="Series1" ShadowOffset="2" ShowLabelAsValue="True" XValueType="DateTime">
                                                    </dcwc:Series>
                                                </Series>
                                                <ChartAreas>
                                                    <dcwc:ChartArea BackColor="White" BorderColor="26, 59, 105" BorderStyle="Solid" Name="Default"
                                                        ShadowOffset="2">
                                                        <AxisY Title="数量">
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisY>
                                                        <AxisX Title="年份">
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                            <LabelStyle Format="d" />
                                                        </AxisX>
                                                        <AxisX2>
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisX2>
                                                        <AxisY2>
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisY2>
                                                        <Area3DStyle Light="Realistic" />
                                                    </dcwc:ChartArea>
                                                </ChartAreas>
                                            </dcwc:Chart>
                                            <dcwc:Chart ID="ctSEX" runat="server" Palette="Pastel" Visible="False">
                                                <Legends>
                                                    <dcwc:Legend Docking="Left" LegendStyle="Column" Name="Default" BackColor="White"  BorderColor="26, 59, 105" ShadowOffset="2">
                                                    </dcwc:Legend>
                                                </Legends>
                                                <Titles>
                                                    <dcwc:Title Font="Microsoft Sans Serif, 8.25pt, style=Bold" Name="Title1" Text="性别统计">
                                                    </dcwc:Title>
                                                </Titles>
                                                <Series>
                                                    <dcwc:Series BorderColor="64, 64, 64" ChartType="Pie" Name="Series1" ShadowOffset="1"
                                                        ShowLabelAsValue="True">
                                                    </dcwc:Series>
                                                </Series>
                                                <ChartAreas>
                                                    <dcwc:ChartArea BorderColor="" Name="Default">
                                                        <Area3DStyle Enable3D="True" />
                                                    </dcwc:ChartArea>
                                                </ChartAreas>
                                            </dcwc:Chart>
                                            &nbsp;
                                            <dcwc:Chart ID="ctBOOLD" runat="server" BackColor="WhiteSmoke" BackGradientEndColor="White"
                                                BackGradientType="DiagonalLeft" BorderLineColor="26, 59, 105" BorderLineStyle="Solid"
                                                Palette="Dundas" Visible=False>
                                                <Legends>
                                                    <dcwc:Legend BackColor="White" BorderColor="26, 59, 105" Enabled="False" Name="Default"
                                                        ShadowOffset="2">
                                                    </dcwc:Legend>
                                                </Legends>
                                                <BorderSkin FrameBackColor="CornflowerBlue" FrameBackGradientEndColor="CornflowerBlue"
                                                    PageColor="Control" SkinStyle="Emboss" />
                                                <Titles>
                                                    <dcwc:Title Name="Title1" Text="血型统计">
                                                    </dcwc:Title>
                                                </Titles>
                                                <Series>
                                                    <dcwc:Series BorderColor="26, 59, 105" CustomAttributes="PieLabelStyle=Inside, LabelStyle=Top"
                                                        Name="Series1" ShadowOffset="2" ShowLabelAsValue="True">
                                                    </dcwc:Series>
                                                </Series>
                                                <ChartAreas>
                                                    <dcwc:ChartArea BackColor="White" BorderColor="26, 59, 105" BorderStyle="Solid" Name="Default"
                                                        ShadowOffset="2">
                                                        <AxisY Title="数量">
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisY>
                                                        <AxisX Title="血型">
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisX>
                                                        <AxisX2>
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisX2>
                                                        <AxisY2>
                                                            <MajorGrid LineColor="Silver" />
                                                            <MinorGrid LineColor="Silver" />
                                                        </AxisY2>
                                                        <Area3DStyle Light="Realistic" />
                                                    </dcwc:ChartArea>
                                                </ChartAreas>
                                            </dcwc:Chart>                                            
                                        </TD>
										<TD><asp:datagrid id="DataGrid2" runat="server" CssClass="sys_grid" Width="165px">
												<HeaderStyle CssClass="sys_grid_head_cell"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center" />
											</asp:datagrid></TD>
									</TR>
								</TABLE>
							</FONT>
						</TD>
					</TR>
					<TR>
						<TD style="height: 12px"><asp:label id="lblmy" runat="server" Visible="False"></asp:label></TD>
					</TR>
				</TABLE>
			</FONT>
		</form>
		<SCRIPT language="javascript">
			  <%=msg%>
		       var s='<%=url%>';
		       if (s!='')
	       {
 	          window.showModalDialog('<%=url%>','','dialogWidth:624px;dialogHeight:300px;help:no;status:no;dialogHide:yes;scrollbars:no');
              s='';
                    
           }
		</SCRIPT>
	</body>
</HTML>
