{layout:simple} {class:Shop.Admin.product.product_sales_window}
<lbbody>
    <div class="modal-header">
        <h4 class="modal-title"><%=Tag("销量")%></h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
    </div>
    <div class="modal-body" style="max-height:500px;overflow-y:auto;">
        <table class="table table-hover no-wrap">
            <thead>
                <tr class="no-wrap">
                    <th>
                        <%=Tag("订购日期")%>
                    </th>
                    <th>
                        <%=Tag("订单编号")%>
                    </th>
                    <th>
                        <%=Tag("商品编号")%>
                    </th>
                    <th>
                        <%=Tag("订购数量")%>
                    </th>
                    <th>
                        <%=Tag("已发数量")%>
                    </th>
                    <th>
                        <%=Tag("单价")%>
                    </th>
                    <th>
                        <%=Tag("小计")%>
                    </th>
                </tr>
            </thead>
            <tbody>
                <%
                int count = 0; int count_shipped = 0; decimal price = 0; decimal money = 0;
                foreach (DB.LebiShop.Lebi_Order_Product pro in pros){
                count = count + pro.Count;
                count_shipped = count_shipped + pro.Count_Shipped;
                price = price + pro.Price;
                money = money + pro.Money;
                %>
                <tr>
                    <td>
                        <%=pro.Time_Add%>
                    </td>
                    <td>
                        <%=pro.Order_Code%>
                    </td>
                    <td>
                        <%=pro.Product_Number%>
                    </td>
                    <td>
                        <%=pro.Count%>
                    </td>
                    <td>
                        <%=pro.Count_Shipped%>
                    </td>
                    <td>
                        <%=FormatMoney(pro.Price)%>
                    </td>
                    <td>
                        <%=FormatMoney(pro.Money)%>
                    </td>
                </tr>
                <%} %>
                <tr>
                    <td>
                        <%=Tag("合计")%>
                    </td>
                    <td></td>
                    <td></td>
                    <td>
                        <strong><%=count%></strong>
                    </td>
                    <td>
                        <strong><%=count_shipped%></strong>
                    </td>
                    <td>
                        <strong><%=FormatMoney(price)%></strong>
                    </td>
                    <td>
                        <strong><%=FormatMoney(money)%></strong>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="ti-close"></i> <%=Tag("关闭")%></button>
    </div>
</lbbody>