New Enhanced Document Properties
DB Command Line Parameter now supports server name and ItemIDs. Added File extension parameter to Make Document
This commit is contained in:
@@ -627,22 +627,14 @@ namespace VEPROMS.CSLA.Library
|
||||
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);
|
||||
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();
|
||||
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();
|
||||
}
|
||||
}
|
||||
protected virtual void RefreshFields(Content tmp)
|
||||
|
Reference in New Issue
Block a user