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:
Rich
2015-10-27 13:30:46 +00:00
parent 98afa51783
commit 03303d785c
3 changed files with 12 additions and 19 deletions

View File

@@ -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)