<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_Stock_StockNumberDetail, WebApp_deploy" title="库存明细信息" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="MainMenu">
        <div class="TabText">
            <table class="nick" id="table_item" runat="server">
                <tr>
                    <td class="tit left1">
                        &nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server">商品库存变动明细信息</asp:Literal>
                    </td>
                </tr>
            </table>
            <table class="nick">
                <tr>
                    <td colspan="4" class="tit">
                        &nbsp;高级查询：
                    </td>
                </tr>
                <tr>
                    <td class="ltd" style="width:80px;">
                        &nbsp;时间：
                    </td>
                    <td class="rtd" style="width: 280px;">
                        &nbsp;<asp:TextBox ID="txtSearchBeginDate" runat="server" onfocus="WdatePicker()"
                            CssClass="Wdate" Width="100px"></asp:TextBox>
                        &nbsp;至：&nbsp;<asp:TextBox ID="txtSearchEndDate" runat="server" onfocus="WdatePicker()"
                            CssClass="Wdate" Width="100px"></asp:TextBox>
                    </td>
                    <td class="ltd" style="width:80px;">
                        &nbsp;单据编号：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchInfoNumber" CausesValidation="false" runat="server"
                            Width="200px"></asp:TextBox>
                        &nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table class="adminlist" cellspacing="0" cellpadding="0">
                        <tr>
                            <th>
                                行号
                            </th>
                            <th>
                                日期
                            </th>
                            <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 align="center">
                            <asp:Label ID="lblRow" runat="server"></asp:Label>
                        </td>
                        <td>
                            <%#Eval("StockDate").ToString()==""?"&nbsp;":Eval("StockDate")%>
                        </td>
                        <td align="left" style="padding: 0px 2px 0px 6px">
                            <%#Eval("InfoNumber")%>
                        </td>
                        <td align="left" style="padding: 0px 2px 0px 6px">
                            <%# Eval("Goods_serial")%>
                        </td>
                        <td align="left" style="padding: 0px 2px 0px 6px; width: 20%;">
                            <%#Eval("ProductName")%>
                        </td>
                        <td align="left" style="padding: 0px 2px 0px 6px">
                            <%# HoWave.Web.Shop.TextFormat.GetProductType(Eval("ProductType").ToString())%>
                        </td>
                        <td>
                            <%# Eval("Unit")%>
                        </td>
                        <td align="right">
                            <asp:Label ID="lblStockCount" runat="server"></asp:Label>&nbsp;&nbsp;
                        </td>
                        <td align="right">
                            <%# Eval("Price") %>&nbsp;&nbsp;
                        </td>
                        <td align="right">
                            <asp:HiddenField ID="hfStockStatus" runat="server" Value='<%# Eval("StockStatus") %>' />
                            <asp:HiddenField ID="hfCount" runat="server" Value='<%# Eval("StockCount") %>' />
                            <asp:HiddenField ID="hfStandPrice" runat="server" Value='<%# Eval("Price") %>' />
                            <asp:Label ID="lblMoney" runat="server" ForeColor="Green"></asp:Label>
                            &nbsp;&nbsp;
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr>
                        <td align="center">
                            合计
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblTotalCount" runat="server" ForeColor="Black"></asp:Label>&nbsp;&nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblTotalMoney" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                        </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>
    </div>
</asp:Content>
