<%@ Page Title="Aufträge VERAG" Language="VB" MasterPageFile="~/Customers/Customers.master" AutoEventWireup="false" CodeFile="CustomsAviso.aspx.vb" Inherits="Kundenbereich_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
        <!-- Bootstrap -->
    <html lang="en"></html>
    <!-- Required meta tags -->
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" title="Verag Spedition AG AvisoTV Flex"/>
    <link rel="shortcut icon" href="../images/Icons/favicon/favicon.ico" />
    <style>    
    .nav-item dropdown::marker {
    background-color: #fff;
    font-size: 0;
    visibility: hidden;
    color: #043381;
    }        
    </style>    
     <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>            

     <link rel="stylesheet" type="text/css" href="../css/main.css"/>
    <link rel="stylesheet" type="text/css" href="../css/style.css"/>

    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>
    <link rel="stylesheet" type="text/css" href="../css/Dropdown.css"/>
      <!--   <link rel="stylesheet" type="text/css" href="../css/style.css"/>-->
    <link rel="stylesheet" type="text/css" href="../css/Customers/MasterpageCustomers.css"/> 
    <link rel="stylesheet" type="text/css" href="../css/Customers/CustomsAVISO.css"/>    
    <link rel="stylesheet" type="text/css" href="../css/navbarsidebar2.css"/>       
</asp:Content> 

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <!-- Webiste-Content-->  
            <div id="containerseiterand" style="margin-left:auto;margin-right:auto">                
                <div class="container-fluid">
                    <div id="cont1">
                            <h1>Aufträge</h1>
                            <div id="line" style="width: 92%;"></div>
                            <br/>                      
                            <h3>Hier finden Sie Informationen zu den aktuellen Aufträgen.</h3>
                        </div>
                     <%Try
                             VERAG_PROG_ALLGEMEIN.cAllgemein.ERR_OP_GLOBAL = VERAG_PROG_ALLGEMEIN.ERROR_OP.SHOW
                             'Dim AD As New VERAG_PROG_ALLGEMEIN.cAdressen(799124)
                             Dim VERAGSQL = New VERAG_PROG_ALLGEMEIN.SQL
                             ' MsgBox(VERAGSQL.GetADMINConnectionString())
                             'Response.Write(AD.Ordnungsbegriff)
                             Dim STANDORT = "SUB"
                             If (Request.QueryString.Count > 0) AndAlso (Request.QueryString("STANDORT") IsNot Nothing) Then
                                 Try
                                     STANDORT = (Request.QueryString("STANDORT"))
                                 Catch ex As Exception
                                     STANDORT = "SUB"
                                 End Try
                             End If
                             If True Then
                                 Dim AVISO_dt As System.Data.DataTable = VERAG_PROG_ALLGEMEIN.cAviso.getAVISO_List(STANDORT)
                                 If AVISO_dt IsNot Nothing Then

                                     If True Then 'AVISO.Status <> 1 And AVISO.Status <> 2 Then 'SENDUNGSTABELLE'%>    
                        <div class="col-12" style="margin-left:4px">
                            <div>
                                  <div style="height:0.936768149882904vh"></div>    
                            <div class="col-12" style="margin-left:2px">
                                            <h2>Auftrags-Suche</h2>                                             
                            </div>
                            <div style="margin-left:6px">
                            <div class="col-12" style="text-align:end">
                                                                           
                                            <asp:LinkButton ID="btn_resetForm" runat="server" onclick="btn_resetForm_Click" style="margin-right:2px">Filter zurücksetzen</asp:LinkButton>                               
                             </div>
                           
                             <div style="height:0.936768149882904vh"></div>                            
                                <div class="col-12" style="margin-left:8px" >
                                            <asp:Label ID="lbl_ArtderAuftraege" runat="server" Text="Auftrags-Status:" data-bs-toggle="tooltip" data-bs-placement="top" title="Wenn nichts angewählt ist, bitte das Datum eingrenzen."></asp:Label> 
                                </div>                            
                                <div class="col-8" style="margin-left:8px" >
                                    <asp:RadioButtonList id="RadioButtonList1" runat="server" RepeatDirection="Horizontal" style="border-color:#fff">
                                           <asp:ListItem ID="rbt_Alle" GroupName="radios" style="font-size:/*17px*/1.063em">Alle</asp:ListItem>
                                           <asp:ListItem ID="rbt_Erf" GroupName="radios" style="font-size:/*17px*/1.063em"> Erfasst</asp:ListItem>
                                           <asp:ListItem ID="rbt_Vorb"  GroupName="radios" style="font-size:/*17px*/1.063em">Vorbereitet</asp:ListItem>
                                           <asp:ListItem ID="rbt_Vorg"  GroupName="radios" style="font-size:/*17px*/1.063em"> Vorgeschrieben</asp:ListItem>
                                           <asp:ListItem  ID="rbt_Ankunft"  GroupName="radios" style="font-size:/*17px*/1.063em">Ankunft</asp:ListItem>
                                           <asp:ListItem ID="rbt_Freig" GroupName="radios" data-bs-toggle="tooltip" data-bs-placement="top" title="Wenn dieser Filter angewählt ist, bitte das Datum eingrenzen." style="font-size:/*17px*/1.063em">Freigabe</asp:ListItem>
                                </asp:RadioButtonList>
                                </div>
                            </div> 
                                </div>
                             <div style="height:0.936768149882904vh"></div>           
                            <div class="col-12" id="cont4">
                            <div class="col-12" id="container2" style="margin-left:2px">                                                                     
                                            <asp:Label ID="lbl_von" runat="server" Text="Von:"></asp:Label>                                             
                                            <asp:TextBox id="pickdate1" Type="Date" runat="server"></asp:TextBox>  
                                   
                                            <asp:Label ID="lbl_bis" runat="server" Text="Bis:"></asp:Label> 
                                            <asp:TextBox id="pickdate2" Type="Date" runat="server"></asp:TextBox>
                                         </div>                                                                 
                                    
                             <div style="height:/*12px*/0.936768149882904vh"></div>  
                              <hr>
                                <div id="accordion">
                                 <div class="accordion" id="accordionExample">
                                      <div class="accordion-item" style="height:60px">
                                        <h2 class="accordion-header" id="headingOne">
                                          <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne" style="background-color:#fff">Erweiterte Suche</button>
                                          </h2>
                                        </div>
                               
                                        <div id="collapseOne" class="accordion-collapse collapse hide" aria-labelledby="headingOne" data-bs-parent="#accordionExample">   
                                                    <div class="card card-body">
                                                     <div class="col-12" id="cont3">                                  
                                                         <div class="container" style="margin-left:2px">                                
                                                          <div style="height:/*12px*/0.936768149882904vh"></div>     
                                                                     <!-- Optionale Suchparameter-->
                                                         <div class="row">
                                                              <div class="col-12" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
                                                                    <asp:Label ID="lbl_LKWNr" runat="server" Text="LKW Nr"></asp:Label>                                        
                                                                    <asp:TextBox ID="txt_LKWNr" runat="server" style="width:117px; margin-left:25px;"></asp:TextBox>
                                    
                                                                    <asp:Label ID="lbl_KdNrAuftrag" runat="server" Text="Kunden Auftrags Nr" style="margin-left:45px"></asp:Label>                                                                  
                                                                    <asp:TextBox ID="txt_KdNrAuftrag" runat="server" style="width:117px; margin-left:6px;"></asp:TextBox>
                                                             </div>
                                                             <div class="col-12" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
                                                                    <asp:Label ID="lbl_Absender" runat="server" Text="Absender"></asp:Label>                              
                                                                    <asp:TextBox ID="txt_Absender" runat="server" style="width:155px; margin-left:8px;"></asp:TextBox>                                     
                                 
                                                                     <asp:Label ID="lbl_Empfaenger" runat="server" Text="Empfänger" style="margin-left:9px"></asp:Label>                                         
                                                                    <asp:TextBox ID="txt_Empfaenger" runat="server" style="width:155px; margin-left:52px;"></asp:TextBox>
                                                            </div>                                   
                                                             </div>
                                                         </div>
                                                        </div>  
                                                   </div>

                                        </div>
                        </div>
                                <div style="height:/*24px*/1.873536299765808vh"></div>     
                                    <asp:Button ID="btn_Auftraege" class="btn-primary" runat="server" Text="Erhalte Aufträge" OnClick="btn_Auftraege_Click" style="margin-left:18px" />
                              <div style="height:/*32px*/2.498048399687744vh"></div> 
                            <div class="g-3" style="border:/*1.8px*/0.0706436420722135vw #808080 ridge; margin-left:12px">
                                             <!-- <input class="form-control mb-4" id="tableSearch" type="text"
                                                placeholder="Einen Begriff eingeben oder den Anfang davon ...">-->
                                             <div id="conovertab" style="overflow-x:auto;"margin-left="-2px"> 
                                                   <asp:Table id="normaltable" runat="server" Width="100%" EnableViewState="false" >
                                                    <asp:TableHeaderRow ID="tbl_Header_row" runat="server">                                                        
                                                            <asp:TableHeaderCell ID="tbl_HeaderCellIndexNr" runat="server">Index-Nr</asp:TableHeaderCell>   
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_LKWs" runat="server">LKW_Nr</asp:TableHeaderCell>
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_Status" runat="server">Status</asp:TableHeaderCell>
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_Auftragsdatum" runat="server">Auftragsdatum</asp:TableHeaderCell>                                                            
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_Absender" runat="server">Absender</asp:TableHeaderCell>
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_Empfaenger" runat="server">Empfänger</asp:TableHeaderCell>                                                            
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_KundAuftNr" runat="server">Auftrags-Nr</asp:TableHeaderCell>
                                                            <asp:TableHeaderCell ID="tbl_HeaderCell_Info" runat="server">Info</asp:TableHeaderCell>
                                                        </asp:TableHeaderRow>
                                                        </asp:Table>                                                   
                                                  <!--<thead style="height:/*20px;*/ 1.56128024980484vh; /*background-color:#043381;*/ background-image: linear-gradient(to right, #003680 , #0055cc); color:#fff; font-weight:900;">
                                                       <tr><th>Index</th><th>ART</th><th>KundenNr</th><th>Status</th><th>von</th><th>bis</th><th>Absender</th><th>Empfänger</th><th>LKW_Nr</th><th>Kunden-AuftragsNr</th></tr>
                                                   </thead>-->                                                                                                                                                     
                                              <!-- <table  runat="server" border="0" cellspacing="0"  style="width:1300px" >        
                                                   <thead style="height:/*20px;*/ 1.56128024980484vh; /*background-color:#043381;*/ background-image: linear-gradient(to right, #003680 , #0055cc); color:#fff; font-weight:900;">
                                                       <tr><th>Index</th><th>ART</th><th>KundenNr</th><th>Status</th><th>von</th><th>bis</th><th>Absender</th><th>Empfänger</th><th>LKW_Nr</th><th>Kunden-AuftragsNr</th></tr>
                                                   </thead>                                                                         
                                                </table>-->                                                   
                                           </div> 
                            </div></div></div>
                       </div>
                                              
                          <br /><br /><br />
                   <%                 End If
                               End If
                           End If
                       Catch ex As Exception
                           Response.Write(ex.Message & ex.StackTrace)
                       End Try %>
                                                                                                                                       
                                            
                                                                                
                                                                                     <div></div></div>  
                                                                                    <%--  <div class="footer_menu">
                                                                                        <div class="footer_menu_content">      
                                                                                             <table>                    
                                                                                                    <tr>   
                                                                                        </tr>
                                                                                    </table>      
                                                                                     </div>
                                                                                </div>--%>

     <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
    
    <script>
        $('#accordion').on('shown.bs.collapse', function (e) {
            $(e.target).data('bs.collapse').$trigger.attr('src', 'https://s22.postimg.org/hkrauaofx/Mathematic_Minus2.png');
        });

        $('#accordion').on('hidden.bs.collapse', function (e, f) {
            $(e.target).data('bs.collapse').$trigger.attr('src', 'https://s22.postimg.org/9takvqkal/Mathematic_Plus2.png');
        });
    </script>
   <script type='text/javascript'>
        $(document).ready(function () {
            $("#container2").hide();      
        
        $('#<%=RadioButtonList1.ClientID %> input[type="radio"]').change(function () {
            if ($(this).val() == "Freigabe") {
                $("#container2").show(); 
            } else if ($(this).val() == "Alle") {  
                    $("#container2").show(); 
            }      else {
                    $("#container2").hide();                   
              }
            });
    });
    </script>
</asp:Content>