BGE: Save Change id on grid edit
BGE: Save Change id on step edit BGE: Added user interface for modifying current change id BGE: Added menu item for removing change ids (no supporting code yet – the actual code to remove ids needs to be developed) BGE: If format uses ‘ChangeIds’, then use the data from the changed step config for printing the change bar data.
This commit is contained in:
@@ -623,6 +623,13 @@ namespace Volian.Controls.Library
|
||||
if (pri.ActiveFormat.PlantFormat.FormatData.ProcData.PSI.Caption != null) cm.MenuItems.Add("Procedure Specific Information", new EventHandler(mi_Click));
|
||||
cm.MenuItems.Add("Insert Procedure Before", new EventHandler(mi_Click));
|
||||
cm.MenuItems.Add("Insert Procedure After", new EventHandler(mi_Click));
|
||||
|
||||
// if this format has change ids that were added from edit, allow removal of
|
||||
// change ids for this procedure:
|
||||
FolderInfo fi = FolderInfo.Get(1);
|
||||
FormatInfo frmI = FormatInfo.Get(fi.FormatID ?? 1);
|
||||
if (frmI.PlantFormat.FormatData.ProcData.ChangeBarData.ChgBarMessageFromEdit)
|
||||
cm.MenuItems.Add("Remove Change Ids", new EventHandler(mi_Click));
|
||||
cm.MenuItems.Add("New Section", new EventHandler(mi_Click));
|
||||
if (pri.MyDocVersion.MultiUnitCount > 1)
|
||||
{
|
||||
@@ -1133,6 +1140,9 @@ namespace Volian.Controls.Library
|
||||
case "Insert Procedure After":
|
||||
tv_NodeNew(MenuSelections.ProcedureAfter);
|
||||
break;
|
||||
case "Remove Change Ids":
|
||||
tv_RemoveChgIds();
|
||||
break;
|
||||
case "New Section":
|
||||
case "New Subsection":
|
||||
SelectedNode.Expand();
|
||||
@@ -1234,6 +1244,10 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void tv_RemoveChgIds()
|
||||
{
|
||||
Console.WriteLine("HERE"); // add code/query to clear change ids in config.
|
||||
}
|
||||
private Dictionary<int, int> MyCheckedOutDocVersions;
|
||||
private void CheckOutDocVersion(VETreeNode tn)
|
||||
{
|
||||
|
Reference in New Issue
Block a user