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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>优选电商箱子费用列表页面
    </title>
    <script type="text/javascript">
        //使用checkbox当做全选反选
        function check_all_not() {
            var check = document.getElementById("checkboxAll").checked;
            //alert(check);
            if (check == true) {
                checkAll();
            }
            else {
                checkReverse();
            }
        }

        //选择
        function checkAll() {
            $(".check ").each(function () {
                var able = $(this).attr("disabled");
                if (able != 'disabled') {
                    $(this).attr("checked", true);
                }
            });
        }

        //反选
        function checkReverse() {
            $(".check ").each(function () {
                var able = $(this).attr("disabled");
                if (able != 'disabled') {
                    $(this).attr("checked", !($(this).attr("checked")));
                }
            });
        }

        function checkRemove() {
            $(".check ").each(function () {
                var able = $(this).attr("disabled");
                if (able != 'disabled') {
                    $(this).attr("checked", false);
                }
            });
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="pgTitle" runat="server">
        <ShortCuts>
        </ShortCuts>
    </yee:PageTitle>
    <yee:MessageBox runat="server" ID="msg">
    </yee:MessageBox>
   
    <!--  查询 -->
    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="queryLeft"><%=GetText("箱子号") %>：</td>
                <td class="queryRigth">
                    <asp:TextBox ID="txtBoxNO" runat="server" style ="width:100px"></asp:TextBox>
                </td> 
                <td class="queryLeft"><%=GetText("调拨单号") %>：</td>
                <td class="queryRigth">
                    <asp:TextBox ID="txtTransferNO" runat="server" style ="width:100px"></asp:TextBox>
                </td> 
                <td class="queryLeft">
                    <%=GetText("海外箱子创建日期") %>：
                </td>
                <td class="queryRigth">
                    <yee:DatePicker ID="dpFrom" runat="server" IsRequired="true" />
                    - <yee:DatePicker ID="dpTo" runat="server" IsRequired="true" />
                </td>   
                <td class="queryLeft"> <%=GetText("确认状态") %>：
                </td>
                <td class="queryRigth">
                    <asp:RadioButtonList ID="rblStatus" runat="server" data-live-search="true" CssClass="selectpicker" AutoPostBack="true" OnSelectedIndexChanged="rblStatus_SelectedIndexChanged" RepeatDirection="Horizontal"></asp:RadioButtonList>
                </td>
                <td class="queryLeft">
                    <yee:Button ID="btnQuery" runat="server" CssClass="button" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>

    <yee:PageTitle ID="pgTitleSelect" runat="server" Title = "">
        <ShortCuts>
            <div style = "margin-top: 10px; text-align: left;">
                <asp:Button ID="btnBatchConfirm" CssClass="button"  runat="server" Text="确认费用" OnClick="btnBatchConfirm_Click" />
            </div>
        </ShortCuts>
    </yee:PageTitle>

    <div>
        <asp:Repeater ID="rptClaim" runat="server" OnItemDataBound="rptClaim_ItemDataBound">
            <HeaderTemplate>
                <table cellpadding="0" class="table" cellspacing="0" border="0" id="table1" style="margin-bottom: 0px;">
                    <tr>
                        <td class="tbheader" width="30px">
                            <input type="checkbox" id="checkboxAll" class="checkboxAll" onclick="check_all_not()" />
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("调拨单号") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("箱子号") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("确认状态") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("国内叉车费") %>（USD）
                        </td> 
                        <td class="tbheader" align="center" width="100px">
                             <%=GetText("国外叉车费") %>（USD）
                        </td>
                        <td class="tbheader" align="center" width="100px">
                             <%=GetText("国际运费") %>（USD）
                        </td>
                        <td class="tbheader" align="center" width="100px">
                             <%=GetText("本地运费") %>（USD）
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("海外箱子创建日期") %>
                        </td>
                        <td class="tbheader" align="center" width="100px">
                            <%=GetText("客户代号") %>
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="tbrow">
                    <td class="tbpost">
                        <input type="checkbox" id="cbItem" runat="server" class="check" />
                    </td>
                    <td class="tbpost">
                        <%#Eval("TransferNo") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("BoxSerialNo")%>
                        <asp:HiddenField ID="hfId" runat="server" Value='<%#Eval("BoxId") %>' />
                    </td>
                    <td class="tbpost">
                        <%#Eval("Status") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("CNForkliftFee")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("KHForkliftFee")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("ShouldIncomeCN2THFreightAmount")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("ShouldIncomeTH2THFreightAmount")%>
                    </td>
                    <td class="tbpost">
                        <%#Eval("CreateOn") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("CustomerCode")%>
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr class="tbrowalter">
                    <td class="tbpost">
                        <input type="checkbox" id="cbItem" runat="server" class="check" />
                    </td>
                    <td class="tbpost">
                        <%#Eval("TransferNo") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("BoxSerialNo")%>
                        <asp:HiddenField ID="hfId" runat="server" Value='<%#Eval("BoxId") %>' />
                    </td>
                    <td class="tbpost">
                        <%#Eval("Status") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("CNForkliftFee")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("KHForkliftFee")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("ShouldIncomeCN2THFreightAmount")%>
                    </td>
                    <td class="tbpost">
                        <%# Eval("ShouldIncomeTH2THFreightAmount")%>
                    </td>
                    <td class="tbpost">
                        <%#Eval("CreateOn") %>
                    </td>
                    <td class="tbpost">
                        <%# Eval("CustomerCode")%>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:Repeater>
        <yee:Pager ID="Pager1" runat="server" PageSize = "10" PagerType="1" OnPageIndex_Changed="Pager1_PageIndex_Changed" PageIndex="0" />
    </div>

</asp:Content>