<%@ page language="C#" masterpagefile="~/Member/MyShopMasterPage.master" autoeventwireup="true" inherits="Member_StockManage_StockNumber, WebApp_deploy" title="库存状况表" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="pageTitle" style="line-height: 30px; vertical-align: middle;">
        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server">库存状况表</asp:Literal></div>
    <div id="MainMenu">
        <div class="TabText">
            <div style="line-height: 2px;">
                &nbsp;</div>
            <table class="SearchTableStyle">
                <tr>
                    <th colspan="2" style="float: left; text-align: left">
                        &nbsp;<b>查询：</b>
                    </th>
                </tr>
                <tr>
                    <td>
                        &nbsp;商品类型：&nbsp;<asp:DropDownList ID="ddlProdcutType" runat="server">
                            <asp:ListItem Value="0">全部</asp:ListItem>
                            <asp:ListItem Value="1">一口价</asp:ListItem>
                            <asp:ListItem Value="2">拍卖</asp:ListItem>
                            <asp:ListItem Value="3">团购</asp:ListItem>
                            <asp:ListItem Value="4">促销(秒杀)</asp:ListItem>
                            <asp:ListItem Value="5">积分商品</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;<asp:DropDownList ID="ddlDetailSearchType" runat="server" AppendDataBoundItems="True">
                            <asp:ListItem Selected="True" Value="product_name" Text="按商品名称" />
                            <asp:ListItem Value="product_class" Text="按商品分类" />
                        </asp:DropDownList>
                        &nbsp;
                        <asp:TextBox ID="DetailSearchName" runat="server" Width="150px" AutoPostBack="false" />
                        &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table class="rptrow" cellspacing="0" cellpadding="0">
                        <tr>
                            <th>
                                行号
                            </th>
                            <th>
                                货号
                            </th>
                            <th>
                                名称
                            </th>
                            <th>
                                商品分类
                            </th>
                            <th>
                                商品类型
                            </th>
                            <th>
                                单位
                            </th>
                            <th>
                                数量
                            </th>
                            <th>
                                价格
                            </th>
                            <th>
                                金额
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr style="cursor: pointer" onclick="javascript:window.location.href ='StockNumberDetail.aspx?ProductID=<%#Eval("ProductID") %>'"
                        onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E7EDFE'"
                        onmouseout="this.style.backgroundColor=c;">
                        <td align="center">
                            <asp:Label ID="lblRow" runat="server"></asp:Label>
                        </td>
                        <td align="left" style="padding: 0px 2px 0px 6px;" width="16%">
                            <%# Eval("Goods_serial")%>
                        </td>
                        <td align="left" style="padding: 0px 2px 0px 6px; width: 20%;">
                            <%#Eval("ProductName")%>
                        </td>
                        <td>
                            <%#Eval("ClassName")==DBNull.Value?"":Eval("ClassName") %>
                        </td>
                        <td>
                            <%# HoWave.Web.Shop.TextFormat.GetProductType(Eval("ProductType").ToString())%>
                        </td>
                        <td>
                            <%# Eval("PUnit") %>
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <%#Eval("Stocks")%>
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <%# Eval("StandPrice") %>
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <asp:HiddenField ID="hfCount" runat="server" Value='<%# Eval("Stocks") %>' />
                            <asp:HiddenField ID="hfStandPrice" runat="server" Value='<%# Eval("StandPrice") %>' />
                            <asp:Label ID="lblMoney" runat="server" ForeColor="Green"></asp:Label>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr class="rptrowTrBg">
                        <td align="center">
                            合计
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <asp:Label ID="lblTotalCount" runat="server" ForeColor="Black"></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right" style="padding-right: 6px;">
                            <asp:Label ID="lblTotalMoney" runat="server" ForeColor="Green"></asp:Label>
                        </td>
                    </tr>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div style="text-align: center;">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal></div>
            <div style="line-height: 6px;">
                &nbsp;</div>
        </div>
    </div>
</asp:Content>
