<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="yuekaokesi.aspx.cs" Inherits="jiaowu.jiaowu.yuekaokesi" %>

<%@ Register src="../fenye.ascx" tagname="fenye" tagprefix="uc2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD id="HEAD1" runat="server">
		<title>用户列表</title>
		<link href="../css/table.css" rel="stylesheet" type="text/css" />
		
        <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		 <script language="javascript" src="../js/common.js"></script>
	    <style type="text/css">
            .style1
            {
                color: #FF0000;
            }
        </style>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">	
		        <div class="place">
                    <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px" Width="309px">
                    </asp:SiteMapPath>
    </div>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr align="right">
                <td  width="95%"><asp:CheckBox ID="CheckBox2" runat="server" 
            AutoPostBack="True" oncheckedchanged="CheckBox2_CheckedChanged" Text="全选" />
        <img height="14" src="../images/001.gif" width="14" />
        <asp:LinkButton ID="lbadd" runat="server" PostBackUrl="kesiyue.aspx" Text="新增">新增</asp:LinkButton>
        <img height="14" src="../images/010.gif" width="14" />
        <asp:LinkButton ID="lbdel" runat="server" onclick="LinkButton1_Click" 
            OnClientClick="return confirm('确定删除吗？无法恢复！')">删除</asp:LinkButton>
                    &nbsp;<img alt="" src="../images/excel.gif" style="width: 16px; height: 16px" /><asp:LinkButton 
                        ID="lbtnOut" runat="server" onclick="lbtnOut_Click">受理并打印</asp:LinkButton>&nbsp;</td>
            </tr>
        </table>
		        <table class="line_table">
                    
                    <tr>
                        <td align="right">
                            校区</td>
                        <td align="left">
              <asp:DropDownList ID="ddlfenxiao" runat="server" AppendDataBoundItems="true">
              <asp:ListItem Value="">不限</asp:ListItem>
              </asp:DropDownList>
                        </td>
                        <td align="right"> 姓名</td>
                            &nbsp;<td align="left">
                <asp:TextBox ID="txtxm" runat="server"></asp:TextBox>
                        </td>
                        <td align="right">
                            报考车型</td>
                        <td align="left">
                <asp:DropDownList ID="ddlchexing" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Value="">请选择车型</asp:ListItem>
                   
                </asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="right">
                            约考日期</td>
                        <td align="left">
                            <asp:TextBox ID="txtbaoming" runat="server" onfocus="WdatePicker()"></asp:TextBox></td>
   <td>受理状态</td>
                            <td align="left">
                <asp:RadioButtonList ID="rblisshouli" runat="server" RepeatDirection="Horizontal" 
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0" Selected="True">未受理</asp:ListItem>
                    <asp:ListItem Value="1">已受理</asp:ListItem>
                </asp:RadioButtonList>
                              </td>
                        <td align="right">
                            报考类型</td>
                        <td align="left">
                <asp:RadioButtonList ID="rblleixing" runat="server" RepeatDirection="Horizontal" 
                    RepeatLayout="Flow">
                    <asp:ListItem Selected="True" Value="">不限</asp:ListItem>
                    <asp:ListItem>初次</asp:ListItem>
                    <asp:ListItem>增驾</asp:ListItem>
                </asp:RadioButtonList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td  colspan="6">
                            <span class="center_title_1">
                            <asp:Button ID="btnSel" runat="server" Text="搜索" onclick="btnSel_Click" />
                                <asp:Label ID="lblmsg" runat="server" Text=""></asp:Label>
                            </span></td>
                    </tr>
                    </table>
		<br>
					<asp:GridView ID="gdv" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False"
                        CssClass="sys_grid"  OnSorting="gdv_Sorting" 
            OnRowDeleting="gdv_RowDeleting"  Width="100%" EmptyDataText="没有或没有符合条件的学生约考信息！">
                        <HeaderStyle CssClass="sys_grid_head_cell"/>
                        <Columns>
                            <asp:TemplateField HeaderText="全选">
                            <ItemTemplate>
                             <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            </asp:TemplateField>  
                             <asp:BoundField DataField="fenxiao" HeaderText="分校" SortExpression="fenxiao" />                     
                            <asp:BoundField DataField="shijian" HeaderText="约考时间" SortExpression="shijian" DataFormatString="{0:yyyy-MM-dd}"/>
                            <asp:TemplateField HeaderText="姓名">
                            <ItemTemplate><a href="../student/stuview.aspx?id=<%#Eval("id") %>"><%#Eval("stuxm").ToString() %></a>
                            </ItemTemplate></asp:TemplateField>     
                            <asp:BoundField DataField="card" HeaderText="身份证号" SortExpression="card" />                    
                            <asp:BoundField DataField="tel" HeaderText="电话" SortExpression="tel" />  
                            <asp:BoundField DataField="leixing" HeaderText="报考类型" SortExpression="leixing" /> 
                            <asp:BoundField DataField="chexing" HeaderText="报考车型" SortExpression="chexing" /> 
                            <asp:BoundField DataField="kemu" HeaderText="约考科目" SortExpression="kemu" />   
                            <asp:TemplateField HeaderText="受理状态" SortExpression="shouli">
                            <ItemTemplate>
                           <%#Eval("isshouli").ToString() == "0" ? "未受理" : "<font color=green>已受理</font>"%></a>
                            </ItemTemplate></asp:TemplateField> 
                            <asp:CommandField HeaderText="删除" ShowCancelButton="False" 
                                ShowDeleteButton="True"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; "/>
                        </Columns>                        
                        <PagerSettings Visible="False" />
                        <RowStyle HorizontalAlign="Center" Height="25px" />
                    </asp:GridView>
                    </TD>
				</TR>
				<TR>
					<TD vAlign="top">
						<INPUT id="hd" type="hidden" name="hd" runat="server">
                        <uc2:fenye ID="fenye1" runat="server" />
                    </TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
