C2019-045: Fix length of procedure number for CCR to work
C2019-045: For enhanced procedures, allow modification of number & title
This commit is contained in:
@@ -629,14 +629,19 @@ 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);
|
||||
foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
|
||||
// Update Enhanced Document Text
|
||||
StepConfig sc = new StepConfig(tmp.Config);
|
||||
foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
|
||||
{
|
||||
// Without this 'if' infinite loop. Only update text if in source and updating to point to enhanced.
|
||||
if (ed.Type != 0)
|
||||
{
|
||||
// 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);
|
||||
// C2019-045: For enhanced procedures, allow modification of number & text. A setting on the docversion (set from Properties dialog) defines whether text
|
||||
// can be modified if it is an enhanced item. If it can be modified, don't do the automatic update if the 'source' text is changed.
|
||||
bool doEnhancedMods = ii.EnhAllowMod();
|
||||
if (!doEnhancedMods)
|
||||
{
|
||||
ItemInfo ii = ItemInfo.Get(ed.ItemID);
|
||||
DisplayText dt = new DisplayText(ii, ii.MyContent.Text, false);
|
||||
string str = ItemInfo.Get(tmp.ContentItems[0].ItemID).DisplayTextKeepSpecialChars;
|
||||
dt.Save(str);
|
||||
@@ -650,6 +655,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
protected virtual void RefreshFields(Content tmp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user