Enhanced Documents - Change Bars are based upon the source document rather than the step which is automatically updated

This commit is contained in:
Rich 2016-08-09 13:06:15 +00:00
parent 1bf77667b2
commit f9029bb00b

View File

@ -2982,6 +2982,12 @@ namespace VEPROMS.CSLA.Library
if (si == null) return false; if (si == null) return false;
StepConfig sc = si.MyConfig as StepConfig; StepConfig sc = si.MyConfig as StepConfig;
if (sc == null) return false; if (sc == null) return false;
// go back to source & see what date it has:
//if (sc.MyEnhancedDocuments != null && sc.MyEnhancedDocuments.Count == 1 && sc.MyEnhancedDocuments[0].Type == 0)
//{
// ItemInfo ii = ItemInfo.Get(sc.MyEnhancedDocuments[0].ItemID);
// return (ii.MyContent.DTS > MyProcedure.ChangeBarDate);
//}
// if there is no override & return whether there was a change to the text. // if there is no override & return whether there was a change to the text.
return (MyContent.DTS > MyProcedure.ChangeBarDate); return (MyContent.DTS > MyProcedure.ChangeBarDate);
} }