Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2e081aade | ||
|
|
69f3ec93e4 | ||
|
|
9ec3fbf5c1 | ||
|
|
feb632a2e2 | ||
|
|
da638552ca | ||
|
|
bbbb58df34 | ||
|
|
e1630bd358 | ||
|
|
d46f037a9b | ||
|
|
a58ef4ecdd | ||
|
|
81e9ceb784 | ||
|
|
1d51080765 | ||
|
|
df2934a654 | ||
|
|
71a4aa313d | ||
|
|
f860ba367d | ||
|
|
382b8d7434 | ||
|
|
44bddbc95d | ||
|
|
eb246b1dbe | ||
|
|
93c6d32110 | ||
|
|
1a81c17ccd | ||
|
|
9078e99741 | ||
|
|
bbaea7ab67 | ||
|
|
dc22ff6e3b | ||
|
|
72359319a4 | ||
|
|
f663e4f956 |
No files matched your search
Binary file not shown.
@@ -18846,87 +18846,6 @@ GO
|
||||
ELSE PRINT 'Procedure Creation: [vesp_RofstHeaderFinalizeLoad] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
/****** Object: StoredProcedure [dbo].[vesp_RofstDataSearch] Script Date: 06/23/2022 ******/
|
||||
If Exists(SELECT * FROM sys.objects Where name = 'vesp_RofstDataSearch' AND type in (N'P'))
|
||||
DROP PROCEDURE [dbo].[vesp_RofstDataSearch]
|
||||
GO
|
||||
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
Copyright 2020 - Volian Enterprises, Inc. All rights reserved.
|
||||
*****************************************************************************/
|
||||
/*
|
||||
==========================================================================================================
|
||||
Author: Jake Ropar
|
||||
Create Date: 06/23/2022
|
||||
Description: RO Default Value Search
|
||||
|
||||
@SearchTypeID => (1) Starts With (2) Ends With (3) Contains (4) Exact Match
|
||||
==========================================================================================================
|
||||
*/
|
||||
Create Procedure [dbo].[vesp_RofstDataSearch]
|
||||
(
|
||||
@RofstID int,
|
||||
@Value VarChar(Max) = null,
|
||||
@SearchTypeID Int = 1, -- Starts With
|
||||
@MaxNumOfRecords Int = null
|
||||
)
|
||||
With Execute as Owner
|
||||
As
|
||||
Begin
|
||||
|
||||
-- Remove any leading/trailing white spaces
|
||||
Set @Value = dbo.vefn_Clean( @Value, 0, null );
|
||||
|
||||
-- Escape any % signs in the search value
|
||||
Set @Value = Replace( @Value, '%', '[%]' );
|
||||
|
||||
-- Format search value
|
||||
If (Len(@Value) = 0) Set @Value = null;
|
||||
|
||||
-- Create Temp Results Table
|
||||
Create Table #SearchResults
|
||||
(roid VarChar(50) Not Null, [value] VarChar(Max), RowNum Int Not Null Primary Key);
|
||||
|
||||
-- Select roids/values based on search criteria
|
||||
Insert Into #SearchResults (roid, [value], RowNum)
|
||||
Select rdv.roid,
|
||||
rdv.[value],
|
||||
Row_Number() Over (Order By rdv.[value] Asc, rdv.roid Asc) as 'RowNum'
|
||||
From vwRofstData_RofstDefaultValues rdv
|
||||
Where rdv.RofstID = @RofstID
|
||||
And ((@Value is null)
|
||||
Or (@SearchTypeID = 1 And rdv.[value] like @Value + '%') -- Starts With
|
||||
Or (@SearchTypeID = 2 And rdv.[value] like '%' + @Value) -- Ends With
|
||||
Or (@SearchTypeID = 3 And rdv.[value] like '%' + @Value + '%') -- Contains
|
||||
Or (@SearchTypeID = 4 And rdv.[value] = @Value)) -- Exact Match
|
||||
Order By rdv.[value] Asc, rdv.roid Asc
|
||||
Option (Recompile);
|
||||
|
||||
-- Return the specified number of results
|
||||
Select sr.roid, sr.[value]
|
||||
From #SearchResults sr
|
||||
Where (@MaxNumOfRecords is null Or sr.RowNum <= @MaxNumOfRecords)
|
||||
Order By sr.RowNum Asc;
|
||||
|
||||
|
||||
Return;
|
||||
End
|
||||
Go
|
||||
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [vesp_RofstDataSearch] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [vesp_RofstDataSearch] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
/****** Object: StoredProcedure [dbo].[vesp_RofstDataGetValueDifferences] Script Date: 06/23/2022 ******/
|
||||
If Exists(SELECT * FROM sys.objects Where name = 'vesp_RofstDataGetValueDifferences' AND type in (N'P'))
|
||||
DROP PROCEDURE [dbo].[vesp_RofstDataGetValueDifferences]
|
||||
@@ -20438,9 +20357,9 @@ GO
|
||||
Where rdv.RofstID = @RofstID
|
||||
And (@OnlyRoid16 = 0 Or Len(rdv.roid) = 16)
|
||||
And ((@Value is null)
|
||||
Or (@SearchTypeID = 1 And rdv.[value] like @Value + '%') -- Starts With
|
||||
Or (@SearchTypeID = 2 And rdv.[value] like '%' + @Value) -- Ends With
|
||||
Or (@SearchTypeID = 3 And rdv.[value] like '%' + @Value + '%') -- Contains
|
||||
Or (@SearchTypeID = 1 And REPLACE(rdv.[value], '@HSP(', '') like @Value + '%') -- Starts With
|
||||
Or (@SearchTypeID = 2 And REPLACE(rdv.[value], '@HSP(', '') like '%' + @Value) -- Ends With
|
||||
Or (@SearchTypeID = 3 And REPLACE(rdv.[value], '@HSP(', '') like '%' + @Value + '%') -- Contains
|
||||
Or (@SearchTypeID = 4 And rdv.[value] = @Value)) -- Exact Match
|
||||
Order By rdv.[value] Asc, rdv.roid Asc
|
||||
Option (Recompile);
|
||||
@@ -25224,8 +25143,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '10/7/2026 9:30 AM'
|
||||
set @RevDescription = 'Added Reports for Duplicate Acc Page IDs in ROs'
|
||||
set @RevDate = '11/16/2026 9:30 AM'
|
||||
set @RevDescription = 'Added Support for Hard Space in RO Search'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
||||
@@ -117,25 +117,27 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing">
|
||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</data>
|
||||
</metadata>
|
||||
<data name="btnDupAccIDs.SuperTooltip" xml:space="preserve">
|
||||
<value>If multiple ROs contain the same Accessory Page IDs, then users could inadvertently use the wrong RO in word documents since those print and save by Accessory Page ID).
|
||||
<value>If multiple ROs have the same Accessory Page IDs, a user could inadvertently use the wrong RO in PROMS Word sections.
|
||||
|
||||
This will return a report containing info on ROs that have Duplicate Accessory Page IDs. This can be reviewed and used in conjunction with the other Supplicate Accessory Page ID/Prefix Reports to ensure that ROs and RO Groups are properly set up. Common reasons for Duplicate Accessory Page IDs Include: RO Groups unintentionally set up with duplicate prefixes, fields in ROs that Accessory Page Access uses that have the same text but are upper vs lower case, and some duplicates may be RO Groups that were never intended to be used in PROMS (these may be only used as a group heading).</value>
|
||||
This option will generate a report containing information for ROs that have duplicate Accessory Page IDs. This report can be used in conjunction with other Duplicate Accessory reports to ensure that both ROs and RO Groups are properly set up. Common reasons for duplicate accessory page IDs include: RO Groups unintentionally set up with duplicate prefixes, fields in ROs which contain duplicate text but use upper case vs lower case text, and RO Groups that were never intended to be used in PROMS (these may be only used as a group heading). </value>
|
||||
</data>
|
||||
<data name="btnDupAccPrefix.SuperTooltip" xml:space="preserve">
|
||||
<value>If multiple ROs contain the same Accessory Page IDs, then users could inadvertently use the wrong RO in word documents since those print and save by Accessory Page ID.
|
||||
<value>If multiple ROs have the same Accessory Page IDs, a user could inadvertently use the wrong RO in PROMS Word sections.
|
||||
|
||||
This will return a report containing info on which RO Groups have duplicate Accessory Page Prefixes. This can be run and used to clean up RO Groups so that they have unique Accessory Page Prefixes.</value>
|
||||
This option will generate a report containing information for which RO Groups have duplicate Accessory Page Prefixes. This report can be used to clean up RO groups so that they each have a unique Accessory Page Prefix. </value>
|
||||
</data>
|
||||
<data name="btnWrdDupAcc.SuperTooltip" xml:space="preserve">
|
||||
<value>If multiple ROs contain the same Accessory Page IDs, then users could inadvertently use the wrong RO in word documents since those print and save by Accessory Page ID.
|
||||
<value>We recommend running this before attempting to clean up the Accessory Page IDs to help avoid confusion during the cleanup process.
|
||||
|
||||
This will return a report containing info on which Word Sections Contain ROs that have Duplicate Accessory Page IDs. This can be run before cleaning up Duplicates and then utilized after to identify which Word Sections may need edited to the newly updated Accessory Page IDs.</value>
|
||||
If multiple ROs have the same Accessory Page IDs, a user could inadvertently use the wrong RO in PROMS Word sections.
|
||||
|
||||
This option will generate a report containing the information for which Word sections contain ROs that have duplicate Accessory Page IDs. Once the duplicates have been cleaned up, this report can be run again to identify any sections which may need the ROs edited to the correct (new) Accessory Page ID. </value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="warningBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAp5JREFUOE+F
|
||||
@@ -201,8 +203,7 @@ Should an item become orphaned (disconnected) from the rest of the data, it will
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="$this.TrayHeight" type="System.Int32, mscorlib">
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>49</value>
|
||||
</data>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -1499,7 +1499,7 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (tc.MyEditItem != null && displayRO.MyROFST != null && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].ROFstID != displayRO.MyROFST.ROFstID)
|
||||
else if (displayRO.MyROFST != null && tc?.MyEditItem?.MyItemInfo?.MyDocVersion?.DocVersionAssociations != null && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations.Count > 0 && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].ROFstID != displayRO.MyROFST.ROFstID)
|
||||
{
|
||||
SelectedROFst = tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||
}
|
||||
@@ -2426,9 +2426,10 @@ namespace VEPROMS
|
||||
// when Word procedure tabs are restored.
|
||||
// C2026-053 leaving this flag in her for now should we decide to trouble-shoot reopening of Word tabs later on.
|
||||
tc.LoadingSavedProcTabs = true; // we check for this flag in DSOTabPanel.cs when opening Word sections
|
||||
EditItem LastEditItem = null; //to hold last edit item. Needed in case last tab is a Word Section
|
||||
foreach (DataRow TabState in DisPlayTabState.Rows)
|
||||
{
|
||||
int _ItemID = (int)TabState["ItemID"];
|
||||
int _ItemID = (int)TabState["ItemID"];
|
||||
ItemInfo _Procedure = ItemInfo.Get(_ItemID);
|
||||
// C2026-053 Open procedure tab but only if it's NOT a Word section
|
||||
// Needed to disable opening saved Word sections - at least for now.
|
||||
@@ -2439,18 +2440,29 @@ namespace VEPROMS
|
||||
// SelectedStepTabPanel needs to be set so the print buttons on the ribbon will work.
|
||||
SelectedStepTabPanel = tc.MyEditItem.MyStepPanel.MyStepTabPanel;
|
||||
|
||||
//CSM B2024-090 - if last displaytab item,
|
||||
//select the steptab panel for it
|
||||
//and set the EditItem for Find/Replace
|
||||
//otherwise will cause PROMS to crash if Find clicked before a Tab is given Focus
|
||||
if ((DisPlayTabState.Rows.IndexOf(TabState) == DisPlayTabState.Rows.Count - 1))
|
||||
LastEditItem = tc.MyEditItem; //set last tab index
|
||||
if ((DisPlayTabState.Rows.IndexOf(TabState) == DisPlayTabState.Rows.Count - 1))
|
||||
{
|
||||
SelectedStepTabPanel.Select();
|
||||
dlgFindReplace.MyEditItem = tc.MyEditItem;
|
||||
SpellChecker.MyEditItem = tc.MyEditItem; //B2025-043 Remember Tabs is not setting the EditItem for the active window causing a PROMS crash when Spell Check
|
||||
}
|
||||
}
|
||||
tc.LoadingSavedProcTabs = false;
|
||||
}
|
||||
}
|
||||
//CSM B2024-090 - if last displaytab item,
|
||||
//select the steptab panel for it
|
||||
//and set the EditItem for Find/Replace
|
||||
//otherwise will cause PROMS to crash if Find clicked before a Tab is given Focus
|
||||
if (LastEditItem != null)
|
||||
{
|
||||
dlgFindReplace.MyEditItem = LastEditItem;
|
||||
SpellChecker.MyEditItem = LastEditItem; //B2025-043 Remember Tabs is not setting the EditItem for the active window causing a PROMS crash when Spell Check
|
||||
|
||||
//B2026-090 Populate Step Properties Panel when PROMS restores saved display tabs
|
||||
LastEditItem.MyStepPanel.BringToFront();
|
||||
LastEditItem.MyStepPanel.Select();
|
||||
Application.DoEvents();
|
||||
tc_ItemSelectedChanged(this, new ItemSelectedChangedEventArgs(tc.MyEditItem));
|
||||
}
|
||||
|
||||
tc.LoadingSavedProcTabs = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2153,7 +2153,28 @@ namespace VEPROMS.CSLA.Library
|
||||
return GetNext();
|
||||
}
|
||||
}
|
||||
private static void ResetOrdinal(int itemID)
|
||||
|
||||
//B2026-088 Refresh Issue with Refreshing Step Numbers After an inserted Step
|
||||
public void ResetOrdinalandPrevious(ItemInfo prevItm)
|
||||
{
|
||||
MyPrevious = prevItm;
|
||||
_Ordinal = null;
|
||||
_TagsSetup = false;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(ItemID.ToString()))
|
||||
{
|
||||
ItemInfo[] items = _CacheByPrimaryKey[ItemID.ToString()].ToArray();
|
||||
foreach (ItemInfo item in items)
|
||||
{
|
||||
item.MyPrevious = prevItm;
|
||||
item._Ordinal = null;
|
||||
item._TagsSetup = false;
|
||||
}
|
||||
}
|
||||
OnOrdinalChange(ItemID); // After _Ordinal reset trigger event
|
||||
}
|
||||
|
||||
private static void ResetOrdinal(int itemID)
|
||||
{
|
||||
ConvertListToDictionary();
|
||||
string key = itemID.ToString();
|
||||
@@ -2448,7 +2469,7 @@ namespace VEPROMS.CSLA.Library
|
||||
DialogResult rslt = DialogResult.No;
|
||||
|
||||
SectionConfig secCfg = itemInfo.ActiveSection.MyConfig as SectionConfig;
|
||||
if (copyItemInfo.HasEnhancedLinkedStep && secCfg.MyEnhancedDocuments.Count > 0)
|
||||
if (copyItemInfo.HasEnhancedLinkedStep && secCfg.MyEnhancedDocuments.Count > 0 && IsValidTypeToCopybackground(itemInfo, copyItemInfo))
|
||||
rslt = FlexibleMessageBox.Show("The step you are copying contains linked background documents." +
|
||||
"\r\n\r\nDo you also wish to make a copy of the background documents?",
|
||||
"Paste background documents", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
@@ -2597,8 +2618,15 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// B2026-094
|
||||
// When you paste a Caution, Note, or high level step that has background information tied to it
|
||||
// into a substep or an RNO step
|
||||
// PROMS should NOT paste the background information
|
||||
public static bool IsValidTypeToCopybackground(ItemInfo itemInfo, ItemInfo copyItemInfo) => (!copyItemInfo.IsCaution && !copyItemInfo.IsNote && !copyItemInfo.IsHigh) || (!itemInfo.IsInRNO && !itemInfo.IsSubStep);
|
||||
|
||||
#endregion
|
||||
private static bool HandleSqlExceptionOnCopy(Exception ex)
|
||||
private static bool HandleSqlExceptionOnCopy(Exception ex)
|
||||
{
|
||||
if (ex.Message.Contains("This step has been deleted"))
|
||||
{
|
||||
|
||||
@@ -3192,7 +3192,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
int itemID = int.Parse(nd.Attributes.GetNamedItem("id").InnerText);
|
||||
ItemInfo ii = ItemInfo.Get(itemID);
|
||||
if (ii.SearchAnnotationText == null && ii.ItemAnnotations != null) ii.SearchAnnotationText = AnnotationInfo.Get(ii.ItemAnnotations[0].AnnotationID).SearchText;
|
||||
if (ii.SearchAnnotationText == null && ii.ItemAnnotations != null && ii.ItemAnnotations.Count > 0) ii.SearchAnnotationText = AnnotationInfo.Get(ii.ItemAnnotations[0].AnnotationID).SearchText;
|
||||
SearchResults.AddItemInfo(ii);
|
||||
}
|
||||
lbSrchResults.DataSource = SearchResults;
|
||||
@@ -3214,7 +3214,7 @@ namespace Volian.Controls.Library
|
||||
int itemID = int.Parse(nd.Attributes.GetNamedItem("id").InnerText);
|
||||
ItemInfo ii = ItemInfo.Get(itemID);
|
||||
// B2020-107: The following was needed to set the Step Path result type for annotations
|
||||
if (ii.SearchAnnotationText == null && ii.ItemAnnotations != null)
|
||||
if (ii.SearchAnnotationText == null && ii.ItemAnnotations != null && ii.ItemAnnotations.Count > 0)
|
||||
{
|
||||
ii.SearchAnnotationText = AnnotationInfo.Get(ii.ItemAnnotations[0].AnnotationID).SearchText;
|
||||
ii.SearchAnnotationID = ii.ItemAnnotations[0].AnnotationID;
|
||||
@@ -3245,7 +3245,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
int itemID = int.Parse(nd.Attributes.GetNamedItem("id").InnerText);
|
||||
ItemInfo ii = ItemInfo.Get(itemID);
|
||||
if (ii.SearchAnnotationText == null && ii.ItemAnnotations != null) ii.SearchAnnotationText = AnnotationInfo.Get(ii.ItemAnnotations[0].AnnotationID).SearchText;
|
||||
if (ii.SearchAnnotationText == null && ii.ItemAnnotations != null && ii.ItemAnnotations.Count > 0) ii.SearchAnnotationText = AnnotationInfo.Get(ii.ItemAnnotations[0].AnnotationID).SearchText;
|
||||
SearchResults.AddItemInfo(ii);
|
||||
}
|
||||
lbSrchResultsIncTrans.DataSource = SearchResults;
|
||||
|
||||
@@ -1259,7 +1259,20 @@ namespace Volian.Controls.Library
|
||||
default: // Need debug
|
||||
break;
|
||||
}
|
||||
if (updateStatus)
|
||||
|
||||
//B2026-088 Refresh Issue with Refreshing Step Numbers After an inserted Step
|
||||
EditItem tmp = this;
|
||||
while (tmp.MyNextEditItem != null)
|
||||
{
|
||||
ItemInfo prevIInfo = tmp.MyItemInfo;
|
||||
tmp = tmp.MyNextEditItem;
|
||||
tmp.MyItemInfo.ResetOrdinalandPrevious(prevIInfo);
|
||||
tmp.RefreshOrdinal();
|
||||
}
|
||||
|
||||
Application.DoEvents();
|
||||
|
||||
if (updateStatus)
|
||||
MyStepPanel.SelectedEditItem = newEditItem;//Update Screen
|
||||
}
|
||||
protected static int _WatchThis = 1;
|
||||
@@ -3663,6 +3676,8 @@ namespace Volian.Controls.Library
|
||||
TabLeft = 20;
|
||||
if (!itemInfo.IsStep) // C2025-036 reduce un-needed processing - this will prevent duplicat calls that generate step tabs when loading a procedure
|
||||
SetupHeader(itemInfo);
|
||||
//B2026-093 move the setting of MyStepPanel to fix null reference error when the Alarm Point Table is first setup for the editor view
|
||||
MyStepPanel = myStepPanel;
|
||||
SetupAlarmTableView(itemInfo); // C2021-018 display alarm point table information in the step editor (if the format flag is set)
|
||||
this.Paint -= new PaintEventHandler(EditItem_Paint);
|
||||
this.Paint += new PaintEventHandler(EditItem_Paint);
|
||||
@@ -3707,7 +3722,6 @@ namespace Volian.Controls.Library
|
||||
if (myStepPanel.MyFont != null) ContentFont = TabFont = myStepPanel.MyFont;
|
||||
}
|
||||
if (expand) ShowExpanded();
|
||||
MyStepPanel = myStepPanel;
|
||||
if (itemInfo != null && !myStepPanel._LookupEditItems.ContainsKey(itemInfo.ItemID)) myStepPanel._LookupEditItems.Add(itemInfo.ItemID, this);
|
||||
_MyChildRelation = myChildRelation;
|
||||
if (myParentEditItem != null) RNOLevel = myParentEditItem.RNOLevel;
|
||||
|
||||
@@ -3512,10 +3512,24 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
break;
|
||||
case "InsRNO":
|
||||
displayMenu = ((actable & E_AccStep.AddingRNO) > 0) && btnCMInsRNO.Enabled;
|
||||
//B2026-086 Have Shortcut Keys for adding a RNO auto-work instead of having to press a button after shortcut key
|
||||
displayMenu = false;
|
||||
LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingRNO,"RNO"); // B2018-014 Inform user that they cannot add the specified step type
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsRNO);
|
||||
break;
|
||||
|
||||
if (((actable & E_AccStep.AddingRNO) > 0) && btnCMInsRNO.Enabled)
|
||||
{
|
||||
try
|
||||
{
|
||||
btnCMInsRNO.SubItems["cmbtnRNOType"].RaiseClick();
|
||||
}
|
||||
catch
|
||||
{
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsRNO);
|
||||
displayMenu = true;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case "InsSubStps":
|
||||
displayMenu = ((actable & E_AccStep.AddingSub) > 0) && btnCMInsSubStps.Enabled;
|
||||
LetUserKnowIfTheyCannotAdd(actable, E_AccStep.AddingSub,"Sub-step"); // B2018-014 Inform user that they cannot add the specified step type
|
||||
|
||||
Reference in new issue
Block a user