<%@ Page Title="" Language="C#" MasterPageFile="~/Express/Express.Master" AutoEventWireup="true" CodeBehind="ExpressOrderList.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.Express.ExpressOrderList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>
        泰国发货列表
    </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="pgTitle" runat="server" ></yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server"></yee:MessageBox>
    <asp:HiddenField ID="hfFrom" runat="server" ClientIDMode="Static" />
    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
               
                <td class="queryLeft">
                    <%=GetText("客户代号") %>：
                </td>
                <td class="queryRigth">
                    <asp:TextBox ID="txtCustomerCode" CssClass="input-small" runat="server"></asp:TextBox> 
                </td>
               <td class="queryLeft">
                    <%=GetText("发货日期") %>：
                </td>
                <td class="queryRigth">
                    <yee:DatePicker ID="dpFrom" runat="server" CssClass="input-small" IsRequired="false" />
                    -
                    <yee:DatePicker ID="dpTo" runat="server" CssClass="input-small" IsRequired="false" />
                </td>

                <td class="queryLeft">
                    <%=GetText("快递单号") %>：
                </td>
                <td class="queryRigth">
                    <asp:TextBox ID="txtExpressNo" CssClass="input-big" runat="server"></asp:TextBox> 
                </td>
                
                 <td class="queryLeft">
                    <%=GetText("仓储中心") %>：
                </td>
                <td class="queryRigth">
                    <yee:UserWarehousesDropDownList ID="ddlWarehouse" runat="server" WarehouseType="海外仓储">
                    </yee:UserWarehousesDropDownList>
                </td>
                <td  class="queryLeft">
                    <yee:Button ID="btnQuery" runat="server" CssClass="button" OnClick="btnQuery_Click" />

                    <asp:Button ID="btExcel" runat="server" CssClass="button" OnClick="btExcel_Click"  />
                     
                </td>
              
            </tr>
        </table>
    </div>
    <asp:Repeater ID="rptMaster" runat="server" OnItemCommand="rptMaster_ItemCommand"
        OnItemDataBound="rptMaster_ItemDataBound">
        <HeaderTemplate>
            <table class="table" cellpadding="0" cellspacing="0" border="0" id="table">
                <thead>
                    <tr>
                       
                        <td class="tbheader">
                            <%=GetText("客户代号") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("订单号") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("快递公司") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("快递单号") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("发货时间") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("运费") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("收货人") %>
                        </td>
                        <td class="tbheader">
                            <%=GetText("收货地址") %>
                        </td>
                         <td class="tbheader">
                            <%=GetText("操作") %>
                        </td>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tbrow">
                <td class="tbpost" style="text-align: center">
                   <%#Eval("CustomerCode") %>
                </td>
                <td class="tbpost" style="text-align: center;">
                    <asp:Literal ID="litOrderNo" runat="server" ></asp:Literal>
                </td>
                <td class="tbpost" style="text-align: center">
                  <%#Eval("CompanyName")%>
                </td>
                <td class="tbpost" style="text-align: center">
                   <%#Eval("ExpressNo") %>
                </td>
                <td class="tbpost" style="text-align: center">
                    <%#Eval("CreatedOn","{0:d}") %>
                </td>
                <td class="tbpost" style="text-align: center">
                   <%#Eval("DelegateFreightAmount")%>
                </td>
                
                <td class="tbpost" style="text-align: center">
                   <%#Eval("ReceiverName")%>
                </td>
                <td class="tbpost" style="text-align: center; width:350px" >
                   <asp:Literal ID="litAddress" Text='<%#Eval("Address") %>' runat="server" ></asp:Literal>
                </td>
                <td class="tbpost" style="text-align: center">
                    <asp:LinkButton ID="lbnEdit" runat="server" CommandName="edit" CommandArgument='<%#Eval("UniqueId") %>'  ><%=GetText("编辑") %></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tbrowalter">
                <td class="tbpost" style="text-align: center">
                   <%#Eval("CustomerCode") %>
                </td>
                <td class="tbpost" style="text-align: center;">
                  <asp:Literal ID="litOrderNo" runat="server" ></asp:Literal>
                </td>
                <td class="tbpost" style="text-align: center">
                  <%#Eval("CompanyName")%>
                </td>
                <td class="tbpost" style="text-align: center">
                   <%#Eval("ExpressNo") %>
                </td>
                <td class="tbpost" style="text-align: center">
                    <%#Eval("CreatedOn","{0:d}") %>
                </td>
                <td class="tbpost" style="text-align: center">
                   <%#Eval("DelegateFreightAmount")%>
                </td>
                
                <td class="tbpost" style="text-align: center">
                   <%#Eval("ReceiverName")%>
                </td>
                <td class="tbpost" style="text-align: center; width:350px" >
                   <asp:Literal ID="litAddress" Text='<%#Eval("Address") %>' runat="server" ></asp:Literal>
                </td>
                <td class="tbpost" style="text-align: center">
                    <asp:LinkButton ID="lbnEdit" runat="server" CommandName="edit" CommandArgument='<%#Eval("UniqueId") %>'  ><%=GetText("编辑") %></asp:LinkButton>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <!--列表-->
    <yee:Pager ID="Pager1" runat="server" PageSize="10" PagerType="1" OnPageIndex_Changed="Pager1_PageIndex_Changed" />
      <script type="text/javascript">
          $(
              function () {
                  if ($("#table") != null) {
                      $("#table tbody tr").mouseover(function () {
                          $(this).find("td").css("background-color", "yellow");
                      }).mouseout(function () {
                          $(this).find("td").removeAttr("style");
                      }
                          )
                  }
              }
          );
    </script>
</asp:Content>
