227 lines
15 KiB
Plaintext
227 lines
15 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Customers/Customers.master" AutoEventWireup="false" CodeFile="LKWs.aspx.vb" Inherits="LKWS" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
|
|
<!-- Bootstrap -->
|
|
<html lang="en"></html>
|
|
<!-- Required meta tags -->
|
|
<meta charset="utf-8"/>
|
|
|
|
<%@ import Namespace="MySql.Data.MySqlClient" %>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" title="VERAG IndexCustomer"/>
|
|
|
|
<link rel="shortcut icon" href="../images/Icons/favicon/favicon.ico" />
|
|
<!-- <link rel="stylesheet" type="text/css" href="css/edit_main.css"> -->
|
|
<script src="js/netzwerk.js" type="text/javascript"></script>
|
|
|
|
<!-- 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" 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/LKWs.css"/>
|
|
<link rel="stylesheet" type="text/css" href="../css/navbarsidebar2.css"/>
|
|
<style>
|
|
@media (max-width: 558.98px) {
|
|
body {
|
|
max-width: 390px;
|
|
}
|
|
|
|
h1 {
|
|
color: #043381;
|
|
font-size: 22px;
|
|
}
|
|
h2 {
|
|
color: #043381;
|
|
font-size: 30px;
|
|
}
|
|
|
|
#tableSearch {
|
|
width: 53%;
|
|
border: 1px solid grey;
|
|
}
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
|
|
<asp:ScriptManager ID="script5" runat="server"></asp:ScriptManager>
|
|
<asp:UpdatePanel ID="panelupdate5" runat="server"><ContentTemplate>
|
|
<div class="align-self-flex-center" style="/*margin-top:5px;*/margin-left:25px; margin-top:0.6510416666666667vw; margin-right:25px;">
|
|
<div id="containerseiterand">
|
|
<!-- Desktop/Tablet -->
|
|
<div class="d-none d-md-block">
|
|
<div class="col-6"></div>
|
|
<div class="row" style="background-color:white">
|
|
<div class="col-3">
|
|
<div class="row">
|
|
<div class="col-10"></div>
|
|
<div class="col-2">
|
|
<asp:Button runat="server" Text="Alle" ClientIDMode="Predictable" ID="btn_alle" OnClick="btn_alle_Click" style="margin-left:-36px;width:56px"/></div>
|
|
</div>
|
|
<div style="height:5px"></div>
|
|
<div class="row">
|
|
<div class="col-12">Kennzeichen:
|
|
<asp:TextBox ID ="txt_lkw" runat="server" Width="110px" style="margin-left:25px"></asp:TextBox>
|
|
<asp:Button ID="btn_Suchen" OnClick="btn_Suchen_Click" runat="server" Text="Suchen" style="margin-left:5px"/> </div>
|
|
<div class="col-9">
|
|
<div class="col-9"style="height:10px;"></div>
|
|
<div class="flex-col-9">
|
|
<asp:Table ID="tbl_sidemenue" runat="server" CssClass="table table-striped" style="width:310px;margin-left:-32px;">
|
|
<asp:TableHeaderRow style="background-color:#043381;color:#fff;font-size:0.86em"><asp:TableHeaderCell ID="tbhc_KFZKennz">KFZ-Kennzeichen</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Nat">Nat.</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Verk">Verk</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Kz">KZ-An</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Verm">Vermerk</asp:TableHeaderCell></asp:TableHeaderRow>
|
|
</asp:Table>
|
|
</div>
|
|
</div></div>
|
|
</div>
|
|
<div class="col-9">
|
|
<div class="col-12">
|
|
<asp:Image runat="server" ClientIDMode="AutoID" ID="Img_Text1" ImageUrl="~/images/Icons/Aviso.png" style="width:96px;height:96px" />
|
|
<asp:Label ID="lbl_sped_Placeholder" runat="server" Font-Size="20px" Font-Bold="true">Bitte Spedition wählen</asp:Label>
|
|
</div>
|
|
<div class="col-12">
|
|
<asp:Label ID="lbl_natLKW" runat="server" Font-Size="1.12em" style="color:#043381">Nationalität:</asp:Label><asp:Label runat="server" ID="lbl_Placeholder" style="font-size:1.12em">Placeholder</asp:Label>
|
|
</div>
|
|
<div class="col-12">
|
|
<asp:Label ID="lbl_SDL" runat="server" Font-Size="1.331em" style="color:#043381;font-weight:500">SDL-Leistungen:</asp:Label>
|
|
</div>
|
|
<div class="col-12"style="height:10px;"></div>
|
|
<div id="conovertab" class="col-12" style="margin-left:-10px;background-color:#fff;overflow-y:auto;">
|
|
<asp:Table ID="tbl_mainpage" runat="server" Width="100%" style="background-color:#fff;overflow-y:auto;" CssClass="table table-striped col-12">
|
|
<asp:TableHeaderRow ID="headrow1" runat="server" style="background-color:#043381;color:#fff;height:10px"><asp:TableHeaderCell ID="tblhc_SDLNr">SDL-Nr</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Bez">Bezeichnung</asp:TableHeaderCell><asp:TableHeaderCell ID="tbl_gueltig">Gültig Bis</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_KarteNr">Karten-Nummer</asp:TableHeaderCell></asp:TableHeaderRow>
|
|
</asp:Table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Mobil -->
|
|
<div class="d-md-none">
|
|
<div class="col-12"></div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<asp:Button ID="btn_alle_M" runat="server" CssClass="btn btn-primary" ClientIDMode="Predictable" OnClick="btn_alle_M_Click" style="margin-left:-24px; width:76px" Text="Alle" />
|
|
</div>
|
|
<div style="height:20px"></div>
|
|
<div class="row" style="margin-left:-30px">
|
|
<div class="col-12">Kennzeichen:<asp:TextBox runat="server" ID="txt_LKWNr_M" Width="120px" style="margin-left:4px"></asp:TextBox>
|
|
<asp:Button ID="btn_Suchen_M" OnClick="btn_Suchen_M_Click" runat="server" CssClass="btn btn-primary" Text="Suchen" style="margin-left:0px" /></div>
|
|
</div>
|
|
<div style="height:12px"></div>
|
|
|
|
<div style="height:17px"></div>
|
|
<div class="col-12-flex">
|
|
<asp:Table ID="tbl_2" runat="server">
|
|
<asp:TableHeaderRow style="background-color:#043381;color:#fff" runat="server"><asp:TableHeaderCell ID="tbhc_KFZKennz_M">KFZ_Kennzeichen</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Nat_M">Nat.</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Verk_M">Verk.</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_KZ_An_M">KZ-An</asp:TableHeaderCell><asp:TableHeaderCell ID="tbhc_Verm_M">Vermerke</asp:TableHeaderCell></asp:TableHeaderRow>
|
|
</asp:Table>
|
|
</div>
|
|
</div>
|
|
<div style="height:22px"></div>
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
<asp:Image runat="server" ClientIDMode="AutoID" ID="Img_Text1_M" ImageUrl="~/images/Icons/Aviso.png" style="width:56px;height:56px" />
|
|
<asp:Label ID="lbl_sped_Placeholder_M" runat="server" Font-Size="22px" Font-Bold="true">Bitte Spedition wählen...!</asp:Label>
|
|
</div>
|
|
<div class="col-12">
|
|
<asp:Label ID="lbl_natLKW_M" runat="server" Font-Size="1.12em" Style="color:#043381"></asp:Label><asp:Label ID="lbl_Placeholder_M" runat="server" style="font-size:1.12em">Placeholder</asp:Label>
|
|
</div>
|
|
<div class="col-12">
|
|
<asp:Label ID="lbl_SDL_M" runat="server" Font-Size="1.331em" style="color:#043381;font-weight:500">SDL-Leistungen</asp:Label>
|
|
</div>
|
|
<div class="col-12" style="height:15px"></div>
|
|
<div id="conovertab_M" class="col-12" style="margin-left:-10px;background-color:#fff;overflow-x:auto">
|
|
<asp:Table ID="tbl_mainpage_M" runat="server" Width="100%" CssClass="table table-striped col-12">
|
|
<asp:TableHeaderRow runat="server" ID="headrow_M" style="background-color:#043381;color:#fff"><asp:TableHeaderCell ID="tblhc_SDLNr_M">SDL_Nr</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Bez_M">Bezeichnung</asp:TableHeaderCell><asp:TableHeaderCell ID="tbl_gueltig_M">Gültig Bis</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_KarteNr_M">Karten-Nummer</asp:TableHeaderCell></asp:TableHeaderRow>
|
|
</asp:Table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<asp:Button ID="Button_hid" runat="server" OnClick="TableRowClick" Style="display: none" />
|
|
</ContentTemplate></asp:UpdatePanel>
|
|
<!-- jQuery CDN - Slim version (=without AJAX) -->
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
<!-- Popper.JS -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
|
|
<script type="text/javascript">
|
|
function TableRowClick(listtemp, Kennzeichen, Nat) {
|
|
let Table1 = document.getElementById("<%=tbl_mainpage%>")
|
|
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
|
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
|
|
|
Speditionslabel.textContent = Kennzeichen
|
|
natplaceholder.textContent = Nat
|
|
const arr2 = Array.from(listtemp.split(","));
|
|
for (let i = 0; i < arr2.length; i++) {
|
|
//alert(arr2.length)
|
|
const Arr = Array.from(listtemp(i).split(";"));
|
|
debugger
|
|
alert(Arr)
|
|
for (let arrint of Arr) {
|
|
let SDLNr = arrint[0]
|
|
let Bez = arrint[1]
|
|
let Gueltigbis = arrint[2]
|
|
let KartenNr = arrint[3]
|
|
alert(SDLNr)
|
|
alert(Bez)
|
|
alert(Gueltigbis)
|
|
alert(KartenNr)
|
|
addRow(Table1,SDLNr, Bez, Gueltigbis, KartenNr)
|
|
}
|
|
}
|
|
}
|
|
function addRow(table1,par1,par2,par3,par4) {
|
|
let tableRef = table1;
|
|
|
|
let newRow = tableRef.insertRow(-1);
|
|
|
|
let newCell = newRow.insertCell(0);
|
|
let newCell1 = newRow.insertCell(1)
|
|
let newCell2 = newRow.insertCell(2)
|
|
let newCell3 = newRow.insertCell(3)
|
|
|
|
newCell.innerHTML = par1
|
|
newCell1.innerHTML = par2
|
|
newCell2.innerHTML = par3
|
|
newCell3.innerHTML = par4
|
|
}
|
|
function addRow_tab2(par1, par2, par3, par4) {
|
|
let tableRef = document.getElementById(<%=tbl_mainpage_M.ClientID%>);
|
|
|
|
let newRow = tableRef.insertRow(-1);
|
|
|
|
let newCell = newRow.insertCell(0);
|
|
let newCell1 = newRow.insertCell(1)
|
|
let newCell2 = newRow.insertCell(2)
|
|
let newCell3 = newRow.insertCell(3)
|
|
|
|
newCell.innerHTML = par1
|
|
newCell1.innerHTML = par2
|
|
newCell2.innerHTML = par3
|
|
newCell3.innerHTML = par4
|
|
}
|
|
function TableRowClick_M(listtemp_M, Kennzeichen, Nat) {
|
|
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>")
|
|
let natplaceholder = document.getElementById("<%=lbl_Placeholder_M.ClientID%>")
|
|
|
|
Speditionslabel.textContent = Kennzeichen
|
|
natplaceholder.textContent = Nat
|
|
const arr2 = Array.from(listtemp_M.split(","));
|
|
for (let i = 0; i < arr2.length; i++) {
|
|
const Arr = Array.from(listtemp_M(i).split(";"));
|
|
for (let arrint of Arr) {
|
|
let SDLNr = arrint[0];
|
|
let Bez = arrint[1];
|
|
let Gueltigbis = arrint[2];
|
|
let KartenNr = arrint[3];
|
|
alert(SDLNr)
|
|
alert(Bez)
|
|
alert(Gueltigbis)
|
|
alert(KartenNr)
|
|
addRow(SDLNr, Bez, Gueltigbis, KartenNr)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</asp:Content> |