Anpassungen Variablen/Logik
This commit is contained in:
@@ -623,8 +623,7 @@
|
||||
<script type="text/javascript" src="../js/scrollscript.js"></script>
|
||||
<!-- JQUERY Script fuer Modal-->
|
||||
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
<!-- 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://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
|
||||
<!-- Bootstrap JS -->
|
||||
|
||||
@@ -80,26 +80,14 @@
|
||||
<tr><td>
|
||||
<tr><td><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /></td></tr>
|
||||
<tr><td><input type="range" ID="sld_getbenchmarkheat" runat="server" AutoPostback="True" data-bs-toggle="tooltip" data-bs-placement="top" title="Disabled! Still under construction!" disabled="false" aria-disabled="false"/></td><td><asp:Label ID="lbl_valslider" runat="server">Wert der Stufe(1-100)</asp:Label></td></tr>
|
||||
<tr><td><asp:Button ID="btn_TesthashrateServer" data-bs-toggle="tooltip" data-bs-placement="top" title="Disabled! Still under construction!" Enabled="true" runat="server" Font-Overline="false" BorderStyle="Dashed" ClientIDMode="AutoID" OnClick="btn_TesthashrateServer_ClickAsync" Text="Test hashrate of Server!" /></td></tr>
|
||||
<tr><td><asp:Label runat="server" ID="lbl_Status" Text="Hier wird das Ergebnis des Benchmark Tests angezeigt!"></asp:Label></td></tr></table>
|
||||
<tr><td><asp:Button ID="btn_TesthashrateServer" data-bs-toggle="tooltip" data-bs-placement="top" title="Disabled! Still under construction!" Enabled="true" runat="server" Font-Overline="false" BorderStyle="Dashed" ClientIDMode="AutoID" OnClick="btn_TesthashrateServer_ClickAsync" Text="" /></td></tr>
|
||||
<tr><td><asp:Label runat="server" ID="lbl_Status" Text="Hier wird das Ergebnis des Benchmark Tests angezeigt!" style="color:darkcyan"></asp:Label></td></tr></table>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<script>
|
||||
var slider = document.getElementById('<%=sld_getbenchmarkheat.ClientID%>');
|
||||
$('<%=lbl_valslider.ClientID%>').change(function () { slider.value = parseInt(this.value) });
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$('<%=btn_TesthashrateServer.ClientID%>').on('click', function (e) {
|
||||
if ((e.target.id === 'ok') || (e.target.id === 'cancel')) {
|
||||
return ();
|
||||
} else {
|
||||
// display message box
|
||||
alert("Wirklich?")
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -9,32 +9,41 @@ Partial Class Customers_Default2
|
||||
|
||||
If Page.IsPostBack Then
|
||||
Page.MaintainScrollPositionOnPostBack = True
|
||||
|
||||
If Not HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
btn_TesthashrateServer.Text = "Test hashrate of the Server!"
|
||||
Else
|
||||
btn_TesthashrateServer.Text = "Test hashrate of the local machine!"
|
||||
End If
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
If Integer.Parse(sld_getbenchmarkheat.Value) < 10 Then
|
||||
MemorySizelocal = (((nIterations * 1) * 4.68 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 0.75 * 254
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 7.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 400
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 0), Math.Pow(2, 1)), Math.Pow(2, 2))
|
||||
MemorySizelocal = (((nIterations * 1) * 4.28 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 0.75 * 354
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 5.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 400
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(Math.Pow(2, 2), Math.Pow(2, 4))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 10 And Integer.Parse(sld_getbenchmarkheat.Value) < 40 Then
|
||||
MemorySizelocal = (((nIterations * 2) * 4.68 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 0.75 * 290
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 7.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 416
|
||||
MemorySizelocal = (((nIterations * 1.255) * 4.48 - ((nIterations * 1.12) * 1.23) / 4 * 1.5) / 1.05) + 0.75 * 390
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.5)) * 6.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 516
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 0), Math.Pow(2, 2)), Math.Pow(2, 4))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 40 And Integer.Parse(sld_getbenchmarkheat.Value) < 60 Then
|
||||
MemorySizelocal = (((nIterations * 2.45) * 4.98 - ((nIterations * 1.15) * 1.23) / 4 * 1.5) / 1.05) + 0.95 * 290
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 7.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 0.56) / 1.85 * 2.28) / 7.28) + 1.024 * 416
|
||||
MemorySizelocal = (((nIterations * 1.45) * 4.98 - ((nIterations * 1.15) * 1.23) / 4 * 1.5) / 1.05) + 0.95 * 420
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 7.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 0.56) / 1.85 * 2.28) / 7.28) + 1.024 * 646
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 0), Math.Pow(2, 4)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 3), Math.Pow(2, 4)))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 60 And Integer.Parse(sld_getbenchmarkheat.Value) < 80 Then
|
||||
MemorySizelocal = (((nIterations * 2.45) * 4.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 290
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 8.585 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 0.56) / 1.85 * 2.28) / 7.28) + 1.024 * 416
|
||||
MemorySizelocal = (((nIterations * 1.85) * 4.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 790
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 8.585 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 2.32)) * 0.56) / 1.85 * 2.28) / 7.28) + 1.024 * 816
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 4), Math.Pow(2, 5)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 5), Math.Pow(2, 7)))
|
||||
ElseIf Integer.Parse(sld_getbenchmarkheat.Value) > 80 And Integer.Parse(sld_getbenchmarkheat.Value) < 100 Then
|
||||
MemorySizelocal = (((nIterations * 2) * 4.98 - ((nIterations * 2) * 1.23) / 4 * 1.5) / 1.05) + 1 * 290
|
||||
MemorySizeProductionServ = (((nIterations * VERAG_VARIABLES.RandomInteger(1, 3)) * 9.485 - ((nIterations * VERAG_VARIABLES.RandomInteger(1, 3)) * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 416
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 5), Math.Pow(2, 6)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 6), Math.Pow(2, 7)))
|
||||
randzahl = VERAG_VARIABLES.RandomInteger(VERAG_VARIABLES.RandomInteger(Math.Pow(2, 3), Math.Pow(2, 4)), VERAG_VARIABLES.RandomInteger(Math.Pow(2, 5), Math.Pow(2, 7)))
|
||||
End If
|
||||
Else
|
||||
Page.MaintainScrollPositionOnPostBack = False
|
||||
VERAG_VARIABLES.initerrorcount()
|
||||
If Not HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
btn_TesthashrateServer.Text = "Test hashrate of the Server!"
|
||||
Else
|
||||
btn_TesthashrateServer.Text = "Test hashrate of the local machine!"
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -61,25 +70,25 @@ Partial Class Customers_Default2
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Protected Sub btn_TesthashrateServer_ClickAsync(sender As Object, e As EventArgs) Handles btn_TesthashrateServer.Click
|
||||
Protected Async Sub btn_TesthashrateServer_ClickAsync(sender As Object, e As EventArgs) Handles btn_TesthashrateServer.Click
|
||||
Dim Boole As Boolean = New Boolean
|
||||
Dim ram As Double = Double.Parse(My.Computer.Info.TotalPhysicalMemory.ToString)
|
||||
Dim pwhashresult As Byte()
|
||||
If MemorySizelocal < ram And HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
pwhashresult = TestPerformance.TestHashrateServer(randzahl)
|
||||
Dim pwhashresult As String
|
||||
If MemorySizelocal <= ram - (10 * 1024) And HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
pwhashresult = Await TestPerformance.TestHashrateServerAsync(randzahl)
|
||||
Boole = True
|
||||
ElseIf MemorySizeProductionServ < ram And Not HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
pwhashresult = TestPerformance.TestHashrateServer(randzahl)
|
||||
ElseIf MemorySizeProductionServ <= ram - 2048 And Not HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
pwhashresult = Await TestPerformance.TestHashrateServerAsync(randzahl)
|
||||
Boole = True
|
||||
Else
|
||||
Boole = False
|
||||
End If
|
||||
If Boole = True AndAlso HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
lbl_Status.ForeColor = Drawing.Color.Green
|
||||
lbl_Status.Text = "Der Test wurde erfolgreich bestanden! Der Salt lautet:" + Convert.ToBase64String(pwhashresult) + System.Environment.NewLine + "der Ram betrug:" + MemorySizelocal.ToString
|
||||
lbl_Status.Text = "Der Test wurde erfolgreich bestanden!" + System.Environment.NewLine + "Der Hash lautet:" + pwhashresult + System.Environment.NewLine + "der Ram betrug:" + MemorySizelocal.ToString
|
||||
ElseIf Boole = True AndAlso Not HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
lbl_Status.ForeColor = Drawing.Color.Green
|
||||
lbl_Status.Text = "Der Test wurde erfolgreich bestanden! Der Hash lautet:" + Convert.ToBase64String(pwhashresult) + System.Environment.NewLine + "der Ram betrug:" + MemorySizeProductionServ.ToString
|
||||
lbl_Status.Text = "Der Test wurde erfolgreich bestanden!" + System.Environment.NewLine + "Der Hash lautet:" + pwhashresult + System.Environment.NewLine + "der Ram betrug:" + MemorySizeProductionServ.ToString
|
||||
ElseIf Boole = False AndAlso HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
|
||||
lbl_Status.ForeColor = Drawing.Color.Red
|
||||
lbl_Status.Text = "Test fehlgeschlagen! Es fehlen mindestens " + MemorySizelocal - ram + "Bytes RAM!"
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
<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">
|
||||
@@ -133,17 +133,22 @@
|
||||
<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>
|
||||
</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>
|
||||
<!-- 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>-->
|
||||
<!-- jQuery CDN - min version -->
|
||||
<script src="https://code.jquery.com/jquery-3.1.1.min.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>-->
|
||||
<!-- Production version -->
|
||||
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
|
||||
function TableRow_Click(Nat, Kennzeichen,tempstrarr) {
|
||||
|
||||
@@ -175,7 +180,7 @@
|
||||
alert(error);
|
||||
}
|
||||
function TableRow_Click_M(Nat, Kennzeichen,tempstrarr_M) {
|
||||
debugger
|
||||
//debugger
|
||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>");
|
||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder_M.ClientID%>");
|
||||
let table_M = document.getElementById("<%=tbl_mainpage_M.ClientID%>")
|
||||
@@ -310,36 +315,51 @@
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function doPostBack(id) {
|
||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
||||
Speditionslabel.textContent = id.split(',')[0];
|
||||
natplaceholder.textContent = id.split(',')[1];
|
||||
const obj = JSON.parse(id.split(',')[2]);
|
||||
|
||||
for (let i = 0; i <= obj.length; i++) {
|
||||
let SDL = obj[i].result;
|
||||
let Bez = obj[i++].result;
|
||||
let Datguenstig = obj[i++].result;
|
||||
let KartNr = obj[i++].result;
|
||||
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
|
||||
let natplaceholder = document.getElementById('<%=lbl_Placeholder.ClientID%>');
|
||||
alert(id)
|
||||
let table = document.getElementById('<%=tbl_mainpage.ClientID%>');
|
||||
var rowCount = table.rows.length;
|
||||
|
||||
Pagemethods.filltable2(<%=tbl_mainpage%>, SDL, Bez, Datguenstig, KartNr)
|
||||
for (let i = rowCount - 1; i > 0; i--) {
|
||||
table.deleteRow(i);
|
||||
}
|
||||
Speditionslabel.textContent = id.split(',')[0];
|
||||
natplaceholder.textContent = id.split(',')[1];
|
||||
addheader()
|
||||
debugger
|
||||
|
||||
//for (let i = 0; i <= 5; i++) {
|
||||
// let SDL = "453543535434334543";
|
||||
// let Bez = "Diesel";
|
||||
// let Datguenstig = "01/05/2021";
|
||||
//let KartNr = "6005222022021";
|
||||
//addNewRow(SDL,Bez,Datguenstig,KartNr)
|
||||
// Pagemethods.filltable2(<%' =tbl_mainpage %> , SDL, Bez, Datguenstig, KartNr)
|
||||
//}
|
||||
Pagemethods.filltable2(id.split(',')[0])
|
||||
}
|
||||
function doPostBack_M(id) {
|
||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder.ClientID%>")
|
||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder.ClientID%>")
|
||||
let Speditionslabel = document.getElementById("<%=lbl_sped_Placeholder_M.ClientID%>")
|
||||
let natplaceholder = document.getElementById("<%=lbl_Placeholder_M.ClientID%>")
|
||||
Speditionslabel.textContent = id.split(',')[0];
|
||||
natplaceholder.textContent = id.split(',')[1];
|
||||
const obj = JSON.parse(id.split(",")[2])
|
||||
alert(obj.result)
|
||||
let table_M = document.getElementById("<%=tbl_mainpage_M.ClientID%>")
|
||||
var rowCount = table_M.rows.length;
|
||||
|
||||
for (let i = rowCount - 1; i > 0; i--) {
|
||||
table_M.deleteRow(i);
|
||||
}
|
||||
addheader_M()
|
||||
for (let i = 0; i <= obj.length; i++) {
|
||||
let SDL = obj[i].result;
|
||||
let Bez = obj[i++].result;
|
||||
let Datguenstig = obj[i++].result;
|
||||
let KartNr = obj[i++].result;
|
||||
|
||||
Pagemethods.filltable2_M(<%=tbl_mainpage_M%>, SDL, Bez, Datguenstig, KartNr)
|
||||
Pagemethods.filltable2_M(id.split(',')[0])
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
Imports System.Web.Script.Serialization
|
||||
Imports System.Web.Script.Services
|
||||
Imports System.Web.Security
|
||||
Imports System.Web.Services
|
||||
Imports System.Web.UI.WebControls
|
||||
@@ -132,10 +133,10 @@ Partial Class LKWS
|
||||
For Each l2 In list2
|
||||
Dim String2 As String = String.Empty
|
||||
|
||||
If IsNothing(l2.Schadstoffklasse) = False Then
|
||||
Stringtemp = l2.Kategorie.ToString
|
||||
If IsNothing(l2.Kategorie) = True Then
|
||||
Stringtemp = "Keine Angabe"
|
||||
Else
|
||||
Stringtemp = String.Empty
|
||||
Stringtemp = l2.Kategorie.ToString
|
||||
End If
|
||||
|
||||
Dim tc_SDL As TableCell = New TableCell
|
||||
@@ -166,7 +167,7 @@ Partial Class LKWS
|
||||
strtemp2 = l1.Nationalität
|
||||
End If
|
||||
|
||||
tr1.Attributes.Add("onclick", "Javascript:doPostBack('""" + tr1.Cells.Item(0).Text + """,""" + strtemp2 + """,""" + ConvertToJSON(list3) + """')")
|
||||
tr1.Attributes.Add("onclick", "Javascript:doPostBack('""" + tr1.Cells.Item(0).Text + """,""" + strtemp2 + """')")
|
||||
cnt += 1
|
||||
tbl_sidemenue.Rows.Add(tr1)
|
||||
Next
|
||||
@@ -265,8 +266,8 @@ Partial Class LKWS
|
||||
initcells(tblhrow, tbhc_KFZKennz, tbhc_Nat, tblhc_Verk, tblhc_Kz, tblhc_Verm, tr2, tc_KfzKennz, tc_Nationalitaet, tc_Verk, tc_KZ_An, tc_Vermerk, cnt)
|
||||
tr2.Attributes.Add("onclick", "Javascript:doPostBack('""" + tr2.Cells.Item(0).Text + """,""" + strtempnat + """,""" + ConvertToJSON(list3) + """')")
|
||||
tbl_sidemenue.Rows.Add(tr2)
|
||||
cnt += 1
|
||||
Next
|
||||
cnt += 1
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Protected Sub btn_Suchen_M_Click(sender As Object, e As EventArgs)
|
||||
@@ -397,7 +398,7 @@ Partial Class LKWS
|
||||
|
||||
For Each l2 In list2
|
||||
Dim String2 As String = String.Empty
|
||||
If IsNothing(l2.Schadstoffklasse) = False Then
|
||||
If IsNothing(l2.Kategorie) = False Then
|
||||
Stringtemp_M = l2.Kategorie.ToString
|
||||
Else
|
||||
Stringtemp_M = String.Empty
|
||||
@@ -435,37 +436,51 @@ Partial Class LKWS
|
||||
End Sub
|
||||
|
||||
<WebMethod>
|
||||
Public Sub filltable2(Tbl As Table, 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.Rows.Add(tr)
|
||||
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)>
|
||||
Public Sub filltable2(Kennzeichen As String)
|
||||
Dim tbl As Table = New Table
|
||||
Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(401940, Kennzeichen)
|
||||
For Each l2 In list2
|
||||
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 = l2.SDLNr.ToString
|
||||
tc_Bezeichnung.Text = l2.Kategorie.ToString
|
||||
tc_GueltigBis.Text = l2.GültigBis.ToString
|
||||
tc_KartNr.Text = l2.KartenNr.ToString
|
||||
tr.Cells.Add(tc_SDLNr)
|
||||
tr.Cells.Add(tc_Bezeichnung)
|
||||
tr.Cells.Add(tc_GueltigBis)
|
||||
tr.Cells.Add(tc_KartNr)
|
||||
tr.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;")
|
||||
tbl.Rows.Add(tr)
|
||||
Next
|
||||
End Sub
|
||||
<WebMethod>
|
||||
Public Sub filltable_M(Tbl As Table, 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_M As TableRow = New TableRow
|
||||
tc_SDLNr.Text = SDLNr
|
||||
tc_Bezeichnung.Text = Bezeichnung
|
||||
tc_GueltigBis.Text = GueltigBis
|
||||
tc_KartNr.Text = KartNr
|
||||
tr_M.Cells.Add(tc_SDLNr)
|
||||
tr_M.Cells.Add(tc_Bezeichnung)
|
||||
tr_M.Cells.Add(tc_GueltigBis)
|
||||
tr_M.Cells.Add(tc_KartNr)
|
||||
Tbl.Rows.Add(tr_M)
|
||||
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)>
|
||||
Public Sub filltable_M(Kennzeichen As String)
|
||||
Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(401940, Kennzeichen)
|
||||
Dim Tbl As New Table
|
||||
For Each l2 In list2
|
||||
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_M As TableRow = New TableRow
|
||||
|
||||
tc_SDLNr.Text = l2.SDLNr.ToString
|
||||
tc_Bezeichnung.Text = l2.Kategorie.ToString
|
||||
tc_GueltigBis.Text = l2.GültigBis.ToString
|
||||
tc_KartNr.Text = l2.KartenNr.ToString
|
||||
tr_M.Cells.Add(tc_SDLNr)
|
||||
tr_M.Cells.Add(tc_Bezeichnung)
|
||||
tr_M.Cells.Add(tc_GueltigBis)
|
||||
tr_M.Cells.Add(tc_KartNr)
|
||||
tr_M.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;")
|
||||
Tbl.Rows.Add(tr_M)
|
||||
Next
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user