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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>中转单装车详情
    </title>
    <script src="../Scripts/jquery-3.3.1.min.js"></script>
    <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/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>   
    <style>
        .hid {
            display: none !important;
        }

        .info input[type=file] {
            display: none;
        }
    </style>

    <script type="text/javascript">
        function Select(a) {
            $(a).next().click();
            $(a).next().removeClass("hid");
        }

        function viewPIc(a) {
            var imgUrl = $(a).attr("imgUrl");
            var str = 'ViewPic.aspx?imgUrl=' + imgUrl;
            layer.open({
                type: 2,
                title: false,
                closeBtn: 1, //不显示关闭按钮
                shade: [0],
                area: ['800px', '800px'],
                content: [str] //iframe的url，no代表不显示滚动条

            });

            return false;
        }

    </script>

    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="../lodop/install_lodop.exe"></embed>
    </object>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <yee:PageTitle ID="ptTitle" runat="server">
        <ShortCuts>
            <a href="AbroadTransferLoadCarList.aspx" title="返回">返回</a>
        </ShortCuts>
    </yee:PageTitle>
   
    <yee:MessageBox ID="msg" runat="server">
    </yee:MessageBox>

    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0" class="table">
            <tr>
                <td class="tbpostheader">
                    <%=GetText("中转单号") %>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtOrderNo" runat="server" Font-Size="XX-Large"></asp:TextBox>
                    <asp:Button ID="btnLoadCar" runat="server" CssClass="button" OnClick="btnLoadCar_Click" Text="扫描" />
                </td>
            </tr>
            <tr>
                
                <td class="tbpostheader">
                    <%=GetText("线路") %>
                </td>
                <td class="tbpost">
                     <asp:DropDownList ID="ddlRoute" runat="server" data-live-search="true" CssClass="selectpicker"></asp:DropDownList>
                </td>
            </tr>

            <tr>
                <td class="tbpostheader">
                    <%=GetText("车牌") %>
                </td>
                <td class="tbpost">
                    <asp:DropDownList ID="ddlCarPlate" runat="server" data-live-search="true" CssClass="selectpicker"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="tbpostheader">
                    <%=GetText("发货时间") %>
                </td>
                <td class="tbpost">
                    <yee:DateTimePicker ID="dtDeliveryOn" runat="server" IsRequired="false" />
                </td>
            </tr>
             <tr>
                <td class="tbpostheader">
                    <%=GetText("司机名") %>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtCarrier" runat="server"></asp:TextBox>
                </td>
             </tr>
             <tr>
                <td class="tbpostheader">
                    <%=GetText("联系电话") %>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtCarrierMobile" runat="server"></asp:TextBox>
                </td>
             </tr>
           <!-- <tr>
                <td class="tbpostheader">
                    <%=GetText("装车费用(USD)") %>
                </td>
                <td class="tbpost">
                    <asp:TextBox ID="txtLoadFee" runat="server"></asp:TextBox>
                </td>
            </tr> -->
            <tr>
                <td class="tbpostheader"></td>
                <td class="tbpost">
                    <yee:Button ID="btnSave" runat="server" Text="编辑" OnClick="btnSave_Click" />
                    <yee:Button ID="btnEdit" runat="server" Text="确认发货" OnClick="btnEdit_Click" />
                    <yee:Button ID="btnSure" runat="server" Text="确认到货" OnClick="btnSure_Click" />
                </td>
            </tr>
        </table>
    </div>

    <div>
    <asp:Repeater ID="rptCollect" runat="server" OnItemDataBound="rptCollect_ItemDataBound" OnItemCommand="rptCollect_ItemCommand">
        <HeaderTemplate>
            <table cellpadding="0" class="table" cellspacing="0" border="0">
                <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>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tbrow">
                <td class="tbpost">
                    <%#Eval("TransferNO") %>
                </td>  
                <td class="tbpost">
                    <%#Eval("WarehouseName") %>
                </td>
                <td class="tbpost">
                    <%#Eval("TargetWarehouseName") %>
                </td>
                <td class="tbpost">
                    <%#Eval("CreatedByName") %>
                </td>   
                <td class="tbpost">
                  <%#Eval("CreatedOn") %>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnRemove" runat="server" OnClientClick = "return confirm('确定删除吗？')" CommandArgument='<%#Eval("DetailUniqueId") %>' CommandName="remove" Text="移除"></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>

        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</div>

    <asp:Repeater ID="rptLink" runat="server">
        <ItemTemplate>
            <asp:HyperLink ID="hfExcel" runat="server" NavigateUrl='<%#Eval("ImgUrl") %>'>凭证下载</asp:HyperLink>
        </ItemTemplate>
    </asp:Repeater>

    <asp:HiddenField ID="hfRecordId" runat="server" ClientIDMode="Static" />
    <asp:HiddenField ID="hfDate" runat="server" ClientIDMode="Static" />

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

    </script>
</asp:Content>