Tabelle soll mittels Web-Methos aufgefüllt werdne.
This commit is contained in:
@@ -140,10 +140,13 @@
|
|||||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||||
<!-- Popper.JS -->
|
<!-- 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 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>
|
||||||
|
|
||||||
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
function TableRow_Click(Nat, Kennzeichen,tempstrarr) {
|
function TableRow_Click(Nat, Kennzeichen,tempstrarr) {
|
||||||
debugger
|
|
||||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
||||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
||||||
let table = document.getElementById("<%=tbl_mainpage.ClientID%>")
|
let table = document.getElementById("<%=tbl_mainpage.ClientID%>")
|
||||||
@@ -155,10 +158,22 @@
|
|||||||
for (let i = rowCount - 1; i > 0; i--) {
|
for (let i = rowCount - 1; i > 0; i--) {
|
||||||
table.deleteRow(i);
|
table.deleteRow(i);
|
||||||
}
|
}
|
||||||
let arrtemp = tempstrarr.split(",")
|
let arrtemp = tempstrarr.split(",");
|
||||||
|
for (let j = 0; j < arrtemp.length; j++) {
|
||||||
|
SDLNr = arrtemp[j];
|
||||||
|
j++;
|
||||||
|
Bez = arrtemp[j];
|
||||||
|
j++;
|
||||||
|
GueltBs = arrtemp[j];
|
||||||
|
j++;
|
||||||
|
KartNr = arrtemp[j];
|
||||||
|
Pagemethods.filltable2(SDLNr, Bez, GueltBs, KartNr, onerror);
|
||||||
|
}
|
||||||
addNewRow()
|
addNewRow()
|
||||||
}
|
}
|
||||||
|
function onFailure(error) {
|
||||||
|
alert(error);
|
||||||
|
}
|
||||||
function TableRow_Click_M(Nat, Kennzeichen,tempstrarr_M) {
|
function TableRow_Click_M(Nat, Kennzeichen,tempstrarr_M) {
|
||||||
debugger
|
debugger
|
||||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>");
|
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>");
|
||||||
@@ -171,8 +186,8 @@
|
|||||||
for (let i = rowCount - 1; i > 0; i--) {
|
for (let i = rowCount - 1; i > 0; i--) {
|
||||||
table_M.deleteRow(i);
|
table_M.deleteRow(i);
|
||||||
}
|
}
|
||||||
let arrtemp = tempstrarr_M.split("-")
|
let arrtemp = tempstrarr_M.split(",")
|
||||||
for (int j = 0; j < arrtemp.length; j++) {
|
for (let j = 0; j < arrtemp.length; j++) {
|
||||||
alert(arrtemp[j])
|
alert(arrtemp[j])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -289,10 +304,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function doPostBack(id, strtemp) {
|
function doPostBack(id, strtemp) {
|
||||||
var arr = strtemp.split(",")
|
|
||||||
for (let i = 0; i < arr.length; i++) {
|
|
||||||
alert(id + '&' + arr[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ Partial Class LKWS
|
|||||||
tr.Cells.Add(tc_Karten_Nr)
|
tr.Cells.Add(tc_Karten_Nr)
|
||||||
'tbl_mainpage.Rows.Add(tr)
|
'tbl_mainpage.Rows.Add(tr)
|
||||||
TableRows.Add(tr)
|
TableRows.Add(tr)
|
||||||
strstrstrstrtemp = tc_SDL.Text + "," + tc_Bez.Text + "," + tc_gueltigbis.Text + "," + tc_Karten_Nr.Text
|
strstrstrstrtemp += String.Join("-", tc_SDL.Text + "," + tc_Bez.Text + "," + tc_gueltigbis.Text + "," + tc_Karten_Nr.Text)
|
||||||
End If
|
End If
|
||||||
list3.Add(strstrstrstrtemp)
|
list3.Add(strstrstrstrtemp)
|
||||||
|
|
||||||
@@ -418,5 +418,21 @@ Partial Class LKWS
|
|||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
<WebMethod>
|
||||||
|
Public Sub filltable2(SDLNr As String, Bezeichnung As String, GueltigBis As String, KartNr As String)
|
||||||
|
Dim tc_SDLNr As TableCell = New TableCell
|
||||||
|
Dim tc_Bezeichnung As TableCell = New TableCell
|
||||||
|
Dim tc_GueltigBis As TableCell = New TableCell
|
||||||
|
Dim tc_KartNr As TableCell = New TableCell
|
||||||
|
Dim tr As TableRow = New TableRow
|
||||||
|
tc_SDLNr.Text = SDLNr
|
||||||
|
tc_Bezeichnung.Text = Bezeichnung
|
||||||
|
tc_GueltigBis.Text = GueltigBis
|
||||||
|
tc_KartNr.Text = KartNr
|
||||||
|
tr.Cells.Add(tc_SDLNr)
|
||||||
|
tr.Cells.Add(tc_Bezeichnung)
|
||||||
|
tr.Cells.Add(tc_GueltigBis)
|
||||||
|
tr.Cells.Add(tc_KartNr)
|
||||||
|
tbl_2.Rows.Add(tr)
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
Reference in New Issue
Block a user