<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_Stock_DepotListManage, 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>
            <%--列表 begin--%>
            <asp:Panel ID="pnlManage" runat="server">
                <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">
                            &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>
                </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>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E7EDFE'"
                            onmouseout="this.style.backgroundColor=c;">
                            <td>
                                <asp:HyperLink ID="hlInfoNumber" runat="server" Text='<%# Eval("InfoNumber") %>'
                                    NavigateUrl='<%# "Admin_Stock_DepotListManage.aspx?stockType="+Eval("StockOrderType")+"&action=checkinfo&infoOrderID="+ Eval("InfoOrderID")%>'></asp:HyperLink>
                            </td>
                            <td>
                                <%# Eval("StockDate")%>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblMoney" runat="server" Text='<%#Eval("TotalMoney") %>'></asp:Label>&nbsp;&nbsp;
                            </td>
                            <td>
                                <%# HoWave.Data.Bll.BLLInstance.BllStockInfoOrder.GetStockStatusStrMark(Eval("StockStatus"))%>
                            </td>
                            <td>
                                <%#Eval("Inputer")%>
                            </td>
                            <td>
                                <%# Eval("Remark").ToString() == "" ? "&nbsp;" : Eval("Remark")%>
                            </td>
                            <td>
                                &nbsp;<a href='Admin_Stock_DepotListManage.aspx?stockType=<%#Eval("StockOrderType") %>&action=checkinfo&infoOrderID=<%# Eval("InfoOrderID") %>'>
                                    详细</a>&nbsp;
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <tr>
                            <td>
                                合计
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td align="right">
                                <asp:Label ID="lblFootMoney" runat="server"></asp:Label>&nbsp;&nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &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>
            </asp:Panel>
            <%--列表 end--%>
            <%--详细信息 begin--%>
            <asp:Panel ID="pnlDetail" runat="server">
                <table class="nick">
                    <tr>
                        <td colspan="4" class="tit">
                            详细信息
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            单据编号 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblStockNumber" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            <asp:Label ID="lblStockTypeC" runat="server">出库类型 ：</asp:Label>
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblStockTypeStatue" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            记录时间 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblInputTime" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            记录人 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblInputer" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            金额 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblMoneyTotalC" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            状态 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblStatus" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            说明 ：
                        </td>
                        <td colspan="3" class="rtd">
                            <asp:Label ID="lblRemarks" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:GridView ID="gvItem" CssClass="adminlist" runat="server" RowStyle-HorizontalAlign="Center"
                                AutoGenerateColumns="false" Width="100%">
                                <Columns>
                                    <asp:TemplateField HeaderText="商品图片">
                                        <ItemTemplate>
                                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# (Convert.ToString(Eval("ProductSmallImageUrl"))==""?"~/Images/show_nopic.gif":"~/"+Eval("ProductSmallImageUrl").ToString()) %>'
                                                Height="80px" Width="80px" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="商品名称" DataField="ProductName"></asp:BoundField>
                                    <asp:BoundField HeaderText="数量" DataField="StockCount">
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="价格" DataField="Price">
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="单位" DataField="Unit">
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="金额"></asp:BoundField>
                                </Columns>
                                <EmptyDataTemplate>
                                    <table class="adminlist" width="100%">
                                        <tr>
                                            <th style='text-align: center;'>
                                                商品图片
                                            </th>
                                            <th style='text-align: center;'>
                                                商品名称
                                            </th>
                                            <th style='text-align: center;'>
                                                数量
                                            </th>
                                            <th style='text-align: center;'>
                                                价格
                                            </th>
                                            <th style='text-align: center;'>
                                                单位
                                            </th>
                                            <th style='text-align: center;'>
                                                金额
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="6" align="center">
                                                没有数据！
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4">
                            &nbsp;&nbsp; &nbsp;&nbsp;<input id="btnBack" type="button" onclick="history.back()"
                                value="返回" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <%--详细信息 end--%>
        </div>
    </div>
</asp:Content>
