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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>
        <%=GetText("箱子认证") %>
    </title>
    <style type="text/css">
        .none {
            display: none;
        }

        .datatable tr td {
            text-align: center;
        }

        .iframePayment {
            width: 500px;
            height: 300px;
        }

        #pay {
            display: none;
        }

        #showspan {
            font-weight: bold;
            font-size: 16px;
            float: left;
            display: block;
        }

            #showspan:hover {
                cursor: pointer;
            }
    </style>
    <script type="text/javascript">

        function Set_Coupon(obj) {
            $(".rblCoupon ").each(function () {
                $(this).attr("checked", false);
            });
            $(obj).attr("checked", true);
            //alert($(obj).val());
            $("#<%=hfCouponNo.ClientID%>").val($(obj).val());

        }
        function clearCoupon()
        {
            $(".rblCoupon ").each(function () {
                $(this).attr("checked", false);
            });
            $("#<%=hfCouponNo.ClientID%>").val("");

        }
         

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="ptTitle" runat="server"></yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server"></yee:MessageBox>

    <table cellpadding="0" cellspacing="0" class="table">

        <tr>
            <td class="tbpostheader">
                <%=GetText("客户") %>：
            </td>
            <td class="tbpost">
                <asp:Literal ID="ltrCustomer" runat="server"></asp:Literal>
            </td>
        </tr>

        <tr>
            <td class="tbpostheader">
                <%=GetText("箱子号") %>：
            </td>
            <td class="tbpost">
                <asp:Literal ID="litBoxSerialNo" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("提货码") %>：
            </td>
            <td class="tbpost">
                <asp:TextBox ID="txtVerificationCode" runat="server"></asp:TextBox>
            </td>
        </tr>

        <tr>
            <td class="tbfooter"></td>
            <td class="tbfooter">
                <asp:Button ID="btSave" runat="server" CssClass="button" OnClick="btSave_Click" />

            </td>
        </tr>
    </table>
    <div id="pay" runat="server">
        <table cellpadding="0" cellspacing="0" class="table datatable">
            <tr>
                <td rowspan="2" class="tbheader"><%=GetText("国际订单号") %></td>
                <td rowspan="2" class="tbheader"><%=GetText("重量") %>（KG）</td>
                <td colspan="2" class="tbheader"><%=GetText("长") %>(cm)</td>
                <td colspan="2" class="tbheader"><%=GetText("宽") %>(cm)</td>
                <td colspan="2" class="tbheader"><%=GetText("高") %>(cm)</td>
                <td rowspan="2" class="tbheader"><%=GetText("打箱子费") %></td>
                <td colspan="2" class="tbheader"><%=GetText("国际运费") %></td>
                <td colspan="2" class="tbheader"><%=GetText("海外运费") %></td>
                <td rowspan="2" class="tbheader"><%=GetText("保险费") %></td>
                <td rowspan="2" class="tbheader"><%=GetText("运费币种") %></td>
            </tr>
            <tr>
                <td class="tbheader" style="width: 50px;"><%=GetText("中国长") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("海外长") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("中国宽") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("海外宽") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("中国高") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("海外高") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("系统计算") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("实际支付") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("系统计算") %></td>
                <td class="tbheader" style="width: 50px;"><%=GetText("实际支付") %></td>
            </tr>
            <tr>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litCtwOrder" Text=""></asp:Literal>
                    <asp:HiddenField runat="server" ID="hfBoxid" Value="" />
                </td>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litWeight"></asp:Literal>
                </td> 
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litLength"></asp:Literal>
                </td>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litAbroadLength"></asp:Literal>
                </td>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litWidth"></asp:Literal>
                </td>
                  <td class="tbpost">
                    <asp:Literal runat="server" ID="litAbroadWidth"></asp:Literal>
                </td>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litHeight"></asp:Literal>
                </td>
                  <td class="tbpost">
                    <asp:Literal runat="server" ID="litAbroadHeight"></asp:Literal>
                </td>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litBoxCost"></asp:Literal>
                </td>

                <td class="tbpost">
                    <asp:Literal runat="server" ID="litoldCN2TH"></asp:Literal>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtCN2CN"   ClientIDMode="Static" Width="50" runat="server"></asp:TextBox>
                </td>
                <td class="tbpost">
                    <asp:Literal runat="server" ID="litoldTN2TH"></asp:Literal>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtTH2TH" ClientIDMode="Static" Width="50" runat="server"></asp:TextBox>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtInsurance"  ClientIDMode="Static"  Width="50" runat="server"></asp:TextBox>
                </td>
               
                <td class="tbpost">
                     <asp:Literal ID="litCurrencyCode" runat="server" ></asp:Literal>
                </td>
            </tr>
        </table>
      
    <div>
        
        <div style="width: 400px; float:left">

            <asp:HiddenField ID="hfCouponNo" runat="server" Value="" />
            <yee:PageTitle ID="pgTitleCoupon" runat="server" Title="优惠券"></yee:PageTitle>
            <asp:Repeater ID="rptCounpe" runat="server">
                <HeaderTemplate>
                    <table width="400px" cellpadding="0" cellspacing="0" border="1">
                        <tr>

                            <td class="tbheader" style="width: 20px"></td>
                            <td class="tbheader"><%=GetText("编码")%>
                            </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">
                            <input type="radio" class="rblCoupon" runat="server" id="rblCoupon" value='<%#Eval("SerialNumber") %>' onclick="Set_Coupon(this)" />
                        </td>
                        <td class="tbpost">
                            <%#Eval("SerialNumber") %>
                        </td>
                        <td class="tbpost">
                            <%#Eval("DiscountAmount") %>
                        </td>
                        <td class="tbpost">
                            <%#Eval("EffeectiveDate") %>
                        </td>
                        <td class="tbpost">
                            <%#Eval("ExpiredOn") %>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <yee:Pager ID="Pager1" runat="server" PageSize="10" PagerType="1" OnPageIndex_Changed="Pager1_PageIndex_Changed" />
        </div>
         <div  style="width: 400px;float:right;"> 
              <%=GetText("客户余额") %>：<asp:Label ID="labBalance" runat="server"></asp:Label>
              <asp:Button ID="btnPay" CssClass="button" runat="server" Text="" OnClientClick='return confirm("确定扣费？")'  OnClick="btnPay_Click" />
         </div>
         
        
    </div>
    </div>
</asp:Content>
