<%@ Page Language="C#"  MasterPageFile="~/Package/package.Master" AutoEventWireup="true" CodeBehind="ClaimUnownedPackagesDetail.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.Package.ClaimUnownedPackagesDetail" %>

 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <title>
         <%=GetText("无主包裹详情") %>
     </title>

       <script type="text/javascript" src="../Scripts/jquery-1.6.3.js"></script>
      <script type="text/javascript" src="../Scripts/jquery-ui-1.8.24.custom.min.js"></script>
       <link type="text/css" href="../Styles/jqueryUI/smoothness/jquery-ui-1.8.24.custom.css" rel="stylesheet" />


       <script>
           var currentPicList = [];
           $(function () {
               currentPicList = [];
               var txtid = $(".txtid").html();
               ShowPicData(txtid)
           });
           function ShowPicData(id) {

               var txtPic = $(".currentPic").val();
               if (txtPic.length > 3) {
                   currentPicList = JSON.parse(txtPic)
               }

               //var lastResult = currentPicList.find(p => p.PackageId == id);
               var html = '';
               for (var i = 0; i < currentPicList.length; i++) {
                   //alert(currentPicList[i].PackageId);
                   if (currentPicList[i].PackageId == id) {
                       html += "<img src='" + currentPicList[i].PicOssPath + "' height ='370' />";
                   }

               }
               $(".ShowPic").html(html);
           }
       </script>
</asp:Content>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      <yee:PageTitle ID="pgTitle" runat="server" ></yee:PageTitle>
      <yee:MessageBox ID="msg" runat="server"></yee:MessageBox>

      <div style="display:none"><%--style="display:none"--%>
       <div class="txtid"><%=Request["Id"].ToString().Trim()%></div>
      <asp:TextBox ID="txtPic" runat="server" Text="" TextMode="MultiLine" CssClass="currentPic"></asp:TextBox>

        </div>
     <table cellpadding="0" cellspacing="0" border="0" class="table">
         <tr>
             <td class="tbpostheader">
                 <%=GetText("客户名称") %>：
             </td>
             <td class="tbpost">
                 
                 <asp:Label ID="LabCustomerName" runat="server" Text=""></asp:Label>
             </td>
         </tr>
         <tr>
             <td class="tbpostheader">
                 <%=GetText("客户代号") %>：
             </td>
             <td class="tbpost">
                  
                  <asp:Label ID="LaCustomerCode" runat="server" Text=""></asp:Label>
             </td>
         </tr>
          <tr>
            <td class="tbpostheader">
                <%=GetText("快递单号") %>：
            </td>
            <td class="tbpost">
                 
                <asp:Label ID="LabExpressNo" runat="server" Text=""></asp:Label>
            </td>
        </tr>
          <tr>
            <td class="tbpostheader">
                <%=GetText("箱子号") %>：
            </td>
            <td class="tbpost">
               
                  <asp:Label ID="LaBoxName" runat="server" Text=""></asp:Label>
            </td>
        </tr>
          <tr>
            <td class="tbpostheader">
                <%=GetText("包裹状态") %>：
            </td>
            <td class="tbpost">
                <asp:Label ID="labState" runat="server" Text=""></asp:Label>
            </td>
        </tr>
         <tr>
            <td class="tbpostheader">
                <%=GetText("包内品名") %>：
            </td>
            <td class="tbpost">
               <asp:Label ID="labPackName" runat="server" Text=""></asp:Label>
            </td>
        </tr>
          
          <tr>
            <td class="tbpostheader">
                <%=GetText("创建日期") %>：
            </td>
            <td class="tbpost">
               <asp:Label ID="labCreateTime" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="tbpostheader">
                <%=GetText("备注") %>：
            </td>
            <td class="tbpost">
                <asp:TextBox ID="txtRemark" runat="server"  TextMode="MultiLine" Width="100px" Height="50px"> </asp:TextBox>
            </td>
        </tr>
         <tr>
            <td class="tbpostheader">
               
            </td>
            <td class="tbpost">
                 <asp:Button ID="btnApproved" runat="server" CssClass="button" Text="审核通过" OnClick="btnApproved_Click"  />
                 <asp:Button ID="btnApprovedRejection" runat="server" CssClass="button" Text="审核驳回" OnClick="btnApprovedRejection_Click"  />
            </td>
        </tr>

     </table>
      <table cellpadding="0" cellspacing="0" class="table" border="0">
                <tr>
            
            <td class="tbpost">
                <div class="ShowPic">
            
                    </div>
               
            </td>
        </tr>
              <tr>
            <td class="tbpostheader">
                
            </td>
            <td class="tbpost">
                  
             
            </td>
        </tr>
            
               <tr>
            <td class="tbpostheader">
                
            </td>
            <td class="tbpost">
                
                
             
            </td>
        </tr>

          </table>

       <asp:Repeater ID="rptAudit" runat="server" >
        <HeaderTemplate>
         <table cellpadding="0" cellspacing="0" border="0" class="table" id="table">
                <tr>
                   
                   
                     <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("OperationByName") %> 
                </td>
              
                   <td class="tbpost">
                    <%# Eval("OperationTime","{0:yyyy/MM/dd HH:mm:ss}") %> 
                </td>
                 
                <td class="tbpost">
                  <%# Eval("Remark") %>
                </td>
               
               
               
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tbrowalter">
           <td class="tbpost">
                  <%# Eval("OperationByName") %>
                </td> 
                   <td class="tbpost">
                 <%# Eval("OperationTime","{0:yyyy/MM/dd HH:mm:ss}") %> 
                </td>
                 <td class="tbpost">
                  <%# Eval("Remark") %>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
         
 </asp:Content>
