<%@ page language="C#" masterpagefile="~/Member/MyShopMasterPage.master" autoeventwireup="true" inherits="Member_StockManage_DepotListTotal, WebApp_deploy" title="报损单汇总表" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
    </asp:ScriptManager>
    <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>
            <div style="line-height: 2px;">
                &nbsp;</div>
            <%--列表 begin--%>
            <asp:Panel ID="pnlManage" runat="server">
                <table class="SearchTableStyle">
                    <tr>
                        <th colspan="3" style="float: left; text-align: left">
                            &nbsp;<b>高级查询：</b>
                        </th>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;时间：&nbsp;<asp:TextBox ID="txtSearchBeginDate" runat="server" onfocus="WdatePicker()"
                                CssClass="Wdate"></asp:TextBox>
                            &nbsp;&nbsp;至&nbsp;&nbsp;<asp:TextBox ID="txtSearchEndDate" runat="server" onfocus="WdatePicker()"
                                CssClass="Wdate"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;商品编号：<asp:TextBox ID="txtSearchInfoNumber" CausesValidation="false" runat="server"
                                Width="200px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>
                <asp:UpdatePanel ID="upList" runat="server">
                    <ContentTemplate>
                        <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>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E7EDFE'"
                                    onmouseout="this.style.backgroundColor=c;">
                                    <td>
                                        <asp:HiddenField ID="hfProductID" runat="server" Value='<%#Eval("ProductID") %>' />
                                        <asp:HyperLink ID="hlGoods_serial" runat="server" Text='<%# Eval("Goods_serial") %>'></asp:HyperLink>
                                    </td>
                                    <td align="left" style="padding: 0px 2px 0px 6px">
                                        <%# Eval("ProductName")%>
                                    </td>
                                    <td>
                                        <%# HoWave.Web.Shop.TextFormat.GetProductType(Eval("ProductType").ToString())%>
                                    </td>
                                    <td>
                                        <%#Eval("Unit")%>
                                    </td>
                                    <td align="right">
                                        <%#Eval("Price")%>&nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                        <%#Eval("StockCount")%>&nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                        <asp:HiddenField ID="hfPrice" runat="server" Value='<%# Eval("Price") %>' />
                                        <asp:HiddenField ID="hfStockCount" runat="server" Value='<%# Eval("StockCount") %>' />
                                        <asp:Label ID="lblMoney" runat="server"></asp:Label>&nbsp;&nbsp;
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                <tr>
                                    <td>
                                        合计
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblFootCount" runat="server"></asp:Label>&nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblFootMoney" runat="server"></asp:Label>&nbsp;&nbsp;
                                    </td>
                                </tr>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
            <%--列表 end--%>
            <%--详细信息 begin--%>
            <asp:Panel ID="pnlDetail" runat="server">
                <asp:Repeater ID="rptItemInfo" runat="server">
                    <HeaderTemplate>
                        <table class="rptrow" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <th>
                                    日期
                                </th>
                                <th>
                                    单据编号
                                </th>
                                <th>
                                    商品编号
                                </th>
                                <th>
                                    商品名称
                                </th>
                                <th>
                                    单位
                                </th>
                                <th>
                                    数量
                                </th>
                                <th>
                                    价格
                                </th>
                                <th>
                                    金额
                                </th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E7EDFE'"
                            onmouseout="this.style.backgroundColor=c;">
                            <td>
                                <%#Eval("StockDate")%>
                            </td>
                            <td>
                                <asp:HyperLink ID="hlInfoNumber" runat="server" Text='<%# Eval("InfoNumber") %>'
                                    NavigateUrl='<%# "~/Member/StockManage/DepotListManage.aspx?stockType="+Eval("StockOrderType")+"&Action=checkinfo&infoOrderID="+ Eval("InfoOrderID")%>'></asp:HyperLink>
                            </td>
                            <td>
                                <%#Eval("Goods_serial") %>
                            </td>
                            <td>
                                <%#Eval("ProductName") %>
                            </td>
                            <td>
                                <%# Eval("Unit") %>
                            </td>
                            <td align="right" style="padding: 0px 6px 0px 2px">
                                <%# Eval("StockCount") %>
                            </td>
                            <td align="right" style="padding: 0px 6px 0px 2px">
                                <%# Eval("Price") %>
                            </td>
                            <td align="right" style="padding: 0px 6px 0px 2px">
                                <asp:HiddenField ID="hfItemPrice" runat="server" Value='<%#Eval("Price") %>' />
                                <asp:HiddenField ID="hfItemStockCount" runat="server" Value='<%#Eval("StockCount") %>' />
                                <asp:Label ID="lblItemMoney" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <tr>
                            <td>
                                合计
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td align="right" style="padding: 0px 6px 0px 2px">
                                <asp:Label ID="lblItemFootStockCount" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td align="right" style="padding: 0px 6px 0px 2px">
                                <asp:Label ID="lblItemFootMoney" runat="server"></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>
            </asp:Panel>
            <%--详细信息 end--%>
            <div style="line-height: 6px;">
                &nbsp;</div>
        </div>
    </div>
</asp:Content>
