C2015-028 Add Editorial Mode to PROMS Step Editor
This commit is contained in:
@@ -799,27 +799,41 @@ namespace Volian.Controls.Library
|
||||
// if the plant has the change id option, the change id was entered when the program started.
|
||||
// this should be saved for every piece of edited data. Note that the set of config
|
||||
// item Step_MultipleChangeID has the save built in to it.
|
||||
if (sc == null) sc = new StepConfig();
|
||||
if (MyStepRTB.MyItemInfo.IsStep &&
|
||||
MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds
|
||||
&& !this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange)
|
||||
{
|
||||
//StepConfig sc = MyStepRTB.MyItemInfo.MyConfig as StepConfig;
|
||||
if (sc == null) sc = new StepConfig();
|
||||
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
||||
//if (MyStepRTB.MyItemInfo.MyConfig == null) itm.MyContent.Config = sc.ToString();
|
||||
}
|
||||
// C2015-028 Add Editorial Mode to PROMS Step Editor
|
||||
// if in Editorial Mode, treat it the same as if the ChangeIds are set in the Format file
|
||||
if (MyStepPanel.MyStepTabPanel.MyDisplayTabControl.IsInEditorialMode && !existingChangeBar)
|
||||
{
|
||||
sc.Step_ChangeIDEditorialMode = Volian.Base.Library.VlnSettings.UserID;
|
||||
}
|
||||
else
|
||||
{
|
||||
sc.Step_ChangeIDEditorialMode = null;
|
||||
}
|
||||
// B2020-017: If making an editorial change, clear the Change id. Having the change id on
|
||||
// was adding/printing a change bar.
|
||||
// C2015-028 Add Editorial Mode to PROMS Step Editor
|
||||
// if in Editorial Mode, treat it the same as if the ChangeIds are set in the Format file
|
||||
if (MyStepRTB.MyItemInfo.IsStep &&
|
||||
MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds
|
||||
&& this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange
|
||||
&& hasChangeBar == false)
|
||||
(MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds
|
||||
|| MyStepPanel.MyStepTabPanel.MyDisplayTabControl.IsInEditorialMode
|
||||
)
|
||||
&& MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange
|
||||
&& !hasChangeBar)
|
||||
{
|
||||
if (sc == null) sc = new StepConfig();
|
||||
sc.Step_ChangeID = null;
|
||||
}
|
||||
// B2015-024 Have Spell Checker text changes be an editorial change (not assign a change bar but keep existing change bar)
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.EditData.EditoralSpellCheck)
|
||||
// C2015-028 Add Editorial Mode to PROMS Step Editor
|
||||
// if in Editorial Mode, treat it the same as if the Rditorial SprllCheck flag is set in the Format file
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.EditData.EditoralSpellCheck || this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.IsInEditorialMode)
|
||||
{
|
||||
if (StepRTB.DidEditorialSpellCheck)
|
||||
{
|
||||
|
Reference in New Issue
Block a user