Tabelle soll mittels Web-Methos aufgefüllt werdne.
This commit is contained in:
@@ -139,11 +139,14 @@
|
||||
<!-- 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 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">
|
||||
|
||||
function TableRow_Click(Nat, Kennzeichen,tempstrarr) {
|
||||
debugger
|
||||
|
||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
||||
let table = document.getElementById("<%=tbl_mainpage.ClientID%>")
|
||||
@@ -154,11 +157,23 @@
|
||||
|
||||
for (let i = rowCount - 1; i > 0; i--) {
|
||||
table.deleteRow(i);
|
||||
}
|
||||
let arrtemp = tempstrarr.split(",")
|
||||
addNewRow()
|
||||
}
|
||||
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()
|
||||
}
|
||||
|
||||
function onFailure(error) {
|
||||
alert(error);
|
||||
}
|
||||
function TableRow_Click_M(Nat, Kennzeichen,tempstrarr_M) {
|
||||
debugger
|
||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>");
|
||||
@@ -171,8 +186,8 @@
|
||||
for (let i = rowCount - 1; i > 0; i--) {
|
||||
table_M.deleteRow(i);
|
||||
}
|
||||
let arrtemp = tempstrarr_M.split("-")
|
||||
for (int j = 0; j < arrtemp.length; j++) {
|
||||
let arrtemp = tempstrarr_M.split(",")
|
||||
for (let j = 0; j < arrtemp.length; j++) {
|
||||
alert(arrtemp[j])
|
||||
}
|
||||
}
|
||||
@@ -289,10 +304,7 @@
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function doPostBack(id, strtemp) {
|
||||
var arr = strtemp.split(",")
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
alert(id + '&' + arr[i]);
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ Partial Class LKWS
|
||||
tr.Cells.Add(tc_Karten_Nr)
|
||||
'tbl_mainpage.Rows.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
|
||||
list3.Add(strstrstrstrtemp)
|
||||
|
||||
@@ -418,5 +418,21 @@ Partial Class LKWS
|
||||
Next
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user