B2023-015 Added Print_ViewableStartingChangeBarDate will get date only if user overrode from context menu of the procedure – used in HasChanges in itemExt.cs
B2023-015 added check for user override of the date to start showing change bars. Logic needed to handle when printing Child procedures.
This commit is contained in:
@@ -411,7 +411,27 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Print_RevDate");
|
||||
}
|
||||
}
|
||||
//new changebar_date
|
||||
[Category("Print Settings")]
|
||||
[Browsable(false)]
|
||||
[DisplayName("User Selected ChangeBarDate View")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("The view change bars starting date stored in ChangeBarDate")]
|
||||
// B2023-015 this allows us to better determine if a change bar should be view/printed for child (slave) procedures
|
||||
// when the user selects view change bars starting date, it's stored in the procedure config under "ChangeBarDate"
|
||||
// (see the Set for Print_ChangeBarDate)
|
||||
public DateTime? Print_ViewableStartingChangeBarDate
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime? dt = null;
|
||||
string s = _Xp["Procedure", "ChangeBarDate"];
|
||||
if (s!= null && s!="")
|
||||
dt = DateTime.Parse(s);
|
||||
return dt;
|
||||
}
|
||||
}
|
||||
|
||||
//new changebar_date
|
||||
[Category("Print Settings")] //Note that this print setting is stored under 'Procedure' element
|
||||
[Browsable(false)]
|
||||
[DisplayName("Revision ChangeBarDate")]
|
||||
|
Reference in New Issue
Block a user