<%@ Page Title="" Language="C#" MasterPageFile="~/SignBox/Site1.Master" AutoEventWireup="true" CodeBehind="TransferLoadCarAtWare.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.SignBox.TransferLoadCarAtWare" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../Scripts/jquery.js"></script>
<script src="../Scripts/layer/layer.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/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 src="../Scripts/jquery-1.6.3.js"></script>
<script src="../Scripts/jqueryUI/ui/jquery-ui-1.8.24.custom.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;
    }
    
      // 物流件明细列表
      function ShowDetail(url) {
          $("#EditIframe").attr("src", url);
          $("#iframeEdit").dialog({
              autoOpen: true,
              resizable: false,
              width: 800,
              height: 600,
              modal: true,
              title: "物流件明细列表",
              buttons: {
                  "确认": function () {
                      $(this).dialog("close");
                  },
                  "取消": function () {
                      $(this).dialog("close");
                  }
              },
          });
          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="TransferLoadCarList.aspx" title="返回中转列表">返回中转列表</a>
     </ShortCuts>
 </yee:PageTitle>
 <div>
     <asp:Button ID="btnPrintXiaoPiao" runat="server" CssClass="button" Visible="false"  OnClick="btnPrintXiaoPiao_Click" />
    
 </div>
 <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:DropDownList runat="server" ID="ddlStorageId"   AutoPostBack="true" OnSelectedIndexChanged="ddlStorageId_SelectedIndexChanged"  ></asp:DropDownList>
             </td>
         </tr>
         <tr>
             <td class="tbpostheader">
                 <%=GetText("总仓收货库区") %>
             </td>
             <td class="tbpost">
                 <asp:DropDownList ID="ddlTargetStorageId" runat="server" data-live-search="true" CssClass="selectpicker"  ></asp:DropDownList>
             </td>
         </tr> 
         <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>
     </table>
 </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>
                 <td class="tbheader">
                     <%=GetText("发货确认信息") %>
                 </td>
                 <td class="tbheader">
                 <!--    <%=GetText("操作") %> -->
                 </td>
             </tr>
     </HeaderTemplate>
     <ItemTemplate>
         <tr class="tbrow">
             <td class="tbpost">
                 <%#Eval("number") %>
             </td>
             <td class="tbpost">
                 <%#Eval("Type") %>
             </td>
             <td class="tbpost">
                 <asp:HyperLink ID="hlSerialNo" runat="server"></asp:HyperLink>
                 <asp:LinkButton ID="lbnShowDetail" runat="server" CommandArgument='<%#Eval("CollectSerialNo") %>' CommandName="ShowDetail"></asp:LinkButton> 
             </td>
             <td class="tbpost">
                 <%#Eval("TargetWarehouseName") %>
             </td>
             <td class="tbpost">
                 <%#Eval("SignInByName") %></br> <%#Eval("SignInOn") %>
             </td>
             <td class="tbpost">
                 <%#Eval("CreatedByName") %> </br><%#Eval("CreatedOn") %>
             </td>
             <td class="tbpost">
                 <%#Eval("TransferSignByName") %> </br><%#Eval("TransferSignOn") %>
             </td>
             <td class="tbpost">
               <!--  <asp:LinkButton ID="lbnRemove" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="remove" Text="移除" OnClientClick = "return confirm('确定删除吗？')"></asp:LinkButton> -->
             </td>
         </tr>
     </ItemTemplate>

     <FooterTemplate>
         </table>
     </FooterTemplate>
 </asp:Repeater>
 <div id="iframeEdit" class="iframeEdit" style ="display:none">
     <iframe id="EditIframe" frameborder="0" class="EditIframe" style="width: 100%; min-height: 0px; height: 480px;"></iframe>
 </div>
</asp:Content>
