From f9029bb00b4741e9770362b65f58581fe021ade4 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 9 Aug 2016 13:06:15 +0000 Subject: [PATCH] Enhanced Documents - Change Bars are based upon the source document rather than the step which is automatically updated --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index f50f37dd..cde363a1 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -2982,6 +2982,12 @@ namespace VEPROMS.CSLA.Library if (si == null) return false; 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 there is no override & return whether there was a change to the text. return (MyContent.DTS > MyProcedure.ChangeBarDate); }