<%@ Page Language="c#" CodeBehind="StuProduct.aspx.cs" AutoEventWireup="True" Inherits="MTCUN.Mobile.Affairs.StuProduct"
    Title="已购项目-教务" %>

<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc2" %>
<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc1" %>
<%@ Register Src="../User_Col/col_StuControlPanel.ascx" TagName="col_StuControlPanel" TagPrefix="uc3" %>
<!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="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <form id="Form1" runat="server">
        <uc1:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">

                <uc3:col_StuControlPanel ID="col_StuControlPanel1" runat="server" />
                <div class="divpanel">

                    <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand"
                        OnItemDataBound="repBlock_ItemDataBound">
                        <ItemTemplate>

                            <div class="kuai">
                                <h1 class="auto_length_title">
                                    <asp:Label ID="labProductName" runat="server" Text='<%# Bind("ProductName") %>'></asp:Label>
                                </h1>

                                <table class="table" cellspacing="0" border="0" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
                                    <tr>
                                        <td style="width: auto">日期：</td>
                                        <td style="width: auto"><%#Eval("DateAndTime")%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">单号：</td>
                                        <td style="width: auto"><%# Eval("BillID") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">单价：</td>
                                        <td style="width: auto"><%# Eval("UnitPrice","{0:c2}") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">数量：</td>
                                        <td style="width: auto"><%# Eval("Amount") %><%# Eval("UnitName") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">优惠：</td>
                                        <td style="width: auto"><%# Eval("Favorable","{0:c2}") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">小计：</td>
                                        <td style="width: auto"><%# Eval("TotalPrice","{0:c2}") %></td>
                                    </tr>
                                </table>

                                <asp:Panel ID="plItem" runat="server">
                                    <table class="table_simple_kuan">
                                        <tr>
                                            <td style="width: 45px">类型：</td>
                                            <td>
                                                <table class="table_simple_kuan" runat="server" id="tbContinueReg">
                                                    <tr>
                                                        <td><%# Rs.Items.GetStuClassType(Eval("ContinueReg")) %></td>
                                                        <td>
                                                            <div class="lab_button" runat="server" id="divEdit">
                                                                <asp:LinkButton ID="lbnEdit" runat="server" CommandName="Edit" Text='修改' CommandArgument='<%#Eval("BillItemID") %>'></asp:LinkButton>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="plEdit" runat="server">
                                    <table class="table_simple_kuan">
                                        <tr>
                                            <td style="width: 45px">类型：</td>
                                            <td>

                                                <div class="striking">
                                                    <asp:DropDownList ID="ddlContinueReg" runat="server">
                                                        <asp:ListItem Value="-1">待定</asp:ListItem>
                                                        <asp:ListItem Value="0">试听</asp:ListItem>
                                                        <asp:ListItem Value="1" Selected="True">新增</asp:ListItem>
                                                        <asp:ListItem Value="2">续报</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <table class="table_simple_kuan">
                                                        <tr>
                                                            <td>
                                                                <div class="lab_button">
                                                                    <asp:LinkButton ID="lbnCancel" runat="server" CommandName="Cancel">取消</asp:LinkButton>
                                                                </div>
                                                            </td>
                                                            <td>
                                                                <div class="lab_button">
                                                                    <asp:LinkButton ID="lbnUpdate" runat="server" CommandName="Update" CommandArgument='<%#Eval("BillItemID") %>'>保存</asp:LinkButton>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>

                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>

                                <table class="table_simple_kuan">
                                    <tr>
                                        <td style="width: 45px">状态：
                                        </td>
                                        <td>
                                            <div class="lab_button statebg" runat="server" id="divState">
                                                <asp:HyperLink runat="server" ID="hlkState"></asp:HyperLink>
                                                <asp:LinkButton ID="lbnState" runat="server" CommandName="ChangeState" CommandArgument='<%#Eval("BillItemID") %>'></asp:LinkButton>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>

                        </ItemTemplate>
                    </asp:Repeater>
                </div>

                <div class="backpanel">
                    <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                        <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back(this)"
                            value="返回" />
                    </label>
                </div>

            </div>
        </div>
    </form>
</body>
</html>
