Save Enhanced Document Properties

Support new Properties Step_SourceToBackground, Step_BackgroundToSource, Step_SourceToDeviation, Step_DeviationToSource
This commit is contained in:
Rich
2015-09-12 15:45:06 +00:00
parent 694c887710
commit 551b71e525
2 changed files with 85 additions and 0 deletions

View File

@@ -627,6 +627,23 @@ namespace VEPROMS.CSLA.Library
if (tmp.LocalEntry != null && tmpInfo.MyEntry != null && tmp.MyEntry.MyDocument.DocID != tmpInfo.MyEntry.MyDocument.DocID)
EntryInfo.Refresh(tmp.MyEntry);
}
StepConfig sc = new StepConfig(tmp.Config);
if (sc.Step_SourceToBackground != null)
{
int s2b = int.Parse(sc.Step_SourceToBackground);
ItemInfo iib = ItemInfo.Get(s2b);
Content cb = Content.Get(iib.MyContent.ContentID);
cb.Text = tmp.Text;
cb.Save();
}
if (sc.Step_SourceToDeviation != null)
{
int s2d = int.Parse(sc.Step_SourceToDeviation);
ItemInfo iid = ItemInfo.Get(s2d);
Content cd = Content.Get(iid.MyContent.ContentID);
cd.Text = tmp.Text;
cd.Save();
}
}
protected virtual void RefreshFields(Content tmp)
{