Enhanced Document support
Null check Move DisplayText.cs to CSLA Enhanced Documents – don’t allow ‘Save’ RO on enhanced step Enhanced Documents windowing Enhanced Documents remove unnecessary options Enhanced Documents – don’t allow ‘Save’ transition on enhanced step Enhanced Documents/Insert,Delete,Paste
This commit is contained in:
@@ -623,18 +623,22 @@ namespace VEPROMS.CSLA.Library
|
||||
foreach (ContentInfo tmpInfo in _CacheByPrimaryKey[key])
|
||||
{
|
||||
tmpInfo.RefreshFields(tmp);
|
||||
// TODO: This needs to be handled in Generatedd Code.
|
||||
// TODO: This needs to be handled in Generated Code.
|
||||
if (tmp.LocalEntry != null && tmpInfo.MyEntry != null && tmp.MyEntry.MyDocument.DocID != tmpInfo.MyEntry.MyDocument.DocID)
|
||||
EntryInfo.Refresh(tmp.MyEntry);
|
||||
}
|
||||
// Update Enhanced Document Text
|
||||
StepConfig sc = new StepConfig(tmp.Config);
|
||||
foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
|
||||
{ // The following should be replaced by KBR
|
||||
ItemInfo ii = ItemInfo.Get(ed.ItemID);
|
||||
Content cc = ii.MyContent.Get();
|
||||
cc.Text = tmp.Text;
|
||||
cc.Save();
|
||||
{
|
||||
// Without this 'if' infinite loop. Only update text if in source and updating to point to enhanced.
|
||||
if (ed.Type != 0)
|
||||
{
|
||||
ItemInfo ii = ItemInfo.Get(ed.ItemID);
|
||||
DisplayText dt = new DisplayText(ii, ii.MyContent.Text, false);
|
||||
string str = ItemInfo.Get(tmp.ContentItems[0].ItemID).DisplayText;
|
||||
dt.Save(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
protected virtual void RefreshFields(Content tmp)
|
||||
|
Reference in New Issue
Block a user