Compare commits
92
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec22232aa8 | ||
|
|
5255080291 | ||
|
|
ae35d9f0d7 | ||
|
|
afbd653611 | ||
|
|
9a55111e1e | ||
|
|
422a3053b7 | ||
|
|
feb74ee09f | ||
|
|
7cebb2b7f1 | ||
|
|
8097c6283c | ||
|
|
8f08ef5ee4 | ||
|
|
fd26f16776 | ||
|
|
21a83df99d | ||
|
|
f303cd2236 | ||
|
|
f40cef4416 | ||
|
|
fbca97d38d | ||
|
|
28bd2cba5c | ||
|
|
4b35f73bbf | ||
|
|
f4706eb126 | ||
|
|
21bcb90558 | ||
|
|
ae48ac0cae | ||
|
|
cb4979d5bc | ||
|
|
7d3ae74e1f | ||
|
|
9d680aa500 | ||
|
|
0d50b1c2fe | ||
|
|
75e034863f | ||
|
|
3b42de1571 | ||
|
|
668472286e | ||
|
|
e00d34c99d | ||
|
|
9fb496dfb3 | ||
|
|
f4eaa4a3ef | ||
|
|
5d50ed6bdf | ||
|
|
d7ace4eaf9 | ||
|
|
16a4d335ea | ||
|
|
ba69bb0772 | ||
|
|
455940caa2 | ||
|
|
439344757e | ||
|
|
ad912691c9 | ||
|
|
237144aff6 | ||
|
|
810332d558 | ||
|
|
f8431d0ba1 | ||
|
|
57c3bfa16a | ||
|
|
61f1077608 | ||
|
|
8877e968b9 | ||
|
|
4575c90bee | ||
|
|
21279a87ae | ||
|
|
3d5ad4a17e | ||
|
|
9bb7b044a8 | ||
|
|
dc8f2f7561 | ||
|
|
829dbf84da | ||
|
|
7b156c17f8 | ||
|
|
cbf7cbc164 | ||
|
|
b04faa816e | ||
|
|
517ebe2902 | ||
|
|
03d0d314e3 | ||
|
|
3e804c5cce | ||
|
|
ee2b8b538e | ||
|
|
fdfd34fe92 | ||
|
|
2d6fb6523b | ||
|
|
3084bf3982 | ||
|
|
5ba51e8392 | ||
|
|
fb5eb43e34 | ||
|
|
b154056276 | ||
|
|
c67b8f9ca1 | ||
|
|
95e4181360 | ||
|
|
32dffbe56b | ||
|
|
6b3c8d373b | ||
|
|
db29107f47 | ||
|
|
355537f2ab | ||
|
|
0729ef0c21 | ||
|
|
6fe82bfd0f | ||
|
|
39bf072363 | ||
|
|
da7c384fd8 | ||
|
|
95130fd9a0 | ||
|
|
978e2344a3 | ||
|
|
c9bf45602c | ||
|
|
aa160b2036 | ||
|
|
f82b32d351 | ||
|
|
e519dc9a57 | ||
|
|
f020c37db9 | ||
|
|
5a4ec3b6b1 | ||
|
|
2602d6c9d2 | ||
|
|
ff403583d7 | ||
|
|
c5577cc2bd | ||
|
|
78be6e5dc1 | ||
|
|
b954a41375 | ||
|
|
0100a11cfe | ||
|
|
04cf2e8534 | ||
|
|
be00724818 | ||
|
|
274d93c61a | ||
|
|
7dc4c30436 | ||
|
|
028ef4bc31 | ||
|
|
42124d65c7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -22230,10 +22230,12 @@ Go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
==========================================================================================================
|
||||
Begin: C2024-004 | B2024-041: KL - Update Copy Replace functionality, (remove ''copy of'')
|
||||
==========================================================================================================
|
||||
*/
|
||||
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[ReplaceItemAndChildren]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [ReplaceItemAndChildren];
|
||||
@@ -23245,9 +23247,11 @@ BEGIN CATCH -- Catch Block
|
||||
END CATCH
|
||||
Go
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
==========================================================================================================
|
||||
End: C2024-004: KL - Update Copy Replace functionality, (remove ''copy of'')
|
||||
==========================================================================================================
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -23285,8 +23289,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '07/16/2024 3:37 PM'
|
||||
set @RevDescription = 'B2024-041: Updates to allow for proper replace vs paste above or below'
|
||||
set @RevDate = '07/16/2024 4:19 AM'
|
||||
set @RevDescription = 'B2024-041: Bug fix for copy/replace functionality on procedures and steps'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
||||
@@ -346,10 +346,11 @@ namespace Volian.Controls.Library
|
||||
ch = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag;
|
||||
chld = ch.children;
|
||||
// build a list of ROs to search
|
||||
return _MyRODbID.ToString() + ":" + GetROsToSearch(chld);
|
||||
//return _MyRODbID.ToString() + ":" + ch.roid + "0000," + GetROsToSearch(chld);
|
||||
//if (strRtnStr.EndsWith(","))
|
||||
// strRtnStr = strRtnStr.Substring(0, strRtnStr.Length - 1);
|
||||
// B2022-118: remove the ending comma otherwise query will fail
|
||||
string strRtnStr = _MyRODbID.ToString() + ":" + GetROsToSearch(chld);
|
||||
if (strRtnStr.EndsWith(","))
|
||||
strRtnStr = strRtnStr.Substring(0, strRtnStr.Length - 1);
|
||||
return strRtnStr;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1939,6 +1940,13 @@ namespace Volian.Controls.Library
|
||||
private string GetROsToSearch(ROFSTLookup.rochild[] chld)
|
||||
{
|
||||
string rtnstr = string.Empty;
|
||||
// B2022-118: If the ro has child nodes in tree view but they aren't loaded, load them
|
||||
if ((chld == null || chld.Length <= 0) && (cmboTreeROs.SelectedNode.Nodes != null || cmboTreeROs.SelectedNode.Nodes.Count >= 1))
|
||||
{
|
||||
ROFSTLookup.rochild ro = (ROFSTLookup.rochild)cmboTreeROs.SelectedNode.Tag;
|
||||
MyROFSTLookup.LoadChildren(ref ro);
|
||||
chld = ro.children;
|
||||
}
|
||||
|
||||
// B2022-026 RO Memory Reduction code - check children length
|
||||
if (chld == null || chld.Length <= 0) // get a single ROID
|
||||
@@ -1956,7 +1964,17 @@ namespace Volian.Controls.Library
|
||||
if (roc.children != null && roc.children.Length > 0)
|
||||
rtnstr += GetROsToSearch(roc.children);
|
||||
else
|
||||
rtnstr += ROFSTLookup.FormatRoidKey(roc.roid, false);
|
||||
{
|
||||
// B2022-118: If the ro has child nodes in tree view but they aren't loaded, load them
|
||||
ROFSTLookup.rochild rot = roc;
|
||||
MyROFSTLookup.LoadChildren(ref rot);
|
||||
chld = rot.children;
|
||||
|
||||
if (rot.children != null && rot.children.Length > 0)
|
||||
rtnstr += GetROsToSearch(rot.children);
|
||||
else
|
||||
rtnstr += string.Format("{0},", ROFSTLookup.FormatRoidKey(roc.roid, false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -669,7 +669,7 @@ namespace Volian.Controls.Library
|
||||
ItemInfo proc = myItemInfo.MyProcedure; // Find procedure Item
|
||||
string key = "Item - " + proc.ItemID.ToString();
|
||||
|
||||
if (_MyDisplayTabItems.ContainsKey(key)) // If procedure page open use it
|
||||
if (_MyDisplayTabItems.ContainsKey(key) && pasteType != ItemInfo.EAddpingPart.Replace) // If procedure page open use it unless replace
|
||||
{
|
||||
DisplayTabItem pg = _MyDisplayTabItems[key];
|
||||
if (pg.MyStepTabPanel.MyStepPanel._LookupEditItems.ContainsKey(myItemInfo.ItemID) &&
|
||||
@@ -708,6 +708,11 @@ namespace Volian.Controls.Library
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (_MyDisplayTabItems.ContainsKey(key) && pasteType == ItemInfo.EAddpingPart.Replace)
|
||||
{
|
||||
CloseTabItem(_MyDisplayTabItems["Item - " + myItemInfo.ItemID.ToString()]); //Grab itemID and set to close open tab.
|
||||
return false; //B2017-179 PasteReplace will return null if was aborted
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1825,8 +1825,16 @@ namespace Volian.Controls.Library
|
||||
EditItem newFocus = null;
|
||||
EditItem nextEditItem = MyNextEditItem;
|
||||
EditItem prevEditItem = MyPreviousEditItem;
|
||||
if (MyStepPanel?.SelectedEditItem?.ActiveParent == null) return null; //Was causing an error when active parent was null and the replaced proc was opened in the editor.
|
||||
EditItem parentEditItem = ActiveParent;
|
||||
EditItem parentEditItem = null; // ActiveParent;
|
||||
try
|
||||
{
|
||||
parentEditItem = ActiveParent ?? MyStepPanel?.SelectedEditItem?.ActiveParent;
|
||||
}
|
||||
catch (NullReferenceException)
|
||||
{
|
||||
// KL 7/11/2024 - Handle the case where ActiveParent throws a Null Reference Exception
|
||||
parentEditItem = MyStepPanel?.SelectedEditItem?.ActiveParent;
|
||||
}
|
||||
|
||||
StepConfig savOrigPasteConfig = MyItemInfo.MyConfig as StepConfig;
|
||||
int TopMostYBefore = TopMostEditItem.Top;
|
||||
|
||||
Reference in New Issue
Block a user