Enhanced Documents - Change Bars

This commit is contained in:
Rich 2016-08-09 13:10:58 +00:00
parent f9029bb00b
commit d2384ef4c3

View File

@ -2983,11 +2983,11 @@ namespace VEPROMS.CSLA.Library
StepConfig sc = si.MyConfig as StepConfig;
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 (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.
return (MyContent.DTS > MyProcedure.ChangeBarDate);
}