<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BuyLessonsLog.aspx.cs"
    Inherits="SWTraining.Finance.BuyLessonsLog" Title="教务管理-查看学员已购产品" %>

<%@ Register Src="../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Import Namespace="SWTraining" %>
<!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 id="Head1" runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Orange/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class=divpanel>
        <asp:GridView ID="GridView1" runat="server" CssClass="gridview" AutoGenerateColumns="False"
            DataKeyNames="BillItemID" OnRowDataBound="GridView1_RowDataBound">
            <SelectedRowStyle CssClass="selected" />
            <Columns>
                <asp:TemplateField HeaderText="项目">
                    <ItemTemplate>
                        <asp:Label ID="labProductName" runat="server" Text='<%# Bind("ProductName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="日期">
                    <ItemTemplate>
                        <asp:Label ID="labDateAndTime" runat="server" Text='<%# Bind("DateAndTime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单号">
                    <ItemTemplate>
                        <asp:Label ID="labBillID" runat="server" Text='<%# Bind("BillID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="单价">
                    <ItemTemplate>
                        <asp:Label ID="labUnitPrice" runat="server" Text='<%# Bind("UnitPrice","{0:c2}") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="消费进度">
                    <ItemTemplate>
                        <uc1:Progress ID="Progress1" runat="server" Text="课时" MaxNum='<%#Eval("Amount") %>' MinNum='<%#Eval("CourseProgress") %>'
                            ProgressWidth="65%" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="退课时">
                    <ItemTemplate>
                        <asp:Label ID="labBackAmount" runat="server" Text='<%# Bind("BackAmount") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="backpanel">
        <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back()"
            value="返回" />
    </div>
    </form>
</body>
</html>
