C2021-007 Add a Today button at the bottom of the calendar used to select a revision date. Also position the calendar to the previously entered date if one exists, or to today’s date if no previous revision date was entered. Same logic was implemented for Review Date (uses same calendar dialog)
C2021-008 Rename the PDF Links on/off switch to “Create RO and Transition Hyperlinks”.
This commit is contained in:
@@ -1029,7 +1029,9 @@ namespace VEPROMS
|
||||
txbDate = txbRevDate;
|
||||
grpDateSelector.Text = "Select Revision Date";
|
||||
grpDateSelector.Visible = calDateSelector.Visible = true;
|
||||
|
||||
//C2021-007 position the calendar to the current RevDate or if no RevDate, position to today's date
|
||||
DateTime initSelDate =(txbDate.Text != null && txbDate.Text.Length != 0)? Convert.ToDateTime(txbDate.Text) : DateTime.Today;
|
||||
calDateSelector.DisplayMonth = calDateSelector.SelectedDate = initSelDate;
|
||||
}
|
||||
|
||||
private void txbRevDate_Leave(object sender, EventArgs e)
|
||||
@@ -1076,6 +1078,9 @@ namespace VEPROMS
|
||||
txbDate = txbReviewDate;
|
||||
grpDateSelector.Text = "Select Review Date";
|
||||
grpDateSelector.Visible = calDateSelector.Visible = true;
|
||||
//C2021-007 position the calendar to the current ReviewDate or if no ReviewDate, position to today's date
|
||||
DateTime initSelDate = (txbDate.Text != null && txbDate.Text.Length != 0) ? Convert.ToDateTime(txbDate.Text) : DateTime.Today;
|
||||
calDateSelector.DisplayMonth = calDateSelector.SelectedDate = initSelDate;
|
||||
}
|
||||
|
||||
private TextBox txbDate = null;
|
||||
|
Reference in New Issue
Block a user