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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>自提单
    </title>
    <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="title" runat="server" Title="自提单">
    </yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server"></yee:MessageBox>

    <div class="query">
        <table cellpadding="0" cellspacing="0" style="width: 100%;" border="0" class="table">

            <tr>
                <td class="tbpostheader">
                    <%=GetText("仓储中心") %>：
                </td>
                <td class="tbpost">
                    <yee:UserWarehousesDropDownList ID="ddlWarehouse" runat="server" WarehouseType="海外仓储"  OnSelectedIndexChanged="ddlWarehouse_SelectedIndexChanged" AutoPostBack="true">
                    </yee:UserWarehousesDropDownList>
                </td>
            </tr>
            <tr>
                <td class="tbpostheader">
                    <%=GetText("条形码") %>：
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtSerialNo" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tbpostheader">
                    <%=GetText("流水号") %>：
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtOrderNo" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tbpostheader">
                    <%=GetText("客户代号") %>：
                </td>
                <td class="tbpost">
                  <asp:Literal ID="litFix" runat="server" ></asp:Literal>
                  <asp:TextBox ID="txtCode" runat="server" Width="150" Height="50" ForeColor="Red" Font-Size="XX-Large" Font-Bold="true"></asp:TextBox>(请勿输入前缀)
                </td>
            </tr>
            <tr>
                <td class="tbfooter"></td>
                <td class="tbfooter">
                    <yee:Button ID="btnQuery" runat="server" CssClass="button" OnClick="btnQuery_Click" Text="扫描流水" /></td>
            </tr>
        </table>
    </div>
   <%--  <a href="javascript:prn2_preview()" id="normalPrint2" runat="server" clientidmode="Static"><%=GetText("小票打印预览") %></a>--%>
    <script language="javascript" type="text/javascript">
        //自提打印
        function loda_zi_ti_print(boxids, orderNo, code, picker, number) {

            $.get("../Ajax/GetBoxDetails.ashx", { id: boxids }, function (data) {
                setTimeout(printZiTi(orderNo, code, picker, number, data), "800");
            });
        }
        function printZiTi(orderNo, code, picker, number, data) {

              var printData = [
                { boxes:data, orderNo:orderNo, picker:picker, number:number }
            ];
            var pageSize = {IntOrient:3,PageWidth:520,PageHeight:0,StrPageName:'CreateCustomPage'};
            PrintWithTemplate('outPrinterAB58GK',['PrintPickUpByQc'],printData,true,pageSize);
        }
   
        function prn2_preview() {
            PrintPickUpByCustomerNew("T23232333", "KH212952", "LINJUN", "3","0","A");
        }
        function PrintPickUpByCustomerNew(orderNo, code, name, boxCount,isAdvance,scode) {

             var printData = [{
                CustomerName: name,
                CustomerCode: code,
                OrderNo: orderNo,
                BoxCount: boxCount,
                StorageCode: scode,
                IsAdvance: isAdvance
            }];
             var pageSize = { IntOrient: 3, PageWidth: 520, PageHeight: 0, StrPageName: 'CreateCustomPage' };
             PrintWithTemplate('outPrinterAB58GK',['PrintPickUpByCustomerNew'],printData,true,pageSize);
        };
    </script>
</asp:Content>