<%@ Page Title="" Language="C#" MasterPageFile="~/Package/package.Master" AutoEventWireup="true" CodeBehind="InternationalPackageBoxList.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.Package.InternationalPackageBoxList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>直发包裹箱子列表
    </title>
    <link href="../Scripts/bootstrap_3.3.7_css_bootstrap.min[1].css" rel="stylesheet" />
    <link href="../Scripts/bootstrap-select.min.css" rel="stylesheet" />

    <script src="../Scripts/jquery-3.3.1.min.js"></script>
    <script src="../Scripts/bootstrap_3.3.7_js_bootstrap.min.js"></script>
    <script src="../Scripts/bootstrap-select.min.js"></script>
    <script language="javascript" src="../lodop/LodopFuncs.js"></script>
    <script language="javascript" src="../lodop/CLodopfuncs.js"></script>
    <script language="javascript" type="text/javascript" src="../Scripts/PrintTemplate.js"></script>
    <style>
        @font-face {
            font-family: 'KhmerOSFont';
            src: url('../Scripts/KhmerOS.ttf') format('truetype');
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="ptTitle" runat="server">
        <ShortCuts>
            <a href="InternationalPackageBoxCollection.aspx"><%=GetText("集包") %></a>
        </ShortCuts>
    </yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server">
    </yee:MessageBox>

    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td>
                    <%=GetText("发货仓") %>
                </td>
                <td>
                      <asp:DropDownList ID="ddlWareId" runat="server"  data-live-search="true" CssClass="selectpicker" ></asp:DropDownList>
                </td>
              <td>
                <%=GetText("快递单号") %>
            </td>
            <td>
                <asp:TextBox ID="txtExpressNo" runat="server"  ></asp:TextBox>
            </td>
               

                 <td>
                     <%=GetText("包裹编号") %>
                 </td>
                 <td>
                     <asp:TextBox ID="txtOrderNo" runat="server"  ></asp:TextBox>
                 </td>
                 <td>
                     <%=GetText("状态") %>
                  </td>
                  <td>
                      <asp:DropDownList ID="ddlInStockStatu" runat="server">
                      </asp:DropDownList>
                  </td>
            </tr>
            <tr>
              <td>
                  <%=GetText("目标仓") %>
              </td>
              <td>
                  <yee:UserWarehousesDropDownList ID="ddlTargetWareId" runat="server" WarehouseType="海外仓储" IsShowAllAtFirst="true" data-live-search="true" CssClass="selectpicker">
                  </yee:UserWarehousesDropDownList>
              </td>
                 
                 <td>
                     <%=GetText("箱子号") %>
                 </td>
                 <td>
                     <asp:TextBox ID="txtBoxSerialNo" runat="server" ></asp:TextBox>
                 </td> 
                 <td>
                     <%=GetText("箱子创建日期") %>
                 </td>
                 <td >
                     <yee:DatePicker ID="dtFrom" runat="server" IsRequired="true" />
                     -<yee:DatePicker ID="dtTo" runat="server" IsRequired="false" />
                 </td>       
                 <td  colspan="2">
                     <yee:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" />
                 </td>
            </tr>
        </table>
    </div>

    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
        <HeaderTemplate>
            <table cellpadding="0" class="table" cellspacing="0" border="0" id="table2" style="text-align: center;">
                <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>
                    <td class="tbheader">
                        <%=GetText("箱子体积") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("箱子尺寸") %>cm
                    </td>
                    <td class="tbheader">
                        <%=GetText("箱子费用") %>
                    </td> 
                    <td class="tbheader">
                        <%=GetText("创建人") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作") %>
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tbrow">
                <td class="tbpost">
                    <%#Eval("BigBagID") %>
                </td>
                <td class="tbpost">
                    <%#Eval("logisticsOrderCode") %>
                </td>
                <td class="tbpost">
                   <%# Eval("WareHouseName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("TargetWareHouseName")%>
                </td>
                <td class="tbpost">
            
                   <asp:LinkButton ID="lbnCollect" runat="server" CommandName="collect" CommandArgument='<%#Eval("CollectSerialNo") %>'   ><%#Eval("CollectSerialNo") %></asp:LinkButton>
                </td>
                <td class="tbpost">
                     <asp:LinkButton ID="lbnBoxDetail" runat="server" CommandName="box" CommandArgument='<%#Eval("BoxUniqueId") %>'   ><%#Eval("BoxSerialNo") %></asp:LinkButton>
                </td>
                 <td class="tbpost">
                     <%# Eval("CustomerCode")%>
                 </td>
                <td class="tbpost">
                    <%# Eval("BoxStatusName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("AbroadBoxWeight")%>
                </td>
                <td class="tbpost">
                    <%# Eval("AbroadBoxVolume")%>
                </td>
                <td class="tbpost">
                    <%# Eval("BoxSize")%>
                </td>
                <td class="tbpost">
                    <%# Eval("ShouldIncomeCN2THFreightAmount")%> <br/>
                   <asp:LinkButton ID="lbnPrice" runat="server" CommandName="price" CommandArgument='<%#Eval("BoxSerialNo") %>'  ><%=GetText("报价") %></asp:LinkButton>
                </td>
               
                <td class="tbpost">
                    <%# Eval("CreatedByName")%> <br />
                    <%# Eval("CreatedOn")%>
                </td>
                <td class="tbpost">
                     <asp:LinkButton ID="lbnDetail" runat="server" CommandName="detail" CommandArgument='<%#Eval("BoxSerialNo") %>'  ><%=GetText("打印") %></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tbrowalter">
                <td class="tbpost">
                    <%#Eval("BigBagID") %>
                </td>
                <td class="tbpost">
                    <%#Eval("logisticsOrderCode") %>
                </td>
                <td class="tbpost">
                   <%# Eval("WareHouseName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("TargetWareHouseName")%>
                </td>
               <td class="tbpost">
            
                   <asp:LinkButton ID="lbnCollect" runat="server" CommandName="collect" CommandArgument='<%#Eval("CollectSerialNo") %>'   ><%#Eval("CollectSerialNo") %></asp:LinkButton>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnBoxDetail" runat="server" CommandName="box" CommandArgument='<%#Eval("BoxUniqueId") %>'   ><%#Eval("BoxSerialNo") %></asp:LinkButton>
                </td>
                 <td class="tbpost">
                     <%# Eval("CustomerCode")%>
                 </td>
                <td class="tbpost"> 
                   <%# Eval("BoxStatusName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("AbroadBoxWeight")%>
                </td>
                <td class="tbpost">
                    <%# Eval("AbroadBoxVolume")%>
                </td>
                <td class="tbpost">
                    <%# Eval("BoxSize")%>
                </td>
                 <td class="tbpost">
      <%# Eval("ShouldIncomeCN2THFreightAmount")%> <br/>
     <asp:LinkButton ID="lbnPrice" runat="server" CommandName="price" CommandArgument='<%#Eval("BoxSerialNo") %>'  ><%=GetText("报价") %></asp:LinkButton>
  </td>
               <td class="tbpost">
                <%# Eval("CreatedByName")%> <br />
                <%# Eval("CreatedOn")%>
               </td>
                <td class="tbpost">
                     <asp:LinkButton ID="lbnDetail" runat="server" CommandName="detail" CommandArgument='<%#Eval("BoxSerialNo") %>'  ><%=GetText("打印") %></asp:LinkButton>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    <yee:Pager ID="Pager1" runat="server" PageSize="20" PagerType="1" OnPageIndex_Changed="Pager1_PageIndex_Changed"
        PageIndex="0" />

    <script language="javascript" type="text/javascript">

        var LODOP; //声明为全局变量
        
        function PrintBox2022(serialNo, customerCode, orderNo, printName, enprintName,freighttype, ware_group,wareKhName,wareTel){
        
            var printData = [{ 
                SerialNo:serialNo, 
                CustomerCode:customerCode, 
                OrderNo:orderNo, 
                WareName:printName, 
                WareEnName:enprintName,
                WareKhName:wareKhName,
                WareTel:wareTel,
                FreightType:freighttype, 
                WareGroup:ware_group 
            }];
            var pageSize = {IntOrient:0,PageWidth:700,PageHeight:500,StrPageName:'A4'};
            //PrintWithTemplate('outPrinterGK888t',['PrintBox2022New'],printData,true,pageSize);
            PrintWithTemplate('outPrinterGK888t',['PrintBox'],printData,true,pageSize);
        };
    </script>
</asp:Content>