<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataAnalysis.aspx.cs" Inherits="MTCUN.Admin.DataAnalysis" %>

<!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">
    <title>数据校正-系统</title>
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="borderc1" style="width: 90%; background-color: White; padding: 10px; margin-left: auto; margin-right: auto; margin-top: 20px; border-width: 1px">
            <asp:Label ID="labMsg" runat="server" Font-Bold="True" Font-Size="Larger" ForeColor="#006600"></asp:Label>
            <asp:Label ID="labLessonMsg" runat="server" Font-Bold="True" Font-Size="Larger" ForeColor="#006600"></asp:Label>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                OnRowDeleting="GridView1_RowDeleting" DataKeyNames="StuClassID" CssClass="gridview">
                <Columns>
                    <asp:BoundField DataField="StuClassID" HeaderText="选班号" />
                    <asp:BoundField DataField="StudentID" HeaderText="学号" />
                    <asp:BoundField DataField="StudentName" HeaderText="姓名" />
                    <asp:BoundField DataField="RealBuyLessons" HeaderText="实际购买课时" />
                    <asp:BoundField DataField="Lessons" HeaderText="选班课时" />
                    <asp:BoundField DataField="CourseProgress" HeaderText="已上课时" />
                    <asp:BoundField DataField="BackAmount" HeaderText="已退课时" />
                    <asp:TemplateField HeaderText="修复">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDelete" runat="server">
                                <asp:LinkButton ID="lbnDelete" runat="server" Text="修复" CommandName="delete"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Label ID="labLessonMsg1" runat="server" Font-Bold="True" Font-Size="Larger"
                ForeColor="#006600"></asp:Label>
            <br />
            <br />
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                OnRowDeleting="GridView2_RowDeleting" DataKeyNames="ClassID" CssClass="gridview">
                <Columns>
                    <asp:BoundField DataField="ClassID" HeaderText="班号" />
                    <asp:BoundField DataField="ClassName" HeaderText="班级名称" />
                    <asp:BoundField DataField="StuCount" HeaderText="人数" />
                    <asp:BoundField DataField="RealStuCount" HeaderText="实际人数" />
                    <asp:TemplateField HeaderText="修复">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDeletex" runat="server">
                                <asp:LinkButton ID="lbnDeletex" runat="server" Text="修复" CommandName="delete"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Label ID="labLessonMsg2" runat="server" Font-Bold="True" Font-Size="Larger"
                ForeColor="#006600"></asp:Label>
            <br />
            <br />
            <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                OnRowDeleting="GridView3_RowDeleting" DataKeyNames="PaymentID"
                CssClass="gridview">
                <Columns>
                    <asp:BoundField DataField="BillID" HeaderText="单号" />
                    <asp:BoundField DataField="StudentID" HeaderText="学号" />
                    <asp:BoundField DataField="StudentName" HeaderText="姓名" />
                    <asp:BoundField DataField="DateAndTime" HeaderText="消费单日期" />
                    <asp:BoundField DataField="Payment_DateAndTime" HeaderText="充值单日期" />
                    <asp:TemplateField HeaderText="类型">
                        <ItemTemplate>
                            <asp:Label ID="labBillTypeID" runat="server" Text='<%#(int)Eval("BillTypeID") == 1 ? "售出" : "退货"%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="金额">
                        <ItemTemplate>
                            <asp:Label ID="labPay" runat="server" Text='<%# Eval("Pay","{0:c2}") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="优惠">
                        <ItemTemplate>
                            <asp:Label ID="labFavourable" runat="server" Text='<%# Eval("Favourable","{0:c2}") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="修复">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDelete0" runat="server">
                                <asp:LinkButton ID="lbnDelete0" runat="server" Text="修复" CommandName="delete"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Label ID="labErrorMsg" runat="server" Font-Bold="True" Font-Size="Larger"
                ForeColor="#006600"></asp:Label>
            <br />
            <asp:GridView ID="gvErrorData" runat="server" AutoGenerateColumns="true" EnableModelValidation="True"
                CssClass="gridview" OnRowDeleting="gvErrorData_RowDeleting">
                <Columns>
                    <asp:TemplateField HeaderText="修复">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divDelete1" runat="server">
                                <asp:LinkButton ID="lbnDelete1" runat="server" Text="修复" CommandName="delete"></asp:LinkButton>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
        </div>
    </form>
</body>
</html>
