<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_JXC_StockOrderSaleSearch, 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 left1">
                            &nbsp;<b>高级查询：</b>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            &nbsp;时间范围：
                        </td>
                        <td class="rtd">
                            &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 class="ltd">
                            &nbsp;单据编号：
                        </td>
                        <td class="rtd">
                            &nbsp;<asp:TextBox ID="txtSearchInfoNumber" CausesValidation="false" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            &nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="gvManage" CssClass="adminlist" runat="server" AllowPaging="True"
                    OnPageIndexChanging="gridView_PageIndexChanging" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10" RowStyle-HorizontalAlign="Center">
                    <Columns>
                        <asp:BoundField DataField="InfoNumber" HeaderText="单据编号">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BuyerName" HeaderText="客户名称">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MoneyGoods" HeaderText="商品金额">
                            <ItemStyle HorizontalAlign="Right" ForeColor="Green" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Deliver_TotalPrice" HeaderText="运费金额">
                            <ItemStyle HorizontalAlign="Right" ForeColor="Green" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Invoice_TotalPrice" HeaderText="发票税额">
                            <ItemStyle HorizontalAlign="Right" ForeColor="Green" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Fee" HeaderText="费用">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ReceiptMoney" HeaderText="应收金额">
                            <ItemStyle HorizontalAlign="Right" ForeColor="Green" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AlreadyReceiptMoney" HeaderText="已收金额">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ReceiptEndDate" HeaderText="收款期限">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ReceiptDate" HeaderText="收款时间">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Inputer" HeaderText="记录人">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" HeaderText="备注">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <a href='<%#"Admin_JXC_StockOrderSaleSearch.aspx?MenuID=5&MenuName=表单管理&FileName=销售出库单详细信息&action=checkinfo&infoOrderID="+Eval("InfoOrderID") %>'>
                                    详细</a>
                                <%--<asp:LinkButton ID="lkbtn" runat="server" CausesValidation="False" CommandName="DelInfo"
                                    Text="删除" CommandArgument='<%# Eval("InfoOrderID") %>' OnClientClick="return confirm('确定删除这栏信息吗？');"
                                    OnCommand="Button_Command"></asp:LinkButton>--%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table class="adminlist" style="width: 100%">
                            <tr>
                                <th>
                                    单据编号
                                </th>
                                <th>
                                    客户名称
                                </th>
                                <th>
                                    商品金额
                                </th>
                                <th>
                                    运费金额
                                </th>
                                <th>
                                    发票税额
                                </th>
                                <th>
                                    费用
                                </th>
                                <th>
                                    应收金额
                                </th>
                                <th>
                                    已收金额
                                </th>
                                <th>
                                    收款期限
                                </th>
                                <th>
                                    收款日期
                                </th>
                                <th>
                                    记录人
                                </th>
                                <th>
                                    备注
                                </th>
                            </tr>
                            <tr>
                                <td colspan="12">
                                    没有符合查询条件的记录！
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <PagerStyle CssClass="productPageStyle" />
                </asp:GridView>
                <div style="text-align:center;">
                    <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
                </div>
                <table class="nick">
                    <tr>
                        <td class="rtd">
                            &nbsp;说明：<br />
                            &nbsp;(1)&nbsp;“运费总额”指物流总费用。 &nbsp;“发票税额”指需要发票且商品价格未含税时需要买家支付的商品总税额。<br />
                            &nbsp;(2)&nbsp;“订单金额”指订单中“商品总额”+“运费总额”+“发票税额”<br />
                            &nbsp;(3)&nbsp;“应收金额”指订单中“订单金额”+“手续费”。 &nbsp;“欠收金额”指订单中未收的“订单总额”，不包括手续费。
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <%--列表 end--%>
            <%--详细信息 begin--%>
            <asp:Panel ID="pnlDetail" runat="server">
                <table class="nick">
                    <tr>
                        <td class="ltd">
                            单据编号 ：
                        </td>
                        <td class="rtd" style="width: 220px">
                            <asp:Label ID="lblStockNumber" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            记录时间 ：
                        </td>
                        <td class="rtd" style="width: 220px">
                            <asp:Label ID="lblInputTime" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            记录人 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblInputer" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            收款期限 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblReceiptEndDate" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            客户名称 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblBuyerName" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            收款日期 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblPayTime" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            运费金额 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblDeliver_TotalPrice" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            发票金额 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblInvoice_TotalPrice" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            商品金额 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblMoneyGoods" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            应收金额 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblReceiptMoney" runat="server" Width="165px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            已收金额 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblAreadyReceiptMoney" runat="server"></asp:Label>
                        </td>
                        <td class="ltd">
                            费用 ：
                        </td>
                        <td class="rtd">
                            <asp:Label ID="lblFee" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">
                            备注 ：
                        </td>
                        <td class="rtd" colspan="3">
                            <asp:Label ID="lblRemarks" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:GridView ID="gvItem" CssClass="adminlist" runat="server" AutoGenerateColumns="false">
                                <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>
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="商品名称" DataField="ProductName"></asp:BoundField>
                                    <asp:BoundField HeaderText="数量" DataField="StockCount"></asp:BoundField>
                                    <asp:BoundField HeaderText="价格" DataField="Price"></asp:BoundField>
                                    <asp:BoundField HeaderText="单位" DataField="Unit"></asp:BoundField>
                                    <asp:BoundField HeaderText="金额"></asp:BoundField>
                                </Columns>
                                <EmptyDataTemplate>
                                    <table class="adminlist">
                                        <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">
                            <input id="btnBack" type="button" onclick="history.back()" value="返回" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <%--详细信息 end--%>
        </div>
    </div>
</asp:Content>
