Changed logic to use ChangeIDs format flag and Editorial Change status to update the Change ID for a text element when a text element is changed.
This commit is contained in:
parent
f44fd9cdb3
commit
1e557f2b8e
@ -678,10 +678,14 @@ namespace Volian.Controls.Library
|
|||||||
// if the plant has the change id option, the change id was entered when the program started.
|
// 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
|
// 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.
|
// item Step_MultipleChangeID has the save built in to it.
|
||||||
if (MyStepRTB.MyItemInfo.IsStep && MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChgBarMessageFromEdit)
|
if (MyStepRTB.MyItemInfo.IsStep &&
|
||||||
|
MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds
|
||||||
|
&& !this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange)
|
||||||
{
|
{
|
||||||
StepConfig sc = MyStepRTB.MyItemInfo.MyConfig as StepConfig;
|
StepConfig sc = MyStepRTB.MyItemInfo.MyConfig as StepConfig;
|
||||||
|
if (sc == null) sc = new StepConfig();
|
||||||
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
||||||
|
//if (MyStepRTB.MyItemInfo.MyConfig == null) itm.MyContent.Config = sc.ToString();
|
||||||
}
|
}
|
||||||
MyStepRTB.FindAllLinks();
|
MyStepRTB.FindAllLinks();
|
||||||
MyStepRTB.OrigRTF = MyStepRTB.Rtf;
|
MyStepRTB.OrigRTF = MyStepRTB.Rtf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user