Mobilversion wurde implementiert der Seitenmenüs sowie Gestaltung der Seite insgesamt

This commit is contained in:
ja
2021-09-17 12:02:40 +02:00
parent 7712435b9a
commit 84a8ee5508
2 changed files with 51 additions and 25 deletions

View File

@@ -92,7 +92,7 @@
<asp:ListItem ID="rbt_Freig" GroupName="radios" data-bs-toggle="tooltip" data-bs-placement="top" title="Wenn dieser Filter angewählt ist, bitte das Datum eingrenzen." style="font-size:/*17px*/1.063em">Freigabe</asp:ListItem> <asp:ListItem ID="rbt_Freig" GroupName="radios" data-bs-toggle="tooltip" data-bs-placement="top" title="Wenn dieser Filter angewählt ist, bitte das Datum eingrenzen." style="font-size:/*17px*/1.063em">Freigabe</asp:ListItem>
</asp:RadioButtonList> </asp:RadioButtonList>
</div> </div>
</div> </div>
<div class="d-md-none"> <div class="d-md-none">
<div class="col-8" style="margin-left:8px" > <div class="col-8" style="margin-left:8px" >
<asp:RadioButtonList id="RadioButtonList2" runat="server" RepeatDirection="Vertical" style="border-color:#fff"> <asp:RadioButtonList id="RadioButtonList2" runat="server" RepeatDirection="Vertical" style="border-color:#fff">
@@ -132,6 +132,7 @@
<div class="col-12" id="cont3"> <div class="col-12" id="cont3">
<div class="container" style="margin-left:2px"> <div class="container" style="margin-left:2px">
<div id="Abstand"></div> <div id="Abstand"></div>
<div class="d-none d-md-block">
<!-- Optionale Suchparameter--> <!-- Optionale Suchparameter-->
<div class="row"> <div class="row">
<div id="rowcol1" class="col-12" style="margin-right:/*1.52px;*/0.33480176211453744vw;"> <div id="rowcol1" class="col-12" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
@@ -149,6 +150,28 @@
<asp:TextBox ID="txt_Empfaenger" runat="server" style="width:155px; margin-left:52px;"></asp:TextBox> <asp:TextBox ID="txt_Empfaenger" runat="server" style="width:155px; margin-left:52px;"></asp:TextBox>
</div> </div>
</div> </div>
</div>
<div class="d-md-none">
<div id="rowcol3" class="col-10 row" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
<div class="row">
<asp:Label ID="lbl_LKWNr_M" runat="server" Text="LKW Nr"></asp:Label>
<asp:TextBox ID="txt_LKWNr_M" runat="server" style="width:117px; margin-left:25px;"></asp:TextBox>
</div>
<div id="rowcol4" class="col-10 row" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
<asp:Label ID="lbl_KdNrAuftrag_M" runat="server" Text="Kunden Auftrags Nr" style="margin-left:45px"></asp:Label>
<asp:TextBox ID="txt_KdNrAuftrag_M" runat="server" style="width:117px; margin-left:6px;"></asp:TextBox>
</div>
<div id="rowcol5" class="col-10 row" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
<asp:Label ID="lbl_Absender_M" runat="server" Text="Absender"></asp:Label>
<asp:TextBox ID="txt_Absender_M" runat="server" style="width:155px; margin-left:8px;"></asp:TextBox>
</div>
<div id="rowcol6" class="col-10 row" style="margin-right:/*1.52px;*/0.33480176211453744vw;">
<asp:Label ID="lbl_Empfaenger_M" runat="server" Text="Empfänger" style="margin-left:9px"></asp:Label>
<asp:TextBox ID="txt_Empfaenger_M" runat="server" style="width:155px; margin-left:52px;"></asp:TextBox>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@@ -223,7 +246,12 @@
} else { } else {
$("#container2").hide(); $("#container2").hide();
} }
}); });
});
</script>
<script type='text/javascript'>
$(document).ready(function () {
$("#container2").hide();
$('#<%=RadioButtonList2.ClientID %> input[type="radio"]').change(function () { $('#<%=RadioButtonList2.ClientID %> input[type="radio"]').change(function () {
if ($(this).val() == "Freigabe") { if ($(this).val() == "Freigabe") {
$("#container2").show(); $("#container2").show();
@@ -233,6 +261,6 @@
$("#container2").hide(); $("#container2").hide();
} }
}); });
}); });
</script> </script>
</asp:Content> </asp:Content>

View File

@@ -44,39 +44,37 @@ Partial Class Kundenbereich_Default
Kdnrtext = Session.Item("CustomerID").ToString Kdnrtext = Session.Item("CustomerID").ToString
dt = Nothing dt = Nothing
If txt_Absender.Text IsNot "" Then If txt_Absender.Text IsNot "" Or txt_Absender_M.Text IsNot "" Then
txt_Absender.ValidateRequestMode = UI.ValidateRequestMode.Enabled txt_Absender.ValidateRequestMode = UI.ValidateRequestMode.Enabled
Absender = txt_Absender.Text Absender = txt_Absender.Text
ElseIf txt_Empfaenger.Text IsNot "" Then txt_Absender_M.ValidateRequestMode = UI.ValidateRequestMode.Enabled
Absender = txt_Absender_M.Text
ElseIf txt_Empfaenger.Text IsNot "" Or txt_Empfaenger_M.Text IsNot "" Then
txt_Empfaenger.ValidateRequestMode = UI.ValidateRequestMode.Enabled txt_Empfaenger.ValidateRequestMode = UI.ValidateRequestMode.Enabled
Empfaenger = txt_Empfaenger.Text Empfaenger = txt_Empfaenger.Text
ElseIf txt_KdNrAuftrag.Text IsNot "" Then txt_Empfaenger_M.ValidateRequestMode = UI.ValidateRequestMode.Enabled
Empfaenger = txt_Empfaenger_M.Text
ElseIf txt_KdNrAuftrag.Text IsNot "" Or txt_KdNrAuftrag_M.Text IsNot "" Then
txt_KdNrAuftrag.ValidateRequestMode = UI.ValidateRequestMode.Enabled txt_KdNrAuftrag.ValidateRequestMode = UI.ValidateRequestMode.Enabled
KDNAFNR = txt_KdNrAuftrag.Text KDNAFNR = txt_KdNrAuftrag.Text
ElseIf txt_LKWNr.Text IsNot "" Then txt_KdNrAuftrag_M.ValidateRequestMode = UI.ValidateRequestMode.Enabled
KDNAFNR = txt_KdNrAuftrag_M.Text
ElseIf txt_LKWNr.Text IsNot "" Or txt_LKWNr_M.Text IsNot "" Then
txt_LKWNr.ValidateRequestMode = UI.ValidateRequestMode.Enabled txt_LKWNr.ValidateRequestMode = UI.ValidateRequestMode.Enabled
LKWNR = txt_LKWNr.Text LKWNR = txt_LKWNr.Text
txt_LKWNr_M.ValidateRequestMode = UI.ValidateRequestMode.Enabled
LKWNR = txt_LKWNr_M.Text
End If End If
'Dim tr 'Dim tr
If rbt_Alle.Selected = True Or rbt_Alle_M.Selected = True Then If rbt_Alle.Selected = True Or rbt_Alle_M.Selected = True Then
If pickdate1.Text = Nothing AndAlso pickdate2.Text = Nothing Then If Date.Parse(pickdate2.Text) > Date.Parse(pickdate1.Text) Then
MsgBox("Bitte ein Datum auswählen!", MsgBoxStyle.Information, "Information!") Try
datevon = Date.Parse(pickdate1.Text)
pickdate1.BackColor = Drawing.Color.Aqua datebis = Date.Parse(pickdate2.Text)
pickdate2.BackColor = Drawing.Color.Aqua Catch ex As Exception
lbl_von.BackColor = Drawing.Color.Red MsgBox(ex.StackTrace, MsgBoxStyle.Exclamation)
lbl_bis.BackColor = Drawing.Color.Red End Try
Else
If Date.Parse(pickdate2.Text) > Date.Parse(pickdate1.Text) Then
Try
datevon = Date.Parse(pickdate1.Text)
datebis = Date.Parse(pickdate2.Text)
Catch ex As Exception
MsgBox(ex.StackTrace, MsgBoxStyle.Exclamation)
End Try
End If
Return
End If End If
dt = VERAG_PROG_ALLGEMEIN.cAviso.GET_KDLIST_WEB("", Kdnrtext, {0, 1, 2, 3, 4, 5}, datevon, datebis, Absender, Empfaenger, LKWNR, KDNAFNR) dt = VERAG_PROG_ALLGEMEIN.cAviso.GET_KDLIST_WEB("", Kdnrtext, {0, 1, 2, 3, 4, 5}, datevon, datebis, Absender, Empfaenger, LKWNR, KDNAFNR)