<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="DeliveryList.aspx.cs" Inherits="OAWeb.crm.orders.DeliveryList" %>

<%@ Register Src="../../UserControls/OrderNav.ascx" TagName="OrderNav" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:OrderNav ID="OrderNav1" runat="server" />
            </td>
            <td class="main_center">
                <!--主体-->
                <div class="page_main">
                    <div class="page_content">
                        <table class="data_title" cellspacing="3">
                            <tr>
                                <td class="data_caption">
                                    <em style="float: left">
                                        <img src="/images/10.gif" />
                                    </em><%=DeliveryType==0?"发货单":"退货单" %><br />
                                    <span class="tip01">您可以编辑、删除发货单,可以在订单详细创建发货单</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="data_field">
                                    <asp:DropDownList ID="ddlField" runat="server">
                                        <asp:ListItem Value="CustomerName">客户名称</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:TextBox ID="txtKeyword" runat="server" CssClass="text_box"></asp:TextBox>
                                    <asp:Button ID="btnSearch" runat="server" Text="查  询" class="btn_77px" />
                                </td>
                            </tr>
                        </table>
                        <div class="list">
                            <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                                GridLines="None" CellPadding="0" CssClass="table_list" EnableModelValidation="True"
                                OnRowDataBound="gvData_RowDataBound">
                                <RowStyle HorizontalAlign="Left" />
                                <Columns>
                                    <asp:BoundField DataField="DeliveryCode" HeaderText="发货单号"></asp:BoundField>
                                    <asp:HyperLinkField DataNavigateUrlFields="CustomerId" DataNavigateUrlFormatString="/crm/customer/CustomerView.aspx?CustomerID={0}"
                                        DataTextField="CustomerName" HeaderText="客户名称" Target="_blank" />
                                    <asp:BoundField DataField="ShippingMothod" HeaderText="发货方式"></asp:BoundField>
                                    <asp:BoundField DataField="LogiName" HeaderText="物流公司"></asp:BoundField>
                                    <asp:BoundField DataField="LogiNo" HeaderText="物流单号"></asp:BoundField>
                                    <asp:BoundField DataField="TrackUserName" HeaderText="经办人"></asp:BoundField>
                                    <asp:BoundField DataField="ShipDate" HeaderText="发货日期"></asp:BoundField>
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkbtnEdit" runat="server">编辑</asp:LinkButton>
                                            <asp:LinkButton ID="lnkbtnDelete" runat="server">删除</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <div class="pager-bar">
                                <webdiyer:AspNetPager ID="pager" runat="server" CssClass="anpager" currentpagebuttonclass="cpb"
                                    PageSize="20" NextPageText="下一页" LastPageText="页 尾" FirstPageText="第一页" PrevPageText="上一页"
                                    ShowBoxThreshold="10" SubmitButtonText="跳 转" UrlPaging="True">
                                </webdiyer:AspNetPager>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
