Änderungen JS
This commit is contained in:
@@ -175,13 +175,16 @@
|
|||||||
function addRow(table1,par1,par2,par3,par4) {
|
function addRow(table1,par1,par2,par3,par4) {
|
||||||
let tableRef = table1;
|
let tableRef = table1;
|
||||||
|
|
||||||
let newRow = tableRef.insertRow(-1);
|
let newRow = tableRef.insertRow();
|
||||||
|
|
||||||
let newCell = newRow.insertCell(0);
|
|
||||||
let newCell1 = newRow.insertCell(1)
|
|
||||||
let newCell2 = newRow.insertCell(2)
|
|
||||||
let newCell3 = newRow.insertCell(3)
|
|
||||||
|
|
||||||
|
let newCell = newRow.insertCell();
|
||||||
|
let newCell1 = newRow.insertCell()
|
||||||
|
let newCell2 = newRow.insertCell()
|
||||||
|
let newCell3 = newRow.insertCell()
|
||||||
|
newCell.create
|
||||||
|
newCell1.create
|
||||||
|
newCell2.create
|
||||||
|
newCell3.create
|
||||||
newCell.innerHTML = par1
|
newCell.innerHTML = par1
|
||||||
newCell1.innerHTML = par2
|
newCell1.innerHTML = par2
|
||||||
newCell2.innerHTML = par3
|
newCell2.innerHTML = par3
|
||||||
@@ -196,16 +199,19 @@
|
|||||||
let newCell1 = newRow.insertCell(1)
|
let newCell1 = newRow.insertCell(1)
|
||||||
let newCell2 = newRow.insertCell(2)
|
let newCell2 = newRow.insertCell(2)
|
||||||
let newCell3 = newRow.insertCell(3)
|
let newCell3 = newRow.insertCell(3)
|
||||||
|
newCell.create
|
||||||
|
newCell1.create
|
||||||
|
newCell2.create
|
||||||
|
newCell3.create
|
||||||
newCell.innerHTML = par1
|
newCell.innerHTML = par1
|
||||||
newCell1.innerHTML = par2
|
newCell1.innerHTML = par2
|
||||||
newCell2.innerHTML = par3
|
newCell2.innerHTML = par3
|
||||||
newCell3.innerHTML = par4
|
newCell3.innerHTML = par4
|
||||||
}
|
}
|
||||||
function TableRowClick_M(listtemp_M, Kennzeichen, Nat) {
|
function TableRowClick_M(listtemp_M, Kennzeichen, Nat) {
|
||||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>")
|
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
||||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder_M.ClientID%>")
|
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
||||||
|
|
||||||
Speditionslabel.textContent = Kennzeichen
|
Speditionslabel.textContent = Kennzeichen
|
||||||
natplaceholder.textContent = Nat
|
natplaceholder.textContent = Nat
|
||||||
|
|
||||||
@@ -214,17 +220,19 @@
|
|||||||
tb.deleteRow(1);
|
tb.deleteRow(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const arr2 = Array.from(listtemp_M.split(";"));
|
const arr2 = Array.from(listtemp_M.split(";"));
|
||||||
for (let i = 0; i < arr2.length; i++) {
|
//debugger
|
||||||
let SDLNr = arrint[i];
|
//alert(Arr)
|
||||||
let Bez = arrint[i++];
|
for (let arrint_M of arr2) {
|
||||||
let Gueltigbis = arrint[i++];
|
let SDLNr = arrint_M
|
||||||
let KartenNr = arrint[i++];
|
let Bez = arrint_M
|
||||||
|
let Gueltigbis = arrint_M
|
||||||
|
let KartenNr = arrint_M
|
||||||
//alert(SDLNr)
|
//alert(SDLNr)
|
||||||
//alert(Bez)
|
//alert(Bez)
|
||||||
//alert(Gueltigbis)
|
//alert(Gueltigbis)
|
||||||
//alert(KartenNr)
|
//alert(KartenNr)
|
||||||
addRow(<%=tbl_mainpage_M%>,SDLNr, Bez, Gueltigbis, KartenNr)
|
addRow(<%=tbl_mainpage_M.ClientID%>, SDLNr, Bez, Gueltigbis, KartenNr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user