Merge pull request 'B2024-063-Invalid-Format-message-box-displays-when-rev-date-empty-2' (#398) from B2024-063-Invalid-Format-message-box-displays-when-rev-date-empty-2 into Development
OK for testing phase
This commit is contained in:
commit
63cac73de3
@ -1206,6 +1206,9 @@ namespace VEPROMS
|
|||||||
private bool validateDate(TextBox txtDate)
|
private bool validateDate(TextBox txtDate)
|
||||||
{
|
{
|
||||||
DateTime dDate;
|
DateTime dDate;
|
||||||
|
if (!(txtDate.Text == ""))
|
||||||
|
{
|
||||||
|
|
||||||
if (DateTime.TryParse(txtDate.Text, out dDate))
|
if (DateTime.TryParse(txtDate.Text, out dDate))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -1219,6 +1222,8 @@ namespace VEPROMS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
private void txbRevDate_Enter(object sender, EventArgs e)
|
private void txbRevDate_Enter(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user