From c3f221efae68cf8bf3c812f8845a9d8be0b6367a Mon Sep 17 00:00:00 2001 From: ja Date: Mon, 8 Nov 2021 13:42:03 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Customers/CustomsAviso.aspx.vb | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/Customers/CustomsAviso.aspx.vb b/Customers/CustomsAviso.aspx.vb index e3d69b3..eecb9b7 100644 --- a/Customers/CustomsAviso.aspx.vb +++ b/Customers/CustomsAviso.aspx.vb @@ -124,25 +124,14 @@ Partial Class CustomsAviso valDateRange_2.Enabled = True pickdate1.Visible = True pickdate2.Visible = True - If valreqpickdate1.IsValid = True And valreqpickdate2.IsValid = True Then - datevon = Date.Parse(pickdate1.Text) - datebis = Date.Parse(pickdate2.Text) - ElseIf pickdate1.Text = String.Empty And pickdate2.Text = String.Empty Then - datevon = Nothing - datebis = Nothing - End If - Else - lbl_von.Visible = False - lbl_bis.Visible = False - valreqpickdate1.Enabled = False - valreqpickdate2.Enabled = False - valDateRange_1.Enabled = False - valDateRange_2.Enabled = False - pickdate1.Visible = False - pickdate2.Visible = False + If valreqpickdate1.IsValid = True And valreqpickdate2.IsValid = True Then + datevon = Date.Parse(pickdate1.Text) + datebis = Date.Parse(pickdate2.Text) + ElseIf pickdate1.Text = String.Empty And pickdate2.Text = String.Empty Then datevon = Nothing datebis = Nothing End If + End If Else Page.MaintainScrollPositionOnPostBack = False rbt_Alle.Checked = True