Updated ItemInfo "HasChangeBar" property to use the Change ID format flag and the Change ID status to limit when a change bar is displayed.
Created a new property "HasChanges" which determines if the date time stamp of the current text element is newer than the procedures last approval date.
This commit is contained in:
parent
b5584b66b5
commit
c5bed5fe5a
@ -2245,6 +2245,24 @@ namespace VEPROMS.CSLA.Library
|
||||
#endregion
|
||||
#region Change Bar
|
||||
public bool HasChangeBar
|
||||
{
|
||||
get
|
||||
{
|
||||
bool chg = HasChanges;
|
||||
StepInfo si = this as StepInfo;
|
||||
if (si == null) return false;
|
||||
StepConfig sc = si.MyConfig as StepConfig;
|
||||
if (sc == null) return false;
|
||||
// if there is no override & return whether there was a change to the text.
|
||||
if (chg && ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds &&
|
||||
(sc.Step_ChangeID ?? "") == "")
|
||||
return false; // No Change ID - No Change Bar
|
||||
if (sc.Step_CBOverride == null)
|
||||
return chg;
|
||||
return (sc.Step_CBOverride == "On");
|
||||
}
|
||||
}
|
||||
public bool HasChanges
|
||||
{
|
||||
get
|
||||
{
|
||||
@ -2254,10 +2272,7 @@ namespace VEPROMS.CSLA.Library
|
||||
StepConfig sc = si.MyConfig as StepConfig;
|
||||
if (sc == null) return false;
|
||||
// if there is no override & return whether there was a change to the text.
|
||||
if (sc.Step_CBOverride == null)
|
||||
return (MyContent.DTS > MyProcedure.ChangeBarDate);
|
||||
else // override is on:
|
||||
return (sc.Step_CBOverride == "On");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
Loading…
x
Reference in New Issue
Block a user