<%@ Page Language="c#" CodeBehind="Change.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Affairs.Change"
    Title="异动查询-教务" %>

<%@ Import Namespace="MTCUN" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <div class="tool_Search">
            校区：<asp:DropDownList ID="ddlSchool" DataTextField="SchoolName" DataValueField="SchoolID"
                runat="server">
            </asp:DropDownList>
            ID卡号：<asp:TextBox ID="tbxSignInID" runat="server"></asp:TextBox>
            学号：
        <asp:TextBox ID="tbxStudentID" runat="server" Width="97px"></asp:TextBox>姓名：<asp:TextBox
            ID="tbxStudentName" runat="server" Width="96px"></asp:TextBox>类型：
        <asp:DropDownList ID="ddlChangeType" runat="server">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem Value="3" Text="转班"></asp:ListItem>
            <asp:ListItem Value="4" Text="休学"></asp:ListItem>
            <asp:ListItem Value="5" Text="退学"></asp:ListItem>
            <asp:ListItem Value="6" Text="弃学"></asp:ListItem>
        </asp:DropDownList>
            <label class="lab_button">
                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>
            </label>
        </div>
        <div class="both">
        </div>
        <div class="divpanel">
            <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                DataKeyNames="ChangeID" OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="StudentID" ReadOnly="true" HeaderText="学号" />
                    <asp:TemplateField HeaderText="学员">
                        <ItemTemplate>
                            <%#Eval("StudentName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="类型">
                        <ItemTemplate>
                            <%#Rs.Items.GetScState(Eval("ChangeType"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="班级名称">
                        <ItemTemplate>
                            <%#Eval("ClassName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="DateAndTime" ReadOnly="true" DataFormatString="{0:d}"
                        HeaderText="办理时间" />
                    <asp:BoundField DataField="GetDateTime" ReadOnly="true" DataFormatString="{0:d}"
                        HeaderText="延期" />
                    <asp:BoundField DataField="NewStuClassID" ReadOnly="true" DataFormatString="{0:d}"
                        HeaderText="新班号" />
                    <asp:TemplateField HeaderText="详情及原因">
                        <ItemTemplate>
                            <%#swq.Tools.StrLen(Eval("Remark").ToString(),8)%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="TrueName" ReadOnly="true" HeaderText="录入员" />
                    <asp:TemplateField HeaderText="浏览">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divShow" runat="server">
                                <asp:HyperLink ID="hlkShow" runat="server" Text="浏览" NavigateUrl='<%# string.Format("ChangeShow.aspx?ChangeID={0}",Eval("ChangeID")) %>' />
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divEdit" runat="server">
                                <asp:HyperLink ID="hlkEdit" runat="server" Text="编辑" NavigateUrl='<%# string.Format("PostChange.aspx?ChangeID={0}&GetURL={1}",Eval("ChangeID"),swq.Web.PathAndQuery()) %>' />
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDelete" runat="server">
                                <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete" CommandArgument='<%#Eval("UserID")%>'
                                    OnClientClick="<%# Rs.Messages.确定删除%>"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="divpanel">
            <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
        </div>
    </form>
</body>
</html>
