Development #392
@ -1096,6 +1096,7 @@ namespace VEPROMS
|
||||
}
|
||||
private void btnCreatePDF_Click(object sender, EventArgs e)
|
||||
{
|
||||
// B2024-058 Add validation for Revision Date field of the Print dialog
|
||||
if (txbRevDate.Visible)
|
||||
{
|
||||
if (!validateDate(txbRevDate))
|
||||
@ -1201,7 +1202,7 @@ namespace VEPROMS
|
||||
if (_Initializing) return;
|
||||
ppGpbxUserSpecTxt.Enabled = ppCmbxChgBarTxtType.SelectedIndex == (int)PrintChangeBarText.UserDef;
|
||||
}
|
||||
|
||||
// B2024-058 Add validation for Revision Date field of the Print dialog
|
||||
private bool validateDate(TextBox txtDate)
|
||||
{
|
||||
DateTime dDate;
|
||||
@ -1226,6 +1227,7 @@ namespace VEPROMS
|
||||
grpDateSelector.Visible = calDateSelector.Visible = true;
|
||||
//C2021-007 position the calendar to the current RevDate or if no RevDate, position to today's date
|
||||
DateTime dDate;
|
||||
// B2024-058 Add validation for Revision Date field of the Print dialog
|
||||
if (!validateDate(txbDate))
|
||||
{
|
||||
txbRevDate.Focus();
|
||||
@ -1236,13 +1238,6 @@ namespace VEPROMS
|
||||
calDateSelector.DisplayMonth = calDateSelector.SelectedDate = initSelDate;
|
||||
}
|
||||
}
|
||||
|
||||
private void txbRevDate_Validating(object sender, EventArgs e)
|
||||
{
|
||||
string x = "";
|
||||
x = "this is it";
|
||||
}
|
||||
|
||||
private void txbRevDate_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (_Initializing) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user