Compare commits
9 Commits
C2021-059
...
C2024-004_
Author | SHA1 | Date | |
---|---|---|---|
![]() |
09d0f73396 | ||
![]() |
96e85e8c5c | ||
![]() |
f6f7d6a8c7 | ||
616acf0e37 | |||
3cff87cf97 | |||
![]() |
9202d903a5 | ||
![]() |
a9a9a56c09 | ||
aee7819a9c | |||
![]() |
d3bc1c4725 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1320,6 +1320,10 @@ namespace VEPROMS
|
||||
if (swtbtnPDFLinks.Value)
|
||||
swtbtnPDFdtPrefixSuffix.Value = false;
|
||||
BuildPDFFileName();
|
||||
// C2024-013: When Create RO & Transition Hyperlinks in pdf is ON, disable the MergePdf
|
||||
// button. The Create RO & Transition Hyperlinks option looks for individual file names
|
||||
// for procedures.
|
||||
btnMergePDFs.Enabled = !swtbtnPDFLinks.Value;
|
||||
}
|
||||
|
||||
// C2019-004: Allow user to define duplex blank page text. The text box for blank page text is always enabled for procedures with
|
||||
|
@@ -22226,6 +22226,419 @@ Go
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [vesp_ListUnlinkedItems] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [vesp_ListUnlinkedItems] Error on Creation'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
/*
|
||||
==========================================================================================================
|
||||
Begin: C2024-004: KL - Update Copy Replace functionality, (remove ''copy of'')
|
||||
==========================================================================================================
|
||||
*/
|
||||
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[CopyItemAndChildren]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [CopyItemAndChildren];
|
||||
GO
|
||||
|
||||
/*****************************************************************************
|
||||
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
Copyright 2024 - Volian Enterprises, Inc. All rights reserved.
|
||||
*****************************************************************************/
|
||||
/*
|
||||
==========================================================================================================
|
||||
Author: Kevin Laskey
|
||||
Modified Date: 07/09/2024
|
||||
Description: Copy Item and its Children
|
||||
==========================================================================================================
|
||||
*/
|
||||
CREATE PROCEDURE [dbo].[CopyItemAndChildren]
|
||||
(
|
||||
@StartItemID INT,
|
||||
@DestFormatID INT,
|
||||
@UserID NVARCHAR(100),
|
||||
@NewStartItemID int output
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
BEGIN TRY -- Try Block
|
||||
|
||||
--+-----------------------------------------------------------------+
|
||||
--& BEGIN TRANSACTION to make these changes temporary &
|
||||
--+-----------------------------------------------------------------+
|
||||
BEGIN TRANSACTION
|
||||
if exists (select * from tblitems where itemid = @StartItemID and DeleteStatus !=0)
|
||||
BEGIN
|
||||
RAISERROR ('###Cannot Paste Step###This step has been deleted',16,1)
|
||||
RETURN
|
||||
END
|
||||
DECLARE @Children AS TABLE
|
||||
(
|
||||
ItemID INT PRIMARY KEY,
|
||||
NewItemID INT,
|
||||
ContentID INT,
|
||||
NewContentID INT,
|
||||
FormatID INT,
|
||||
NewFormatID INT
|
||||
)
|
||||
DECLARE @NewDocuments AS TABLE
|
||||
(
|
||||
DocID INT PRIMARY KEY,
|
||||
NewDocID INT
|
||||
)
|
||||
-- Locals
|
||||
DECLARE @DTS DATETIME -- DTS of all New Items
|
||||
DECLARE @StartContentID INT
|
||||
Select @StartContentID = ContentID from Items where ItemID = @StartItemID
|
||||
SET @DTS = GETDATE() -- Get the current Date and Time
|
||||
-- Get a list of all of the Items to be copied based upon StartItemID and EndItemID
|
||||
-- If the StartItemID = EndItemID then it is a single item and it's children
|
||||
INSERT INTO @Children SELECT ItemID,ItemID,ContentID,ContentID,FormatID,FormatID FROM vefn_ChildItemsRange(@StartItemID,@StartItemID,null)
|
||||
-- <<< Copy Contents >>>
|
||||
-- Create new content rows to match the existing rows. Set the type to the Current ContentID temporarily
|
||||
-- so that the new content rows can be associated with the existing content rows.
|
||||
-- Rem 'Copy Of ' + before first [Number] for C2024-004 (KL)
|
||||
INSERT INTO Contents
|
||||
([Number],[Text],[Type],[FormatID],[Config],[DTS],[UserID])
|
||||
select CASE when [ContentID] = @StartContentID and [Type]<20000 then [Number] else [Number] end,
|
||||
[Text],[ContentID],[FormatID],[Config],@DTS,@UserID
|
||||
from Contents where ContentID in(Select ContentID from @Children)
|
||||
-- Update the @Children with the NewConentIDs
|
||||
--print 'A ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE NN set NN.NewContentID = CC.ContentID
|
||||
From Contents CC
|
||||
Join @Children NN on NN.ContentID = CC.Type AND CC.DTS = @DTS and CC.UserID = @UserID
|
||||
-- Reset the Type column in the Contents table with the Type column from the original Records.
|
||||
--print 'B ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
DECLARE @SourceType INT
|
||||
Select @SourceType = Type from Contents where ContentID = @StartContentID
|
||||
if @SourceType = 0
|
||||
BEGIN
|
||||
UPDATE CC set CC.Type = CC2.Type, CC.DTS = CC2.DTS, CC.UserID = CC2.UserID
|
||||
From Contents CC
|
||||
Join @Children NN on NN.NewContentID = CC.ContentID
|
||||
Join Contents CC2 on NN.ContentID = CC2.ContentID
|
||||
END
|
||||
else
|
||||
BEGIN
|
||||
UPDATE CC set CC.Type = CC2.Type
|
||||
From Contents CC
|
||||
Join @Children NN on NN.NewContentID = CC.ContentID
|
||||
Join Contents CC2 on NN.ContentID = CC2.ContentID
|
||||
END
|
||||
--print 'B1 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Contents are done
|
||||
-- SELECT * From Contents where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Grids >>>
|
||||
INSERT INTO [Grids]([ContentID],[Data],[Config],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],[Data],[Config],@DTS,@UserID
|
||||
FROM [Grids] GG Join @Children NN on GG.ContentID = NN.ContentID
|
||||
-- <<< Copy Images >>>
|
||||
--print 'B2 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
INSERT INTO [Images]([ContentID],[ImageType],[FileName],[Data],[Config],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],[ImageType],[FileName],[Data],[Config],@DTS,@UserID
|
||||
FROM [Images] II Join @Children NN on II.ContentID = NN.ContentID
|
||||
-- Create new item rows based upon the current item rows and the @Children table, with the NewContentIDs
|
||||
--print 'B3 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
INSERT INTO [Items] ([PreviousID],[ContentID],[DTS],[UserID])
|
||||
SELECT II.[PreviousID], -- Leave the PreviousID as is for now
|
||||
NN.NewContentID, @DTS, @UserID
|
||||
from @Children NN
|
||||
join Items II on II.ContentID = NN.ContentID
|
||||
-- Update the @Children with the NewItemIDs
|
||||
--print 'B4 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE NN set NN.NewItemID = II.ItemID
|
||||
From Items II
|
||||
Join @Children NN on NN.NewContentID = II.ContentID AND II.DTS = @DTS and II.UserID = @UserID
|
||||
DECLARE @NewItemID int
|
||||
SELECT @NewItemID = NewItemID
|
||||
FROM @Children
|
||||
WHERE ItemID = @StartItemID
|
||||
--print 'B5 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE NN SET NN.[NewFormatID] = CC.[FormatID]
|
||||
FROM @Children NN
|
||||
Join vefn_ChildItemsRange(@NewItemID,@NewItemID,@DestFormatID) CC
|
||||
ON NN.NewItemID = CC.ItemID
|
||||
-- The @Children table is now complete
|
||||
--SELECT * From @Children
|
||||
-- Update the PreviousID in the new Item rows, to the new ItemIDs based upon the old ItemIDs
|
||||
--print 'B6 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
Update II Set II.[PreviousID] = NN.NewItemID
|
||||
from Items II
|
||||
Join @Children NN on NN.ItemID = II.PreviousID AND II.DTS = @DTS and II.UserID = @UserID
|
||||
-- Get the new ItemIDs based upon the old ItemIDs
|
||||
SELECT @NewStartItemID = NewItemID from @Children where ItemID = @StartItemID
|
||||
--SELECT @NewEndItemID = NewItemID from @Children where ItemID = @EndItemID
|
||||
-- Set the PreviousID for the starting Item to null temporarily.
|
||||
-- This will be adjusted based upon where the step is inserted.
|
||||
--print 'B7 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
Update Items Set PreviousID = null where ItemID = @NewStartItemID
|
||||
if @SourceType = 0
|
||||
BEGIN
|
||||
UPDATE II SET II.DTS = II2.DTS, II.UserID = II2.UserID
|
||||
From Items II
|
||||
Join @Children NN on NN.NewItemID = II.ItemID
|
||||
Join Items II2 on NN.ItemID = II2.ItemID
|
||||
WHERE NN.ItemID = @StartItemID
|
||||
END
|
||||
--print 'C ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Items are done
|
||||
--SELECT * From Items where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Parts >>>
|
||||
INSERT INTO [Parts] ([ContentID],[FromType],[ItemID],[DTS],[UserID])
|
||||
Select NNF.NewContentID,[FromType],NNT.NewItemID, @DTS, @UserID from Parts PP
|
||||
JOIN @Children NNF on PP.ContentID = NNF.ContentID
|
||||
JOIN @Children NNT on PP.ItemID = NNT.ItemID
|
||||
--print 'D ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Parts are done
|
||||
-- SELECT * From Parts where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Annotations >>>
|
||||
INSERT INTO [Annotations] ([ItemID],[TypeID],[RtfText],[SearchText],[Config],[DTS],[UserID])
|
||||
Select NewItemID, TypeID, RtfText, SearchText, Config, @DTS, @UserID
|
||||
from Annotations AA Join @Children NN on AA.ItemID = NN.ItemID
|
||||
--print 'E ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Annotations are done
|
||||
-- SELECT * From Annotations where DTS = @DTS and UserID = @UserID
|
||||
-- <<< Copy Documents and Entries>>>
|
||||
-- logic to create Entries for Library Documents
|
||||
INSERT INTO [Entries] ([ContentID],[DocID],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],EE.[DocID],@DTS,@UserID
|
||||
FROM [Entries] EE JOIN @Children NN on NN.ContentID = EE.ContentID
|
||||
JOIN [Documents] DD on EE.[DocID] = DD.[DocID] and Isnull(LibTitle,'') <> ''
|
||||
-- Logic to create new documents for any documents used that do not have libtitles
|
||||
INSERT INTO [Documents] ([LibTitle],[DocContent],[DocAscii],[Config],[DTS],[UserID],[FileExtension])
|
||||
OUTPUT CAST(INSERTED.[LibTitle] as INT),INSERTED.[DocID] INTO @NewDocuments
|
||||
SELECT str(DD.[DocID]),[DocContent],[DocAscii],[Config],@DTS,@UserID,[FileExtension]
|
||||
FROM [Entries] EE JOIN @Children NN on NN.ContentID = EE.ContentID
|
||||
JOIN [Documents] DD on EE.[DocID] = DD.[DocID] and Isnull(LibTitle,'') = ''
|
||||
UPDATE DD SET LibTitle = ''
|
||||
FROM Documents DD JOIN @NewDocuments ND on DD.[DocID] = ND.[NewDocID]
|
||||
where DTS = @DTS and UserID = @UserID
|
||||
--print 'F ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Documents are Done
|
||||
-- SELECT * From Documents where DTS = @DTS and UserID = @UserID
|
||||
-- Logic to create entries for these newly created documents
|
||||
INSERT INTO [Entries] ([ContentID],[DocID],[DTS],[UserID])
|
||||
SELECT NN.[NewContentID],ND.[NewDocID],@DTS,@UserID
|
||||
FROM [Entries] EE JOIN @Children NN on NN.ContentID = EE.ContentID
|
||||
JOIN @NewDocuments ND on EE.[DocID] = ND.[DocID]
|
||||
-- Logic to Create DROUsages for these newly created documents
|
||||
INSERT INTO [DROUsages] ([DocID],[ROID],[Config],[DTS],[UserID],[RODbID])
|
||||
SELECT ND.[NewDocID],[ROID],[Config],@DTS,@UserID,[RODbID]
|
||||
FROM [DROUsages] RR
|
||||
JOIN @NewDocuments ND on RR.[DocID] = ND.[DocID]
|
||||
|
||||
--print 'G ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Entries are done
|
||||
-- SELECT * From Entries EE JOIN Documents DD on ee.DocID = DD.DocID where EE.DTS = @DTS and EE.UserID = @UserID
|
||||
-- <<< Copy RoUsages >>>
|
||||
INSERT INTO [RoUsages] ([ContentID],[ROID],[Config],[DTS],[UserID],[RODbID])
|
||||
SELECT NN.[NewContentID],CAST([ROUsageID] as nvarchar(16)),[Config],@DTS,@UserID,[RODbID]
|
||||
FROM [RoUsages] RR Join @Children NN on RR.ContentID = NN.ContentID
|
||||
-- Update content records for newly copied records to use correct RO usage ids in the RO tags
|
||||
DECLARE @RowsAffected int
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE CC SET [TEXT] = C2.NewText
|
||||
FROM CONTENTS CC
|
||||
JOIN (SELECT C1.ContentID, .dbo.vefn_FixROText(C1.Text, CAST([ROID] as int), [ROUsageID]) NewText
|
||||
FROM CONTENTS C1
|
||||
JOIN @Children NN on C1.ContentID = NN.NewContentID
|
||||
JOIN RoUsages RO on NN.NewContentID = RO.ContentID where Len([ROID]) < 12) C2 ON CC.ContentID = C2.ContentID
|
||||
WHERE [TEXT] <> C2.NewText
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
-- Update grid records for newly copied records to use correct RO usage ids in the RO tags
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE GG SET [Data] = G2.NewData
|
||||
FROM GRIDS GG
|
||||
JOIN (SELECT G1.ContentID, .dbo.vefn_FixROData(G1.Data, CAST([ROID] as int), [ROUsageID]) NewData
|
||||
FROM GRIDS G1
|
||||
JOIN @Children NN on G1.ContentID = NN.NewContentID
|
||||
JOIN RoUsages RO on NN.NewContentID = RO.ContentID where Len([ROID]) < 12) G2 ON GG.ContentID = G2.ContentID
|
||||
WHERE Cast([Data] as nvarchar(max)) <> cast(G2.NewData as nvarchar(max))
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
UPDATE RON SET [ROID] = ROO.[ROID]
|
||||
FROM RoUsages RON
|
||||
JOIN @Children NN on RON.ContentID = NN.NewContentID
|
||||
JOIN RoUsages ROO on CAST(RON.ROID as int) = ROO.RoUsageID
|
||||
where Len(RON.[ROID]) < 12
|
||||
--print 'H ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- RoUsages are done
|
||||
-- SELECT * From RoUsages where DTS = @DTS and UserID = @UserID
|
||||
|
||||
-- <<< Copy Transtions >>>
|
||||
-- Note that the inserted record has the 'TranType' field set to old transitionid. This is done
|
||||
-- so that the next step can replace the old transitionid with the new transitionid in the
|
||||
-- content record's transition tokens. The TranType gets reset after the content records are
|
||||
-- updated.
|
||||
-- Also note that the 'toid/rangeid' may need converted to newly copied ids or may not. If it's
|
||||
-- not a range, then it always is converted to new, if there is a new. If it's a range, both
|
||||
-- the toid & the rangeid must be new in order for the conversion to be correct. You cannot
|
||||
-- have part of the range pointing to the new and part of the range pointing to the original
|
||||
-- locations.
|
||||
|
||||
INSERT INTO .[dbo].[Transitions] ([FromID],[ToID],[RangeID],[IsRange],[TranType],[Config],[DTS],[UserID])
|
||||
SELECT NNF.[NewContentID],
|
||||
-- if both toid & range are null, use the original toid & rangeid
|
||||
CASE WHEN NNT.[NewItemID] is null or NNR.[NewItemID] is null THEN [ToID] ELSE NNT.[NewItemID] END,
|
||||
CASE WHEN NNT.[NewItemID] is null or NNR.[NewItemID] is null THEN [RangeID] ELSE NNR.[NewItemID] END,
|
||||
[IsRange],[TransitionID],[Config],@DTS,@UserID
|
||||
FROM .[dbo].[Transitions] TT
|
||||
JOIN @Children NNF on TT.[FromID] = NNF.[ContentID]
|
||||
LEFT JOIN @Children NNT on TT.[ToID] = NNT.[ItemID]
|
||||
LEFT JOIN @Children NNR on TT.[RangeID] = NNR.[ItemID]
|
||||
--print 'H1 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- -- Update content records for newly copied records to use correct TransitionIDs in the Transition tags
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE CC SET [TEXT] = C2.NewText
|
||||
FROM CONTENTS CC
|
||||
JOIN (SELECT C1.ContentID, .dbo.vefn_FixTransitionTextForCopy(C1.Text, TRO.TransitionID, TRO.TranType, TRO.[ToID], TRO.[RangeID],TR.[TransitionID], TR.[ToID], TR.[RangeID], .dbo.vefn_GetNewTranType(NN.FormatID, NN.NewFormatID, TRO.TranType)) NewText
|
||||
FROM CONTENTS C1
|
||||
JOIN @Children NN on C1.ContentID = NN.NewContentID
|
||||
JOIN Transitions TR on NN.NewContentID = TR.FromID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID) C2 ON CC.ContentID = C2.ContentID
|
||||
WHERE [TEXT] <> C2.NewText
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
--print 'H2 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--set nocount off
|
||||
-- -- Update grid records for newly copied records to use correct TransitionIDs in the Transition tags
|
||||
declare @grids table
|
||||
(
|
||||
contentid int primary key,
|
||||
data xml
|
||||
)
|
||||
insert into @grids select gg.contentid,gg.data from GRIDS GG
|
||||
where gg.contentid in (select nn.newcontentid from
|
||||
@Children NN
|
||||
JOIN Transitions TR on NN.NewContentID = TR.FromID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID)
|
||||
--print 'H2.1 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--select * from @grids
|
||||
SET @RowsAffected=1
|
||||
WHILE @RowsAffected > 0
|
||||
BEGIN
|
||||
UPDATE GG SET [DATA] = G2.NewData
|
||||
FROM @GRIDS GG
|
||||
JOIN (SELECT G1.ContentID, .dbo.vefn_FixTransitionDataForCopy(G1.Data, TRO.TransitionID, TRO.TranType, TRO.[ToID], TRO.[RangeID],TR.[TransitionID], TR.[ToID], TR.[RangeID], .dbo.vefn_GetNewTranType(NN.FormatID, NN.NewFormatID, TRO.TranType)) NewData
|
||||
FROM @GRIDS G1
|
||||
JOIN @Children NN on G1.ContentID = NN.NewContentID
|
||||
JOIN Transitions TR on NN.NewContentID = TR.FromID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID) G2 ON GG.ContentID = G2.ContentID
|
||||
WHERE Cast([DATA] as nvarchar(max)) <> CAST(G2.NewData as nvarchar(max))
|
||||
SET @RowsAffected = @@RowCount
|
||||
END
|
||||
--print 'H2.2 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
update GG set data = g1.data from Grids gg join @grids g1 on gg.contentid = g1.contentid
|
||||
--print 'H3 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--set nocount on
|
||||
-- Add 'Verification Required' AnnotationType
|
||||
DECLARE @typeID int
|
||||
SELECT @typeID = TypeID from AnnotationTypes where Name = 'Verification Required'
|
||||
IF(@typeID IS NULL)
|
||||
BEGIN
|
||||
INSERT INTO [AnnotationTypes] ([Name],[UserID]) VALUES ('Verification Required','Volian')
|
||||
SELECT @typeID = SCOPE_IDENTITY()
|
||||
END
|
||||
-- Add "Verification Required" Annotation for each Transition whose transition format changes
|
||||
INSERT INTO [Annotations] ([ItemID],[TypeID],[SearchText],[UserID])
|
||||
SELECT NN.NewItemID, @typeID,'Verify Transition Format',@UserID
|
||||
FROM Transitions TR
|
||||
JOIN @Children NN on TR.FromID = NN.NewContentID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID
|
||||
WHERE .dbo.vefn_CompareTranFormat(NN.FormatID, NN.NewFormatID, TRO.TranType) <> 0
|
||||
--print 'H4 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
UPDATE TR SET TR.[TranType] = .dbo.vefn_GetNewTranType(NN.FormatID, NN.NewFormatID, TRO.TranType)
|
||||
FROM Transitions TR
|
||||
JOIN @Children NN on TR.FromID = NN.NewContentID
|
||||
JOIN Transitions TRO on TR.TranType = TRO.TransitionID
|
||||
--print 'H5 ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
-- Transitions are done
|
||||
-- SELECT * From Transitions where DTS = @DTS and UserID = @UserID
|
||||
--print 'Z ' + cast(datediff(s,@dts,getdate()) as varchar(100))
|
||||
--foldouts fixing code
|
||||
if exists (select * from contents where contentid in (select newcontentid from @children) and config like '%FloatingFoldout%')
|
||||
begin
|
||||
--insert into #mytemp
|
||||
select cc.contentid,xsteps.value('@FloatingFoldout','int') oldfoldoutid,(select newitemid
|
||||
from @children
|
||||
where itemid = xsteps.value('@FloatingFoldout','int')) newfoldoutid,xconfig
|
||||
into #mytemp
|
||||
from (select *,cast(config as xml) xconfig from contents where contentid in (select newcontentid from @children)) cc
|
||||
cross apply xconfig.nodes('Config/Step') tsteps(xsteps)
|
||||
--build @cmd string
|
||||
declare @cmd nvarchar(max)
|
||||
declare cmds cursor for
|
||||
select distinct 'update #mytemp set xconfig.modify(''replace value of (Config/Step/@FloatingFoldout)[1] with "'
|
||||
+ cast(newfoldoutid as varchar(10))
|
||||
+ '"'') where xconfig.value(''(Config/Step/@FloatingFoldout)[1]'',''int'') = '
|
||||
+ cast(oldfoldoutid as varchar(10))
|
||||
from #mytemp
|
||||
--execute cursor over rows
|
||||
open cmds
|
||||
fetch next from cmds into @cmd
|
||||
while @@fetch_status = 0
|
||||
begin
|
||||
exec sp_executesql @cmd
|
||||
fetch next from cmds into @cmd
|
||||
end
|
||||
close cmds
|
||||
deallocate cmds
|
||||
--actually update contents
|
||||
update cc set config = cast(xconfig as varchar(max)) from contents cc join #mytemp mt on cc.contentid = mt.contentid
|
||||
--get rid of #mytemp
|
||||
drop table #mytemp
|
||||
end
|
||||
--end foldouts fixing code
|
||||
--section start
|
||||
DECLARE @NewContentID int
|
||||
Select @NewContentID = NewContentID from @Children where ItemID = @StartItemID
|
||||
DECLARE @Config varchar(max)
|
||||
DECLARE @XConfig xml
|
||||
select @Config = config from contents where contentid = @NewContentID
|
||||
select @XConfig = cast(@Config as xml)
|
||||
if @Config like '%SectionStart%' begin
|
||||
DECLARE @SectionStart int
|
||||
select @SectionStart = xproc.value('@SectionStart','int') from @xconfig.nodes('Config/Procedure') tproc(xproc)
|
||||
DECLARE @NewSectionStart int
|
||||
select @NewSectionStart = newitemid from @children where itemid = @SectionStart
|
||||
DECLARE @cmd2 nvarchar(max)
|
||||
set @cmd2 = '
|
||||
declare @XConfig xml;
|
||||
set @XConfig = cast(''' + @Config + ''' as xml);
|
||||
set @XConfig.modify(''replace value of (Config/Procedure/@SectionStart)[1] with "' + cast(@NewSectionStart as nvarchar(10)) + '"'');
|
||||
update contents set config = cast(@XConfig as varchar(max)) where contentid = ' + cast(@NewContentID as nvarchar(10)) + ';'
|
||||
exec sp_executesql @cmd2
|
||||
end
|
||||
--end section start
|
||||
IF( @@TRANCOUNT > 0 ) COMMIT
|
||||
END TRY
|
||||
BEGIN CATCH -- Catch Block
|
||||
IF( @@TRANCOUNT = 1 ) ROLLBACK -- Only rollback if top level
|
||||
ELSE IF( @@TRANCOUNT > 1 ) COMMIT -- Otherwise commit. Top level will rollback
|
||||
EXEC vlnErrorHandler
|
||||
END CATCH
|
||||
|
||||
Go
|
||||
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: [CopyItemAndChildren] Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: [CopyItemAndChildren] Error on Creation'
|
||||
GO
|
||||
|
||||
/*
|
||||
==========================================================================================================
|
||||
End: C2024-004: KL - Update Copy Replace functionality, (remove ''copy of'')
|
||||
==========================================================================================================
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
/*
|
||||
---------------------------------------------------------------------------
|
||||
@@ -22260,8 +22673,8 @@ BEGIN TRY -- Try Block
|
||||
DECLARE @RevDate varchar(255)
|
||||
DECLARE @RevDescription varchar(255)
|
||||
|
||||
set @RevDate = '03/27/2024 11:00 AM'
|
||||
set @RevDescription = 'B2024-018: Enhanced link issue with sub-sections in source but not in enhanced'
|
||||
set @RevDate = '07/09/2024 9:00 AM'
|
||||
set @RevDescription = 'C2024-004: Update Copy Replace functionality'
|
||||
|
||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||
|
625
PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs
generated
625
PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs
generated
@@ -52,24 +52,6 @@
|
||||
this.expandableSplitter1 = new DevComponents.DotNetBar.ExpandableSplitter();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.sideNav1 = new DevComponents.DotNetBar.Controls.SideNav();
|
||||
this.sideNavPanel4 = new DevComponents.DotNetBar.Controls.SideNavPanel();
|
||||
this.swDeleteFolder = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX13 = new DevComponents.DotNetBar.LabelX();
|
||||
this.swDeleteAnnotations = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX14 = new DevComponents.DotNetBar.LabelX();
|
||||
this.myTVdel = new System.Windows.Forms.TreeView();
|
||||
this.btnDeleteItems = new DevComponents.DotNetBar.ButtonX();
|
||||
this.sideNavPanel3 = new DevComponents.DotNetBar.Controls.SideNavPanel();
|
||||
this.swCheckROLinks = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX12 = new DevComponents.DotNetBar.LabelX();
|
||||
this.warningBox5 = new DevComponents.DotNetBar.Controls.WarningBox();
|
||||
this.line3 = new DevComponents.DotNetBar.Controls.Line();
|
||||
this.swUpdateROVals = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.swRefreshTrans = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX11 = new DevComponents.DotNetBar.LabelX();
|
||||
this.labelX6 = new DevComponents.DotNetBar.LabelX();
|
||||
this.warningBox1 = new DevComponents.DotNetBar.Controls.WarningBox();
|
||||
this.btnFixLinks = new DevComponents.DotNetBar.ButtonX();
|
||||
this.sideNavPanel2 = new DevComponents.DotNetBar.Controls.SideNavPanel();
|
||||
this.swRefreshTblsForSrch = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.lblRefreshTblForSrch = new DevComponents.DotNetBar.LabelX();
|
||||
@@ -97,14 +79,25 @@
|
||||
this.swCkOrphanDataRecs = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX1 = new DevComponents.DotNetBar.LabelX();
|
||||
this.btnRunCheck = new DevComponents.DotNetBar.ButtonX();
|
||||
this.sideNavPanel3 = new DevComponents.DotNetBar.Controls.SideNavPanel();
|
||||
this.swCheckROLinks = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX12 = new DevComponents.DotNetBar.LabelX();
|
||||
this.warningBox5 = new DevComponents.DotNetBar.Controls.WarningBox();
|
||||
this.line3 = new DevComponents.DotNetBar.Controls.Line();
|
||||
this.swUpdateROVals = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.swRefreshTrans = new DevComponents.DotNetBar.Controls.SwitchButton();
|
||||
this.labelX11 = new DevComponents.DotNetBar.LabelX();
|
||||
this.labelX6 = new DevComponents.DotNetBar.LabelX();
|
||||
this.warningBox1 = new DevComponents.DotNetBar.Controls.WarningBox();
|
||||
this.btnFixLinks = new DevComponents.DotNetBar.ButtonX();
|
||||
this.sideNavPanel4 = new DevComponents.DotNetBar.Controls.SideNavPanel();
|
||||
this.btn_ShowUsers = new DevComponents.DotNetBar.ButtonX();
|
||||
this.sideNavItem1 = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.separator1 = new DevComponents.DotNetBar.Separator();
|
||||
this.sideNavItmCheck = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.sideNavItmRepair = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.sideNavItmLinks = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.sideNavItmUsers = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.sideNavItemDelete = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.sideNavItmExit = new DevComponents.DotNetBar.Controls.SideNavItem();
|
||||
this.panelEx4 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.progressSteps1 = new DevComponents.DotNetBar.ProgressSteps();
|
||||
@@ -125,10 +118,10 @@
|
||||
this.pnlLater.SuspendLayout();
|
||||
this.panelEx1.SuspendLayout();
|
||||
this.sideNav1.SuspendLayout();
|
||||
this.sideNavPanel4.SuspendLayout();
|
||||
this.sideNavPanel3.SuspendLayout();
|
||||
this.sideNavPanel2.SuspendLayout();
|
||||
this.sideNavPanel1.SuspendLayout();
|
||||
this.sideNavPanel3.SuspendLayout();
|
||||
this.sideNavPanel4.SuspendLayout();
|
||||
this.panelEx4.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
@@ -140,7 +133,7 @@
|
||||
this.myTV.CheckBoxes = true;
|
||||
this.myTV.Location = new System.Drawing.Point(0, 230);
|
||||
this.myTV.Name = "myTV";
|
||||
this.myTV.Size = new System.Drawing.Size(170, 218);
|
||||
this.myTV.Size = new System.Drawing.Size(300, 264);
|
||||
this.myTV.TabIndex = 4;
|
||||
this.myTV.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.myTV_AfterCheck);
|
||||
//
|
||||
@@ -350,7 +343,7 @@
|
||||
this.pnlLater.Controls.Add(this.dtpDate);
|
||||
this.pnlLater.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlLater.Enabled = false;
|
||||
this.pnlLater.Location = new System.Drawing.Point(6, 27);
|
||||
this.pnlLater.Location = new System.Drawing.Point(6, 23);
|
||||
this.pnlLater.Name = "pnlLater";
|
||||
this.pnlLater.Padding = new System.Windows.Forms.Padding(6);
|
||||
this.pnlLater.Size = new System.Drawing.Size(279, 37);
|
||||
@@ -391,7 +384,7 @@
|
||||
this.chkLater.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.chkLater.Location = new System.Drawing.Point(6, 6);
|
||||
this.chkLater.Name = "chkLater";
|
||||
this.chkLater.Size = new System.Drawing.Size(279, 21);
|
||||
this.chkLater.Size = new System.Drawing.Size(279, 17);
|
||||
this.chkLater.TabIndex = 4;
|
||||
this.chkLater.Text = "Process Later";
|
||||
this.chkLater.UseVisualStyleBackColor = true;
|
||||
@@ -464,10 +457,10 @@
|
||||
// sideNav1
|
||||
//
|
||||
this.sideNav1.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.sideNav1.Controls.Add(this.sideNavPanel3);
|
||||
this.sideNav1.Controls.Add(this.sideNavPanel1);
|
||||
this.sideNav1.Controls.Add(this.sideNavPanel4);
|
||||
this.sideNav1.Controls.Add(this.sideNavPanel3);
|
||||
this.sideNav1.Controls.Add(this.sideNavPanel2);
|
||||
this.sideNav1.Controls.Add(this.sideNavPanel4);
|
||||
this.sideNav1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNav1.EnableClose = false;
|
||||
this.sideNav1.EnableMaximize = false;
|
||||
@@ -478,7 +471,6 @@
|
||||
this.sideNavItmRepair,
|
||||
this.sideNavItmLinks,
|
||||
this.sideNavItmUsers,
|
||||
this.sideNavItemDelete,
|
||||
this.sideNavItmExit});
|
||||
this.sideNav1.Location = new System.Drawing.Point(0, 0);
|
||||
this.sideNav1.Name = "sideNav1";
|
||||
@@ -487,297 +479,6 @@
|
||||
this.sideNav1.TabIndex = 3;
|
||||
this.sideNav1.Text = "sideNav1";
|
||||
//
|
||||
// sideNavPanel4
|
||||
//
|
||||
this.sideNavPanel4.Controls.Add(this.swDeleteFolder);
|
||||
this.sideNavPanel4.Controls.Add(this.labelX13);
|
||||
this.sideNavPanel4.Controls.Add(this.swDeleteAnnotations);
|
||||
this.sideNavPanel4.Controls.Add(this.labelX14);
|
||||
this.sideNavPanel4.Controls.Add(this.myTVdel);
|
||||
this.sideNavPanel4.Controls.Add(this.btnDeleteItems);
|
||||
this.sideNavPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel4.Location = new System.Drawing.Point(102, 39);
|
||||
this.sideNavPanel4.Name = "sideNavPanel4";
|
||||
this.sideNavPanel4.Size = new System.Drawing.Size(278, 486);
|
||||
this.sideNavPanel4.TabIndex = 27;
|
||||
this.sideNavPanel4.Visible = false;
|
||||
//
|
||||
// swDeleteFolder
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swDeleteFolder.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swDeleteFolder.Location = new System.Drawing.Point(10, 43);
|
||||
this.swDeleteFolder.Name = "swDeleteFolder";
|
||||
this.swDeleteFolder.Size = new System.Drawing.Size(69, 22);
|
||||
this.swDeleteFolder.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swDeleteFolder, new DevComponents.DotNetBar.SuperTooltipInfo("Check RO Links", "", resources.GetString("swDeleteFolder.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.swDeleteFolder.SwitchClickTogglesValue = true;
|
||||
this.swDeleteFolder.TabIndex = 39;
|
||||
this.swDeleteFolder.ValueChanged += new System.EventHandler(this.swDeleteFolder_ValueChanged);
|
||||
//
|
||||
// labelX13
|
||||
//
|
||||
this.labelX13.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX13.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX13.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX13.Location = new System.Drawing.Point(85, 42);
|
||||
this.labelX13.Name = "labelX13";
|
||||
this.labelX13.Size = new System.Drawing.Size(168, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX13, new DevComponents.DotNetBar.SuperTooltipInfo("Check RO Links", "", resources.GetString("labelX13.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(350, 175)));
|
||||
this.labelX13.TabIndex = 38;
|
||||
this.labelX13.Text = "Delete Folders";
|
||||
//
|
||||
// swDeleteAnnotations
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swDeleteAnnotations.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swDeleteAnnotations.Location = new System.Drawing.Point(10, 15);
|
||||
this.swDeleteAnnotations.Name = "swDeleteAnnotations";
|
||||
this.swDeleteAnnotations.Size = new System.Drawing.Size(69, 22);
|
||||
this.swDeleteAnnotations.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swDeleteAnnotations, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("swDeleteAnnotations.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(265, 175)));
|
||||
this.swDeleteAnnotations.SwitchClickTogglesValue = true;
|
||||
this.swDeleteAnnotations.TabIndex = 37;
|
||||
this.swDeleteAnnotations.Value = true;
|
||||
this.swDeleteAnnotations.ValueObject = "Y";
|
||||
this.swDeleteAnnotations.ValueChanged += new System.EventHandler(this.swDeleteAnnotations_ValueChanged);
|
||||
//
|
||||
// labelX14
|
||||
//
|
||||
this.labelX14.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX14.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX14.Location = new System.Drawing.Point(85, 14);
|
||||
this.labelX14.Name = "labelX14";
|
||||
this.labelX14.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX14, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("labelX14.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(256, 175)));
|
||||
this.labelX14.TabIndex = 36;
|
||||
this.labelX14.Text = "Delete Annotations";
|
||||
//
|
||||
// myTVdel
|
||||
//
|
||||
this.myTVdel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.myTVdel.CheckBoxes = true;
|
||||
this.myTVdel.Location = new System.Drawing.Point(14, 145);
|
||||
this.myTVdel.Name = "myTVdel";
|
||||
this.myTVdel.Size = new System.Drawing.Size(254, 323);
|
||||
this.myTVdel.TabIndex = 34;
|
||||
//
|
||||
// btnDeleteItems
|
||||
//
|
||||
this.btnDeleteItems.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnDeleteItems.Checked = true;
|
||||
this.btnDeleteItems.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnDeleteItems.Location = new System.Drawing.Point(3, 98);
|
||||
this.btnDeleteItems.Name = "btnDeleteItems";
|
||||
this.btnDeleteItems.Size = new System.Drawing.Size(280, 23);
|
||||
this.btnDeleteItems.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.btnDeleteItems, new DevComponents.DotNetBar.SuperTooltipInfo("Process Links", "", "This will run the selected RO Links or Transitions Links tool.\r\n\r\nClick on the on" +
|
||||
"/off switches to turn on/off each tool.\r\n\r\nNote that only one of these tools can" +
|
||||
" be run at a time.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 130)));
|
||||
this.btnDeleteItems.TabIndex = 35;
|
||||
this.btnDeleteItems.Text = "Process Deletions";
|
||||
this.btnDeleteItems.Click += new System.EventHandler(this.btnDeleteItems_Click);
|
||||
//
|
||||
// sideNavPanel3
|
||||
//
|
||||
this.sideNavPanel3.Controls.Add(this.swCheckROLinks);
|
||||
this.sideNavPanel3.Controls.Add(this.labelX12);
|
||||
this.sideNavPanel3.Controls.Add(this.warningBox5);
|
||||
this.sideNavPanel3.Controls.Add(this.line3);
|
||||
this.sideNavPanel3.Controls.Add(this.swUpdateROVals);
|
||||
this.sideNavPanel3.Controls.Add(this.swRefreshTrans);
|
||||
this.sideNavPanel3.Controls.Add(this.labelX11);
|
||||
this.sideNavPanel3.Controls.Add(this.labelX6);
|
||||
this.sideNavPanel3.Controls.Add(this.warningBox1);
|
||||
this.sideNavPanel3.Controls.Add(this.myTV);
|
||||
this.sideNavPanel3.Controls.Add(this.btnFixLinks);
|
||||
this.sideNavPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel3.Location = new System.Drawing.Point(102, 39);
|
||||
this.sideNavPanel3.Name = "sideNavPanel3";
|
||||
this.sideNavPanel3.Size = new System.Drawing.Size(278, 486);
|
||||
this.sideNavPanel3.TabIndex = 10;
|
||||
//
|
||||
// swCheckROLinks
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swCheckROLinks.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swCheckROLinks.Location = new System.Drawing.Point(10, 66);
|
||||
this.swCheckROLinks.Name = "swCheckROLinks";
|
||||
this.swCheckROLinks.Size = new System.Drawing.Size(91, 22);
|
||||
this.swCheckROLinks.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swCheckROLinks, new DevComponents.DotNetBar.SuperTooltipInfo("Check RO Links", "", resources.GetString("swCheckROLinks.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.swCheckROLinks.SwitchClickTogglesValue = true;
|
||||
this.swCheckROLinks.TabIndex = 33;
|
||||
this.swCheckROLinks.ValueChanged += new System.EventHandler(this.swCheckROLinks_ValueChanged);
|
||||
//
|
||||
// labelX12
|
||||
//
|
||||
this.labelX12.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX12.Location = new System.Drawing.Point(107, 66);
|
||||
this.labelX12.Name = "labelX12";
|
||||
this.labelX12.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX12, new DevComponents.DotNetBar.SuperTooltipInfo("Check RO Links", "", resources.GetString("labelX12.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(350, 175)));
|
||||
this.labelX12.TabIndex = 32;
|
||||
this.labelX12.Text = "Check RO Links";
|
||||
//
|
||||
// warningBox5
|
||||
//
|
||||
this.warningBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249)))));
|
||||
this.warningBox5.CloseButtonVisible = false;
|
||||
this.warningBox5.Image = ((System.Drawing.Image)(resources.GetObject("warningBox5.Image")));
|
||||
this.warningBox5.Location = new System.Drawing.Point(17, 145);
|
||||
this.warningBox5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.warningBox5.Name = "warningBox5";
|
||||
this.warningBox5.OptionsButtonVisible = false;
|
||||
this.warningBox5.Size = new System.Drawing.Size(262, 32);
|
||||
this.warningBox5.TabIndex = 31;
|
||||
this.warningBox5.Text = "<b>NOTE</b> These tools can take a long time to run";
|
||||
//
|
||||
// line3
|
||||
//
|
||||
this.line3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.line3.Location = new System.Drawing.Point(6, 127);
|
||||
this.line3.Name = "line3";
|
||||
this.line3.Size = new System.Drawing.Size(285, 12);
|
||||
this.line3.TabIndex = 30;
|
||||
this.line3.Text = "line3";
|
||||
//
|
||||
// swUpdateROVals
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swUpdateROVals.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swUpdateROVals.Location = new System.Drawing.Point(10, 10);
|
||||
this.swUpdateROVals.Name = "swUpdateROVals";
|
||||
this.swUpdateROVals.Size = new System.Drawing.Size(91, 22);
|
||||
this.swUpdateROVals.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swUpdateROVals, new DevComponents.DotNetBar.SuperTooltipInfo("Update RO Values", "", resources.GetString("swUpdateROVals.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.swUpdateROVals.SwitchClickTogglesValue = true;
|
||||
this.swUpdateROVals.TabIndex = 29;
|
||||
this.swUpdateROVals.Value = true;
|
||||
this.swUpdateROVals.ValueObject = "Y";
|
||||
this.swUpdateROVals.ValueChanged += new System.EventHandler(this.swUpdateROVals_ValueChanged);
|
||||
//
|
||||
// swRefreshTrans
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swRefreshTrans.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swRefreshTrans.Location = new System.Drawing.Point(10, 38);
|
||||
this.swRefreshTrans.Name = "swRefreshTrans";
|
||||
this.swRefreshTrans.Size = new System.Drawing.Size(91, 22);
|
||||
this.swRefreshTrans.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swRefreshTrans, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("swRefreshTrans.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(265, 175)));
|
||||
this.swRefreshTrans.SwitchClickTogglesValue = true;
|
||||
this.swRefreshTrans.TabIndex = 29;
|
||||
this.swRefreshTrans.ValueChanged += new System.EventHandler(this.swRefreshTrans_ValueChanged);
|
||||
//
|
||||
// labelX11
|
||||
//
|
||||
this.labelX11.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX11.Location = new System.Drawing.Point(107, 10);
|
||||
this.labelX11.Name = "labelX11";
|
||||
this.labelX11.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX11, new DevComponents.DotNetBar.SuperTooltipInfo("Update RO Values", "", resources.GetString("labelX11.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.labelX11.TabIndex = 28;
|
||||
this.labelX11.Text = "Update RO Values";
|
||||
//
|
||||
// labelX6
|
||||
//
|
||||
this.labelX6.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX6.Location = new System.Drawing.Point(107, 38);
|
||||
this.labelX6.Name = "labelX6";
|
||||
this.labelX6.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX6, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("labelX6.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(256, 175)));
|
||||
this.labelX6.TabIndex = 28;
|
||||
this.labelX6.Text = "Refresh Transitions";
|
||||
//
|
||||
// warningBox1
|
||||
//
|
||||
this.warningBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249)))));
|
||||
this.warningBox1.CloseButtonVisible = false;
|
||||
this.warningBox1.Image = ((System.Drawing.Image)(resources.GetObject("warningBox1.Image")));
|
||||
this.warningBox1.Location = new System.Drawing.Point(17, 181);
|
||||
this.warningBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.warningBox1.Name = "warningBox1";
|
||||
this.warningBox1.OptionsButtonVisible = false;
|
||||
this.warningBox1.Size = new System.Drawing.Size(262, 43);
|
||||
this.warningBox1.TabIndex = 7;
|
||||
this.warningBox1.Text = " Be sure there is a current backup of the \r\n database prior to running these func" +
|
||||
"tions";
|
||||
//
|
||||
// btnFixLinks
|
||||
//
|
||||
this.btnFixLinks.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnFixLinks.Checked = true;
|
||||
this.btnFixLinks.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnFixLinks.Location = new System.Drawing.Point(10, 98);
|
||||
this.btnFixLinks.Name = "btnFixLinks";
|
||||
this.btnFixLinks.Size = new System.Drawing.Size(280, 23);
|
||||
this.btnFixLinks.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.btnFixLinks, new DevComponents.DotNetBar.SuperTooltipInfo("Process Links", "", "This will run the selected RO Links or Transitions Links tool.\r\n\r\nClick on the on" +
|
||||
"/off switches to turn on/off each tool.\r\n\r\nNote that only one of these tools can" +
|
||||
" be run at a time.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 130)));
|
||||
this.btnFixLinks.TabIndex = 6;
|
||||
this.btnFixLinks.Text = "Process Links";
|
||||
this.btnFixLinks.Click += new System.EventHandler(this.btnFixLinks_Click);
|
||||
//
|
||||
// sideNavPanel2
|
||||
//
|
||||
this.sideNavPanel2.Controls.Add(this.swRefreshTblsForSrch);
|
||||
this.sideNavPanel2.Controls.Add(this.lblRefreshTblForSrch);
|
||||
this.sideNavPanel2.Controls.Add(this.warningBox4);
|
||||
this.sideNavPanel2.Controls.Add(this.warningBox2);
|
||||
this.sideNavPanel2.Controls.Add(this.swRmObsoleteROData);
|
||||
this.sideNavPanel2.Controls.Add(this.swRefreshWordAttmts);
|
||||
this.sideNavPanel2.Controls.Add(this.swStandardHypenChars);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX4);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX5);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX9);
|
||||
this.sideNavPanel2.Controls.Add(this.swRmOrphanDataRecs);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX10);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX8);
|
||||
this.sideNavPanel2.Controls.Add(this.line2);
|
||||
this.sideNavPanel2.Controls.Add(this.btnRunRepair);
|
||||
this.sideNavPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel2.Location = new System.Drawing.Point(102, 39);
|
||||
this.sideNavPanel2.Name = "sideNavPanel2";
|
||||
this.sideNavPanel2.Size = new System.Drawing.Size(278, 486);
|
||||
this.sideNavPanel2.TabIndex = 6;
|
||||
this.sideNavPanel2.Visible = false;
|
||||
//
|
||||
// swRefreshTblsForSrch
|
||||
//
|
||||
//
|
||||
@@ -816,7 +517,6 @@
|
||||
this.warningBox4.CloseButtonVisible = false;
|
||||
this.warningBox4.Image = ((System.Drawing.Image)(resources.GetObject("warningBox4.Image")));
|
||||
this.warningBox4.Location = new System.Drawing.Point(12, 264);
|
||||
this.warningBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.warningBox4.Name = "warningBox4";
|
||||
this.warningBox4.OptionsButtonVisible = false;
|
||||
this.warningBox4.Size = new System.Drawing.Size(264, 32);
|
||||
@@ -829,7 +529,6 @@
|
||||
this.warningBox2.CloseButtonVisible = false;
|
||||
this.warningBox2.Image = ((System.Drawing.Image)(resources.GetObject("warningBox2.Image")));
|
||||
this.warningBox2.Location = new System.Drawing.Point(12, 302);
|
||||
this.warningBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.warningBox2.Name = "warningBox2";
|
||||
this.warningBox2.OptionsButtonVisible = false;
|
||||
this.warningBox2.Size = new System.Drawing.Size(264, 43);
|
||||
@@ -999,7 +698,7 @@
|
||||
this.btnRunRepair.Size = new System.Drawing.Size(280, 23);
|
||||
this.btnRunRepair.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.btnRunRepair, new DevComponents.DotNetBar.SuperTooltipInfo("Run Repair", "", "This will run the database repair tools selected.\r\n\r\nClick on the on/off switches" +
|
||||
" to turn on/off each tool.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 103)));
|
||||
" to turn on/off each tool.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 103)));
|
||||
this.btnRunRepair.TabIndex = 3;
|
||||
this.btnRunRepair.Text = "Run Repair";
|
||||
this.btnRunRepair.Click += new System.EventHandler(this.btnRunRepair_Click);
|
||||
@@ -1017,11 +716,10 @@
|
||||
this.sideNavPanel1.Controls.Add(this.labelX1);
|
||||
this.sideNavPanel1.Controls.Add(this.btnRunCheck);
|
||||
this.sideNavPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel1.Location = new System.Drawing.Point(102, 39);
|
||||
this.sideNavPanel1.Location = new System.Drawing.Point(80, 31);
|
||||
this.sideNavPanel1.Name = "sideNavPanel1";
|
||||
this.sideNavPanel1.Size = new System.Drawing.Size(278, 486);
|
||||
this.sideNavPanel1.Size = new System.Drawing.Size(300, 494);
|
||||
this.sideNavPanel1.TabIndex = 2;
|
||||
this.sideNavPanel1.Visible = false;
|
||||
//
|
||||
// warningBox3
|
||||
//
|
||||
@@ -1029,7 +727,6 @@
|
||||
this.warningBox3.CloseButtonVisible = false;
|
||||
this.warningBox3.Image = ((System.Drawing.Image)(resources.GetObject("warningBox3.Image")));
|
||||
this.warningBox3.Location = new System.Drawing.Point(17, 207);
|
||||
this.warningBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||
this.warningBox3.Name = "warningBox3";
|
||||
this.warningBox3.OptionsButtonVisible = false;
|
||||
this.warningBox3.Size = new System.Drawing.Size(264, 32);
|
||||
@@ -1171,6 +868,248 @@
|
||||
this.btnRunCheck.Text = "Run Check";
|
||||
this.btnRunCheck.Click += new System.EventHandler(this.btnRunCheck_Click);
|
||||
//
|
||||
// sideNavPanel3
|
||||
//
|
||||
this.sideNavPanel3.Controls.Add(this.swCheckROLinks);
|
||||
this.sideNavPanel3.Controls.Add(this.labelX12);
|
||||
this.sideNavPanel3.Controls.Add(this.warningBox5);
|
||||
this.sideNavPanel3.Controls.Add(this.line3);
|
||||
this.sideNavPanel3.Controls.Add(this.swUpdateROVals);
|
||||
this.sideNavPanel3.Controls.Add(this.swRefreshTrans);
|
||||
this.sideNavPanel3.Controls.Add(this.labelX11);
|
||||
this.sideNavPanel3.Controls.Add(this.labelX6);
|
||||
this.sideNavPanel3.Controls.Add(this.warningBox1);
|
||||
this.sideNavPanel3.Controls.Add(this.myTV);
|
||||
this.sideNavPanel3.Controls.Add(this.btnFixLinks);
|
||||
this.sideNavPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel3.Location = new System.Drawing.Point(80, 31);
|
||||
this.sideNavPanel3.Name = "sideNavPanel3";
|
||||
this.sideNavPanel3.Size = new System.Drawing.Size(300, 494);
|
||||
this.sideNavPanel3.TabIndex = 10;
|
||||
this.sideNavPanel3.Visible = false;
|
||||
//
|
||||
// swCheckROLinks
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swCheckROLinks.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swCheckROLinks.Location = new System.Drawing.Point(10, 66);
|
||||
this.swCheckROLinks.Name = "swCheckROLinks";
|
||||
this.swCheckROLinks.Size = new System.Drawing.Size(91, 22);
|
||||
this.swCheckROLinks.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swCheckROLinks, new DevComponents.DotNetBar.SuperTooltipInfo("Check RO Links", "", resources.GetString("swCheckROLinks.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.swCheckROLinks.SwitchClickTogglesValue = true;
|
||||
this.swCheckROLinks.TabIndex = 33;
|
||||
this.swCheckROLinks.ValueChanged += new System.EventHandler(this.swCheckROLinks_ValueChanged);
|
||||
//
|
||||
// labelX12
|
||||
//
|
||||
this.labelX12.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX12.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX12.Location = new System.Drawing.Point(107, 66);
|
||||
this.labelX12.Name = "labelX12";
|
||||
this.labelX12.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX12, new DevComponents.DotNetBar.SuperTooltipInfo("Check RO Links", "", resources.GetString("labelX12.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(350, 175)));
|
||||
this.labelX12.TabIndex = 32;
|
||||
this.labelX12.Text = "Check RO Links";
|
||||
//
|
||||
// warningBox5
|
||||
//
|
||||
this.warningBox5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249)))));
|
||||
this.warningBox5.CloseButtonVisible = false;
|
||||
this.warningBox5.Image = ((System.Drawing.Image)(resources.GetObject("warningBox5.Image")));
|
||||
this.warningBox5.Location = new System.Drawing.Point(17, 145);
|
||||
this.warningBox5.Name = "warningBox5";
|
||||
this.warningBox5.OptionsButtonVisible = false;
|
||||
this.warningBox5.Size = new System.Drawing.Size(262, 32);
|
||||
this.warningBox5.TabIndex = 31;
|
||||
this.warningBox5.Text = "<b>NOTE</b> These tools can take a long time to run";
|
||||
//
|
||||
// line3
|
||||
//
|
||||
this.line3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.line3.Location = new System.Drawing.Point(6, 127);
|
||||
this.line3.Name = "line3";
|
||||
this.line3.Size = new System.Drawing.Size(285, 12);
|
||||
this.line3.TabIndex = 30;
|
||||
this.line3.Text = "line3";
|
||||
//
|
||||
// swUpdateROVals
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swUpdateROVals.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swUpdateROVals.Location = new System.Drawing.Point(10, 10);
|
||||
this.swUpdateROVals.Name = "swUpdateROVals";
|
||||
this.swUpdateROVals.Size = new System.Drawing.Size(91, 22);
|
||||
this.swUpdateROVals.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swUpdateROVals, new DevComponents.DotNetBar.SuperTooltipInfo("Update RO Values", "", resources.GetString("swUpdateROVals.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.swUpdateROVals.SwitchClickTogglesValue = true;
|
||||
this.swUpdateROVals.TabIndex = 29;
|
||||
this.swUpdateROVals.Value = true;
|
||||
this.swUpdateROVals.ValueObject = "Y";
|
||||
this.swUpdateROVals.ValueChanged += new System.EventHandler(this.swUpdateROVals_ValueChanged);
|
||||
//
|
||||
// swRefreshTrans
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swRefreshTrans.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swRefreshTrans.Location = new System.Drawing.Point(10, 38);
|
||||
this.swRefreshTrans.Name = "swRefreshTrans";
|
||||
this.swRefreshTrans.Size = new System.Drawing.Size(91, 22);
|
||||
this.swRefreshTrans.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swRefreshTrans, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("swRefreshTrans.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(265, 175)));
|
||||
this.swRefreshTrans.SwitchClickTogglesValue = true;
|
||||
this.swRefreshTrans.TabIndex = 29;
|
||||
this.swRefreshTrans.ValueChanged += new System.EventHandler(this.swRefreshTrans_ValueChanged);
|
||||
//
|
||||
// labelX11
|
||||
//
|
||||
this.labelX11.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX11.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX11.Location = new System.Drawing.Point(107, 10);
|
||||
this.labelX11.Name = "labelX11";
|
||||
this.labelX11.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX11, new DevComponents.DotNetBar.SuperTooltipInfo("Update RO Values", "", resources.GetString("labelX11.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 150)));
|
||||
this.labelX11.TabIndex = 28;
|
||||
this.labelX11.Text = "Update RO Values";
|
||||
//
|
||||
// labelX6
|
||||
//
|
||||
this.labelX6.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.labelX6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.labelX6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelX6.Location = new System.Drawing.Point(107, 38);
|
||||
this.labelX6.Name = "labelX6";
|
||||
this.labelX6.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.labelX6, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Transitions", "", resources.GetString("labelX6.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(256, 175)));
|
||||
this.labelX6.TabIndex = 28;
|
||||
this.labelX6.Text = "Refresh Transitions";
|
||||
//
|
||||
// warningBox1
|
||||
//
|
||||
this.warningBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249)))));
|
||||
this.warningBox1.CloseButtonVisible = false;
|
||||
this.warningBox1.Image = ((System.Drawing.Image)(resources.GetObject("warningBox1.Image")));
|
||||
this.warningBox1.Location = new System.Drawing.Point(17, 181);
|
||||
this.warningBox1.Name = "warningBox1";
|
||||
this.warningBox1.OptionsButtonVisible = false;
|
||||
this.warningBox1.Size = new System.Drawing.Size(262, 43);
|
||||
this.warningBox1.TabIndex = 7;
|
||||
this.warningBox1.Text = " Be sure there is a current backup of the \r\n database prior to running these func" +
|
||||
"tions";
|
||||
//
|
||||
// btnFixLinks
|
||||
//
|
||||
this.btnFixLinks.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btnFixLinks.Checked = true;
|
||||
this.btnFixLinks.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btnFixLinks.Location = new System.Drawing.Point(10, 98);
|
||||
this.btnFixLinks.Name = "btnFixLinks";
|
||||
this.btnFixLinks.Size = new System.Drawing.Size(280, 23);
|
||||
this.btnFixLinks.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.btnFixLinks, new DevComponents.DotNetBar.SuperTooltipInfo("Process Links", "", "This will run the selected RO Links or Transitions Links tool.\r\n\r\nClick on the on" +
|
||||
"/off switches to turn on/off each tool.\r\n\r\nNote that only one of these tools can" +
|
||||
" be run at a time.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 130)));
|
||||
this.btnFixLinks.TabIndex = 6;
|
||||
this.btnFixLinks.Text = "Process Links";
|
||||
this.btnFixLinks.Click += new System.EventHandler(this.btnFixLinks_Click);
|
||||
//
|
||||
// sideNavPanel2
|
||||
//
|
||||
this.sideNavPanel2.Controls.Add(this.swRefreshTblsForSrch);
|
||||
this.sideNavPanel2.Controls.Add(this.lblRefreshTblForSrch);
|
||||
this.sideNavPanel2.Controls.Add(this.warningBox4);
|
||||
this.sideNavPanel2.Controls.Add(this.warningBox2);
|
||||
this.sideNavPanel2.Controls.Add(this.swRmObsoleteROData);
|
||||
this.sideNavPanel2.Controls.Add(this.swRefreshWordAttmts);
|
||||
this.sideNavPanel2.Controls.Add(this.swStandardHypenChars);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX4);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX5);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX9);
|
||||
this.sideNavPanel2.Controls.Add(this.swRmOrphanDataRecs);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX10);
|
||||
this.sideNavPanel2.Controls.Add(this.labelX8);
|
||||
this.sideNavPanel2.Controls.Add(this.line2);
|
||||
this.sideNavPanel2.Controls.Add(this.btnRunRepair);
|
||||
this.sideNavPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel2.Location = new System.Drawing.Point(80, 31);
|
||||
this.sideNavPanel2.Name = "sideNavPanel2";
|
||||
this.sideNavPanel2.Size = new System.Drawing.Size(300, 494);
|
||||
this.sideNavPanel2.TabIndex = 6;
|
||||
this.sideNavPanel2.Visible = false;
|
||||
//
|
||||
// swRefreshTblsForSrch
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.swRefreshTblsForSrch.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.swRefreshTblsForSrch.Location = new System.Drawing.Point(10, 153);
|
||||
this.swRefreshTblsForSrch.Name = "swRefreshTblsForSrch";
|
||||
this.swRefreshTblsForSrch.Size = new System.Drawing.Size(91, 22);
|
||||
this.swRefreshTblsForSrch.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.swRefreshTblsForSrch, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("swRefreshTblsForSrch.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200)));
|
||||
this.swRefreshTblsForSrch.SwitchClickTogglesValue = true;
|
||||
this.swRefreshTblsForSrch.TabIndex = 32;
|
||||
this.swRefreshTblsForSrch.Value = true;
|
||||
this.swRefreshTblsForSrch.ValueObject = "Y";
|
||||
//
|
||||
// lblRefreshTblForSrch
|
||||
//
|
||||
this.lblRefreshTblForSrch.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.lblRefreshTblForSrch.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.lblRefreshTblForSrch.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.lblRefreshTblForSrch.Location = new System.Drawing.Point(107, 153);
|
||||
this.lblRefreshTblForSrch.Name = "lblRefreshTblForSrch";
|
||||
this.lblRefreshTblForSrch.Size = new System.Drawing.Size(186, 22);
|
||||
this.superTooltip1.SetSuperTooltip(this.lblRefreshTblForSrch, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("lblRefreshTblForSrch.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200)));
|
||||
this.lblRefreshTblForSrch.TabIndex = 31;
|
||||
this.lblRefreshTblForSrch.Text = "Refresh Tables For Search";
|
||||
//
|
||||
// sideNavPanel4
|
||||
//
|
||||
this.sideNavPanel4.Controls.Add(this.btn_ShowUsers);
|
||||
this.sideNavPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sideNavPanel4.Location = new System.Drawing.Point(81, 31);
|
||||
this.sideNavPanel4.Name = "sideNavPanel4";
|
||||
this.sideNavPanel4.Size = new System.Drawing.Size(299, 494);
|
||||
this.sideNavPanel4.TabIndex = 14;
|
||||
this.sideNavPanel4.Visible = false;
|
||||
//
|
||||
// btn_ShowUsers
|
||||
//
|
||||
this.btn_ShowUsers.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||
this.btn_ShowUsers.Checked = true;
|
||||
this.btn_ShowUsers.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||
this.btn_ShowUsers.Location = new System.Drawing.Point(57, 37);
|
||||
this.btn_ShowUsers.Name = "btn_ShowUsers";
|
||||
this.btn_ShowUsers.Size = new System.Drawing.Size(171, 23);
|
||||
this.btn_ShowUsers.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.superTooltip1.SetSuperTooltip(this.btn_ShowUsers, new DevComponents.DotNetBar.SuperTooltipInfo("Show Users", "", "This will return all of the users currently with open sessions in the database an" +
|
||||
"d the details of any items they have checked out.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 80)));
|
||||
this.btn_ShowUsers.TabIndex = 0;
|
||||
this.btn_ShowUsers.Text = "Show Users";
|
||||
this.btn_ShowUsers.Click += new System.EventHandler(this.btn_ShowUsers_Click);
|
||||
//
|
||||
// sideNavItem1
|
||||
//
|
||||
this.sideNavItem1.IsSystemMenu = true;
|
||||
@@ -1190,6 +1129,7 @@
|
||||
//
|
||||
// sideNavItmCheck
|
||||
//
|
||||
this.sideNavItmCheck.Checked = true;
|
||||
this.sideNavItmCheck.Name = "sideNavItmCheck";
|
||||
this.sideNavItmCheck.Panel = this.sideNavPanel1;
|
||||
this.sideNavItmCheck.Symbol = "";
|
||||
@@ -1206,7 +1146,6 @@
|
||||
//
|
||||
// sideNavItmLinks
|
||||
//
|
||||
this.sideNavItmLinks.Checked = true;
|
||||
this.sideNavItmLinks.Name = "sideNavItmLinks";
|
||||
this.sideNavItmLinks.Panel = this.sideNavPanel3;
|
||||
this.sideNavItmLinks.Symbol = "";
|
||||
@@ -1216,25 +1155,11 @@
|
||||
// sideNavItmUsers
|
||||
//
|
||||
this.sideNavItmUsers.Name = "sideNavItmUsers";
|
||||
this.sideNavItmUsers.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
|
||||
this.buttonItem1});
|
||||
this.sideNavItmUsers.Panel = this.sideNavPanel4;
|
||||
this.sideNavItmUsers.Symbol = "";
|
||||
this.sideNavItmUsers.Text = "Users";
|
||||
this.sideNavItmUsers.Click += new System.EventHandler(this.sideNavItmUsers_Click);
|
||||
//
|
||||
// buttonItem1
|
||||
//
|
||||
this.buttonItem1.Name = "buttonItem1";
|
||||
this.buttonItem1.Text = "buttonItem1";
|
||||
//
|
||||
// sideNavItemDelete
|
||||
//
|
||||
this.sideNavItemDelete.Name = "sideNavItemDelete";
|
||||
this.sideNavItemDelete.Panel = this.sideNavPanel4;
|
||||
this.sideNavItemDelete.Symbol = "";
|
||||
this.sideNavItemDelete.Text = "Delete";
|
||||
this.sideNavItemDelete.Click += new System.EventHandler(this.sideNavItemDelete_Click_1);
|
||||
//
|
||||
// sideNavItmExit
|
||||
//
|
||||
this.sideNavItmExit.Name = "sideNavItmExit";
|
||||
@@ -1361,10 +1286,11 @@
|
||||
this.panelEx1.ResumeLayout(false);
|
||||
this.sideNav1.ResumeLayout(false);
|
||||
this.sideNav1.PerformLayout();
|
||||
this.sideNavPanel4.ResumeLayout(false);
|
||||
this.sideNavPanel3.ResumeLayout(false);
|
||||
this.sideNavPanel2.ResumeLayout(false);
|
||||
this.sideNavPanel1.ResumeLayout(false);
|
||||
this.sideNavPanel3.ResumeLayout(false);
|
||||
//this.sideNavPanel2.ResumeLayout(false);
|
||||
this.sideNavPanel4.ResumeLayout(false);
|
||||
this.panelEx4.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@@ -1414,6 +1340,8 @@
|
||||
private DevComponents.DotNetBar.LabelX labelX8;
|
||||
private DevComponents.DotNetBar.Controls.Line line2;
|
||||
private DevComponents.DotNetBar.ButtonX btnRunRepair;
|
||||
private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel4;
|
||||
private DevComponents.DotNetBar.ButtonX btn_ShowUsers;
|
||||
private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel3;
|
||||
private DevComponents.DotNetBar.ButtonX btnFixLinks;
|
||||
private DevComponents.DotNetBar.Controls.SideNavItem sideNavItem1;
|
||||
@@ -1448,14 +1376,5 @@
|
||||
private DevComponents.DotNetBar.LabelX lblRefreshTblForSrch;
|
||||
private DevComponents.DotNetBar.Controls.SwitchButton swCheckROLinks;
|
||||
private DevComponents.DotNetBar.LabelX labelX12;
|
||||
private DevComponents.DotNetBar.ButtonItem buttonItem1;
|
||||
private DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel4;
|
||||
private DevComponents.DotNetBar.Controls.SwitchButton swDeleteFolder;
|
||||
private DevComponents.DotNetBar.LabelX labelX13;
|
||||
private DevComponents.DotNetBar.Controls.SwitchButton swDeleteAnnotations;
|
||||
private DevComponents.DotNetBar.LabelX labelX14;
|
||||
private System.Windows.Forms.TreeView myTVdel;
|
||||
private DevComponents.DotNetBar.ButtonX btnDeleteItems;
|
||||
private DevComponents.DotNetBar.Controls.SideNavItem sideNavItemDelete;
|
||||
}
|
||||
}
|
||||
|
@@ -125,60 +125,6 @@ namespace VEPROMS
|
||||
myTV.SelectedNode.Expand();
|
||||
this.Cursor = Cursors.Default;
|
||||
}
|
||||
private void ResetDelTV()
|
||||
{
|
||||
ResetDelTV(false);
|
||||
}
|
||||
private void ResetDelTV(bool noProcs)
|
||||
{
|
||||
btnFixLinks.Enabled = false;
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
myTVdel.Nodes.Clear();
|
||||
myDocVersions.Clear();
|
||||
FolderInfo fi = FolderInfo.GetTop();
|
||||
|
||||
if (fi.ChildFolderCount > 0)
|
||||
{
|
||||
if (noProcs)
|
||||
{
|
||||
LoadBottomLevelFolders(fi, myTVdel);
|
||||
}
|
||||
else
|
||||
{
|
||||
TreeNode tn = new TreeNode(fi.Name);
|
||||
tn.Tag = fi;
|
||||
tn.StateImageIndex = -1; // Hide the checkbox for the root node
|
||||
LoadChildFolders(fi, tn, noProcs);
|
||||
myTVdel.Nodes.Add(tn);
|
||||
}
|
||||
}
|
||||
|
||||
if (myTVdel.SelectedNode != null)
|
||||
myTVdel.SelectedNode.Expand();
|
||||
this.Cursor = Cursors.Default;
|
||||
|
||||
//btnFixLinks.Enabled = false;
|
||||
//this.Cursor = Cursors.WaitCursor;
|
||||
////myTreeNodePath = new List<string>();
|
||||
//myTVdel.Nodes.Clear();
|
||||
//myDocVersions.Clear();
|
||||
//FolderInfo fi = FolderInfo.GetTop();
|
||||
//TreeNode tn = myTVdel.Nodes.Add(fi.Name );
|
||||
//tn.Tag = fi;
|
||||
//if (fi.ChildFolderCount > 0)
|
||||
//{
|
||||
// if (noProcs)
|
||||
// {
|
||||
// LoadBottomLevelFolders(fi, myTVdel);
|
||||
// }
|
||||
// else
|
||||
// LoadChildFolders(fi, tn, noProcs);
|
||||
//}
|
||||
//if (myTVdel.SelectedNode != null)
|
||||
// myTVdel.SelectedNode.Expand();
|
||||
//this.Cursor = Cursors.Default;
|
||||
}
|
||||
|
||||
// B2021-060 Higher level folders where being removed from the tree even if there was a child folder that containe a working draft set
|
||||
private bool LoadChildFolders(FolderInfo fi, TreeNode tn, bool noProcs)
|
||||
{
|
||||
@@ -205,34 +151,6 @@ namespace VEPROMS
|
||||
tn.Remove();
|
||||
return loadedWorkingDraft;
|
||||
}
|
||||
/// <summary>
|
||||
/// Load only bottom layer of folders into treenode.
|
||||
/// </summary>
|
||||
/// <param name="fi"></param>
|
||||
/// <param name="tn"></param>
|
||||
private void LoadBottomLevelFolders(FolderInfo fi, TreeView treeView)
|
||||
{
|
||||
foreach (FolderInfo fic in fi.SortedChildFolders)
|
||||
{
|
||||
if (fic.ChildFolderCount > 0)
|
||||
{
|
||||
// Recursively call for child folders
|
||||
LoadBottomLevelFolders(fic, treeView);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fic.Name != "PROMS")
|
||||
{
|
||||
|
||||
|
||||
|
||||
// If the folder is a bottom-level folder (no child folders), add it directly to the TreeView
|
||||
TreeNode tnc = treeView.Nodes.Add(fic.Name);
|
||||
tnc.Tag = fic;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
private bool LoadDocVersions(FolderInfo fic, TreeNode tnc, bool noProcs)
|
||||
{
|
||||
bool rtnval = false;
|
||||
@@ -1328,21 +1246,6 @@ namespace VEPROMS
|
||||
this.Close();
|
||||
}
|
||||
|
||||
// new Admin Tools user interface for deletes
|
||||
private void sideNavItemDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// new Admin Tools user interface for deletes
|
||||
private void sideNavItemDelete_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
if (swDeleteFolder.Value)
|
||||
ResetDelTV(true);
|
||||
else
|
||||
ResetDelTV(false);
|
||||
}
|
||||
|
||||
#region On/Off Swiches
|
||||
|
||||
// C2017-030 new Admin Tools user interface
|
||||
@@ -1597,107 +1500,5 @@ namespace VEPROMS
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//C2024-005 Delete Annotations, Delete Folders
|
||||
private void swDeleteAnnotations_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
swDeleteFolder.Value = !swDeleteAnnotations.Value;
|
||||
if (swDeleteFolder.Value)
|
||||
ResetDelTV(true);
|
||||
else
|
||||
ResetDelTV(false);
|
||||
}
|
||||
|
||||
private void swDeleteFolder_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
swDeleteAnnotations.Value = !swDeleteFolder.Value;
|
||||
if (swDeleteFolder.Value)
|
||||
ResetDelTV(true);
|
||||
else
|
||||
ResetDelTV(false);
|
||||
}
|
||||
|
||||
private void btnDeleteItems_Click(object sender, EventArgs e)
|
||||
{
|
||||
//clear
|
||||
txtResults.Clear();
|
||||
txtProcess.Clear();
|
||||
|
||||
|
||||
if (swDeleteFolder.Value)
|
||||
{
|
||||
//TODO process deletions of folders
|
||||
txtProcess.AppendText("Deleting Folders...");
|
||||
|
||||
//List<ProcedureInfo> pil = new List<ProcedureInfo>();
|
||||
//foreach (TreeNode tn in myProcedures.Keys)
|
||||
// if (tn.Checked)
|
||||
// pil.Add(myProcedures[tn]);
|
||||
|
||||
////Load Selected Folders
|
||||
//Dictionary<int, string> folderData = new Dictionary<int, string>();
|
||||
|
||||
//List<DocVersionInfo> dvil = new List<DocVersionInfo>();
|
||||
//foreach (TreeNode tn in myTVdel.Nodes)
|
||||
// if (tn.Checked)
|
||||
// {
|
||||
// tn.Tag = dvi;
|
||||
// myDocVersions.Add(tn, dvi);
|
||||
// }
|
||||
|
||||
////foreach (TreeNode tn in myTVdel.Nodes)
|
||||
////{
|
||||
//// if (tn.Checked)
|
||||
//// {
|
||||
//// var itemInfo = myProcedures[tn];
|
||||
//// folderData.Add(itemInfo.ItemID, itemInfo.DisplayText);
|
||||
//// }
|
||||
////}
|
||||
|
||||
//ProcessDelete(dvil);
|
||||
}
|
||||
else
|
||||
{
|
||||
//TODO process deletions of annotations
|
||||
txtProcess.AppendText("Deleting Annotations...");
|
||||
}
|
||||
}
|
||||
|
||||
private void ProcessDelete(List<DocVersionInfo> foldersToDelete)
|
||||
{
|
||||
DateTime pStart = DateTime.Now;
|
||||
txtProcess.AppendText(Environment.NewLine);
|
||||
txtProcess.AppendText(pStart.ToString("MM/dd/yyyy @ HH:mm"));
|
||||
txtProcess.AppendText(Environment.NewLine);
|
||||
|
||||
foreach (var kvp in foldersToDelete)
|
||||
{
|
||||
int itemID = (int)kvp.ItemID;
|
||||
string folderName = kvp.Name;
|
||||
|
||||
// Perform the deletion operation
|
||||
// Assume DeleteFolderByID is a method that deletes the folder by its ItemID
|
||||
bool deletionSuccessful = DeleteFolderByID(itemID);
|
||||
|
||||
// Update txtProcess with the progress
|
||||
if (deletionSuccessful)
|
||||
{
|
||||
txtProcess.AppendText($"Successfully deleted folder: {folderName} (ID: {itemID})");
|
||||
}
|
||||
else
|
||||
{
|
||||
txtProcess.AppendText($"Failed to delete folder: {folderName} (ID: {itemID})");
|
||||
}
|
||||
txtProcess.AppendText(Environment.NewLine);
|
||||
}
|
||||
}
|
||||
// Example deletion method
|
||||
private bool DeleteFolderByID(int itemID)
|
||||
{
|
||||
// Implement your folder deletion logic here
|
||||
// Return true if deletion was successful, false otherwise
|
||||
return true; // Placeholder
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -117,9 +117,75 @@
|
||||
<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="warningBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAplJREFUOE+N
|
||||
k11IU2Ecxv9zouK8CULrzo8SU3QKaSYmOJ2uFL8SK4igEIok6qKUwggySTShC41CRiiGdWNfYBcVWiGl
|
||||
FqN0lh+UTaekzuWcuu2c9316nSdKLPEHz817/s/zPv9zOPQ/nlVQEGulF3ILPe+8SIHK8eYR5lusLwHy
|
||||
Oy08RqpXjjfHVCMlsydbGbekg4/r4HmwRbLWUZzyeGNqD5NK1O5lw8L8NQHckgh5SAdXA3UqIxuzZKSj
|
||||
8ssI8Il9wMQeYDoVfD4HrsdhsNdRgTL2b4yl5Ce1qL+xcQOWxpKxMzwAMVEayIv7IU8XwVnv8+XuEfJV
|
||||
xtfjMlKZ/CYG3JYJ96wOPj6EoCBfMCkfnJdguSMG89eoVBlfS+tJCpCafa1stgBYzAZbzoFGo0ZIiD84
|
||||
KwJ350P+UQxHtfr7vUPkp9j+4GqiM1K3FtyVB8h5wlSI4GB/RIQHgjtzwWaywMb1WHwYg7lKOq3YVrlz
|
||||
jPw8RrWFOUoAJhpwcaNciNDQQMRGB4FNpIMNp4B93A2pXw/7ZbWlufCvFguNdNzzOta7J5S6fP4AdkVq
|
||||
kKQVAQNJYO8TwHq0kD8kwdkWhZkLdMJrrsonlfu2yszmSsA9Bat1p0XdsTTcvxmJtpowyL1ar/m3PKYM
|
||||
2MpVgzcySUWTdWRwd+wAXzoo3r5B7CnqDqVg+lW89yuoVARrR/SaANm0F46mUFjOUjYtN9BTaVQYJzPA
|
||||
RlPB+hNF3XjvP3C9bDuqTm2D9DZuTcCKXN1psJ2ndhGgnpJGciENGyB9zoJk1kMezFonySw0oIf0KVOs
|
||||
oIO7L3MlYITstVTsrKNHCzXU5aimnvmrZPp5hfrtlWS2X6LBuQoatJWTWQz3C5mEeoS6hNqt5yj7FysJ
|
||||
zJwL4b/EAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="swCkObsoleteROData.SuperTooltip" xml:space="preserve">
|
||||
<value>Referenced Objects databases are associated with a procedure set (such as Working Draft).
|
||||
|
||||
RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will identify stored RO Paths, ROFST versions, and Figures that are no longer used.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swHiddenDataLocs.SuperTooltip" xml:space="preserve">
|
||||
<value>Typically, a section in PROMS only has sub-sections or steps. When and existing section is divided into sub-sections, the resulting main section might have both.
|
||||
|
||||
When this occurs, the step data in the main section can be marked as non-editable. The user can no longer get to these steps and they can become forgotten as PROMS will ignore these non-editable steps when the procedure is printed.
|
||||
|
||||
This tool will identify if the database has non-editable steps and provide a listing of these steps. The use can then go to these main sections, make them editable via the property page, and delete or move these steps.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX3.SuperTooltip" xml:space="preserve">
|
||||
<value>Referenced Objects databases are associated with a procedure set (such as Working Draft).
|
||||
|
||||
RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will identify stored RO Paths, ROFST versions, and Figures that are no longer used.
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX2.SuperTooltip" xml:space="preserve">
|
||||
<value>Typically, a section in PROMS only has sub-sections or steps. When and existing section is divided into sub-sections, the resulting main section might have both.
|
||||
|
||||
When this occurs, the step data in the main section can be marked as non-editable. The user can no longer get to these steps and they can become forgotten as PROMS will ignore these non-editable steps when the procedure is printed.
|
||||
|
||||
This tool will identify if the database has non-editable steps and provide a listing of these steps. The use can then go to these main sections, make them editable via the property page, and delete or move these steps.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swCkOrphanDataRecs.SuperTooltip" xml:space="preserve">
|
||||
<value>Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it.
|
||||
|
||||
Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool detects any orphaned items in the database.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX1.SuperTooltip" xml:space="preserve">
|
||||
<value>Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it.
|
||||
|
||||
Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool detects any orphaned items in the database.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swCheckROLinks.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows the user to check referenced objects links in procedure step data for multiple working drafts in a batch mode.
|
||||
|
||||
@@ -141,7 +207,6 @@ Be sure a current backup of the database exists prior performing this function.
|
||||
It is recommended that this be done during off hours.
|
||||
</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="warningBox5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAplJREFUOE+N
|
||||
@@ -205,106 +270,6 @@ If more than one procedure is selected, it is recommended that this be performed
|
||||
oIO7L3MlYITstVTsrKNHCzXU5aimnvmrZPp5hfrtlWS2X6LBuQoatJWTWQz3C5mEeoS6hNqt5yj7FysJ
|
||||
zJwL4b/EAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="warningBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAplJREFUOE+N
|
||||
k11IU2Ecxv9zouK8CULrzo8SU3QKaSYmOJ2uFL8SK4igEIok6qKUwggySTShC41CRiiGdWNfYBcVWiGl
|
||||
FqN0lh+UTaekzuWcuu2c9316nSdKLPEHz817/s/zPv9zOPQ/nlVQEGulF3ILPe+8SIHK8eYR5lusLwHy
|
||||
Oy08RqpXjjfHVCMlsydbGbekg4/r4HmwRbLWUZzyeGNqD5NK1O5lw8L8NQHckgh5SAdXA3UqIxuzZKSj
|
||||
8ssI8Il9wMQeYDoVfD4HrsdhsNdRgTL2b4yl5Ce1qL+xcQOWxpKxMzwAMVEayIv7IU8XwVnv8+XuEfJV
|
||||
xtfjMlKZ/CYG3JYJ96wOPj6EoCBfMCkfnJdguSMG89eoVBlfS+tJCpCafa1stgBYzAZbzoFGo0ZIiD84
|
||||
KwJ350P+UQxHtfr7vUPkp9j+4GqiM1K3FtyVB8h5wlSI4GB/RIQHgjtzwWaywMb1WHwYg7lKOq3YVrlz
|
||||
jPw8RrWFOUoAJhpwcaNciNDQQMRGB4FNpIMNp4B93A2pXw/7ZbWlufCvFguNdNzzOta7J5S6fP4AdkVq
|
||||
kKQVAQNJYO8TwHq0kD8kwdkWhZkLdMJrrsonlfu2yszmSsA9Bat1p0XdsTTcvxmJtpowyL1ar/m3PKYM
|
||||
2MpVgzcySUWTdWRwd+wAXzoo3r5B7CnqDqVg+lW89yuoVARrR/SaANm0F46mUFjOUjYtN9BTaVQYJzPA
|
||||
RlPB+hNF3XjvP3C9bDuqTm2D9DZuTcCKXN1psJ2ndhGgnpJGciENGyB9zoJk1kMezFonySw0oIf0KVOs
|
||||
oIO7L3MlYITstVTsrKNHCzXU5aimnvmrZPp5hfrtlWS2X6LBuQoatJWTWQz3C5mEeoS6hNqt5yj7FysJ
|
||||
zJwL4b/EAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="swCkObsoleteROData.SuperTooltip" xml:space="preserve">
|
||||
<value>Referenced Objects databases are associated with a procedure set (such as Working Draft).
|
||||
|
||||
RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will identify stored RO Paths, ROFST versions, and Figures that are no longer used.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swHiddenDataLocs.SuperTooltip" xml:space="preserve">
|
||||
<value>Typically, a section in PROMS only has sub-sections or steps. When and existing section is divided into sub-sections, the resulting main section might have both.
|
||||
|
||||
When this occurs, the step data in the main section can be marked as non-editable. The user can no longer get to these steps and they can become forgotten as PROMS will ignore these non-editable steps when the procedure is printed.
|
||||
|
||||
This tool will identify if the database has non-editable steps and provide a listing of these steps. The use can then go to these main sections, make them editable via the property page, and delete or move these steps.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX3.SuperTooltip" xml:space="preserve">
|
||||
<value>Referenced Objects databases are associated with a procedure set (such as Working Draft).
|
||||
|
||||
RO paths, ROFST versions, and the contents of RO figures are stored in the database when referenced. This tool will identify stored RO Paths, ROFST versions, and Figures that are no longer used.
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX2.SuperTooltip" xml:space="preserve">
|
||||
<value>Typically, a section in PROMS only has sub-sections or steps. When and existing section is divided into sub-sections, the resulting main section might have both.
|
||||
|
||||
When this occurs, the step data in the main section can be marked as non-editable. The user can no longer get to these steps and they can become forgotten as PROMS will ignore these non-editable steps when the procedure is printed.
|
||||
|
||||
This tool will identify if the database has non-editable steps and provide a listing of these steps. The use can then go to these main sections, make them editable via the property page, and delete or move these steps.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swCkOrphanDataRecs.SuperTooltip" xml:space="preserve">
|
||||
<value>Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it.
|
||||
|
||||
Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool detects any orphaned items in the database.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX1.SuperTooltip" xml:space="preserve">
|
||||
<value>Everything in PROMS is inter-related. A working draft knows what is its first procedure and a procedure knows what is its first step. Likewise, a procedure knows what procedure is before it and after it.
|
||||
|
||||
Should an item become orphaned (disconnected) from the rest of the data, it will no longer be accessible. This tool detects any orphaned items in the database.
|
||||
|
||||
This tool may take an extended period of time to execute.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swDeleteFolder.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows the user to check referenced objects links in procedure step data for multiple working drafts in a batch mode.
|
||||
|
||||
Bad referenced bject links will be identified with an Bad RO Link annotation. Use the PROMS Search tool to list all of the steps that have this annotation.
|
||||
|
||||
Be sure a current backup of the database exists prior performing this function.
|
||||
|
||||
It is recommended that this be done during off hours.
|
||||
|
||||
</value>
|
||||
</data>
|
||||
<data name="labelX13.SuperTooltip" xml:space="preserve">
|
||||
<value>This allows the user to check referenced objects links in procedure step data for multiple working drafts in a batch mode.
|
||||
|
||||
Bad referenced bject links will be identified with an Bad RO Link annotation. Use the PROMS Search tool to list all of the steps that have this annotation.
|
||||
|
||||
Be sure a current backup of the database exists prior performing this function.
|
||||
|
||||
It is recommended that this be done during off hours.
|
||||
</value>
|
||||
</data>
|
||||
<data name="swDeleteAnnotations.SuperTooltip" xml:space="preserve">
|
||||
<value>This function will refresh transitions in all procedures selected below, whether they were selected individually or as a group via a procedure set.
|
||||
|
||||
Be sure a current backup of the database exists prior to running this function.
|
||||
|
||||
If more than one procedure is selected, it is recommended that this be performed during off hours.</value>
|
||||
</data>
|
||||
<data name="labelX14.SuperTooltip" xml:space="preserve">
|
||||
<value>This function will refresh transitions in all procedures selected below, whether they were selected individually or as a group via a procedure set.
|
||||
|
||||
Be sure a current backup of the database exists prior to running this function.
|
||||
|
||||
If more than one procedure is selected, it is recommended that this be performed during off hours.</value>
|
||||
</data>
|
||||
<data name="swRefreshTblsForSrch.SuperTooltip" xml:space="preserve">
|
||||
<value>When Word attachments are modified and saved, PROMS will create a PDF of the attachment contents and save it in the database. When this is done, all the of the RO references are resolved as well as pagination of the attachment. This speeds up the overall printing of the procedure in that PROMS simply inserts the attachment contents.
|
||||
@@ -403,6 +368,6 @@ Should an item become orphaned (disconnected) from the rest of the data, it will
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>193</value>
|
||||
<value>38</value>
|
||||
</metadata>
|
||||
</root>
|
||||
</root>
|
||||
|
@@ -1944,6 +1944,54 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
#endregion
|
||||
#region DataPortal
|
||||
private void DataPortal_Fetch(PastingPartEnhancedCriteria criteria)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemInfo.DataPortal_Fetch", GetHashCode());
|
||||
try
|
||||
{
|
||||
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||
{
|
||||
Csla.ApplicationContext.LocalContext["cn"] = cn;
|
||||
using (SqlCommand cm = cn.CreateCommand())
|
||||
{
|
||||
cm.CommandType = CommandType.StoredProcedure;
|
||||
cm.Parameters.AddWithValue("@StartItemID", criteria.StartItemID); // copy children
|
||||
cm.Parameters.AddWithValue("@ItemID", criteria.ItemID); //copy to
|
||||
cm.Parameters.AddWithValue("@Type", criteria.Type);
|
||||
cm.Parameters.AddWithValue("@DTS", criteria.DTS);
|
||||
cm.Parameters.AddWithValue("@UserID", criteria.UserID);
|
||||
SqlParameter param_ItemID = new SqlParameter("@NewItemID", SqlDbType.Int);
|
||||
param_ItemID.Direction = ParameterDirection.Output;
|
||||
cm.Parameters.Add(param_ItemID);
|
||||
cm.CommandText = "PasteItemEnhancedReplace";
|
||||
//cm.CommandText = "PasteItemReplace";
|
||||
cm.CommandTimeout = Database.DefaultTimeout;
|
||||
using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader()))
|
||||
{
|
||||
//int newItemID = (int)cm.Parameters["@NewItemID"].Value;
|
||||
if (!dr.Read())
|
||||
{
|
||||
_ErrorMessage = "No Record Found";
|
||||
return;
|
||||
}
|
||||
ReadData(dr);
|
||||
}
|
||||
}
|
||||
// removing of item only needed for local data portal
|
||||
if (Csla.ApplicationContext.ExecutionLocation == Csla.ApplicationContext.ExecutionLocations.Client)
|
||||
Csla.ApplicationContext.LocalContext.Remove("cn");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (!ex.Message.Contains("This step has been deleted") && !ex.Message.Contains("This current step has been deleted in another session"))
|
||||
{
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemInfo.DataPortal_Fetch", ex);
|
||||
}
|
||||
_ErrorMessage = ex.Message;
|
||||
throw new DbCslaException("ItemInfo.DataPortal_Fetch", ex);
|
||||
}
|
||||
}
|
||||
private void DataPortal_Fetch(PastingPartCriteria criteria)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemInfo.DataPortal_Fetch", GetHashCode());
|
||||
@@ -2066,6 +2114,68 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region PastingPartEnhancedCriteria
|
||||
[Serializable()]
|
||||
public class PastingPartEnhancedCriteria
|
||||
{
|
||||
#region Properties
|
||||
private int _StartItemID;
|
||||
public int StartItemID
|
||||
{
|
||||
get { return _StartItemID; }
|
||||
set { _StartItemID = value; }
|
||||
}
|
||||
private int _ItemID; // paste relative to this itemid
|
||||
public int ItemID
|
||||
{
|
||||
get { return _ItemID; }
|
||||
set { _ItemID = value; }
|
||||
}
|
||||
private EAddpingPart _AddType;
|
||||
public EAddpingPart AddType
|
||||
{
|
||||
get { return _AddType; }
|
||||
set { _AddType = value; }
|
||||
}
|
||||
private int? _FromType = null;
|
||||
public int? FromType
|
||||
{
|
||||
get { return _FromType; }
|
||||
set { _FromType = value; }
|
||||
}
|
||||
private int? _Type = null;
|
||||
public int? Type
|
||||
{
|
||||
get { return _Type; }
|
||||
set { _Type = value; }
|
||||
}
|
||||
private DateTime _DTS;
|
||||
public DateTime DTS
|
||||
{
|
||||
get { return _DTS; }
|
||||
set { _DTS = value; }
|
||||
}
|
||||
private string _UserID;
|
||||
public string UserID
|
||||
{
|
||||
get { return _UserID; }
|
||||
set { _UserID = value; }
|
||||
}
|
||||
#endregion
|
||||
#region Constructor
|
||||
public PastingPartEnhancedCriteria(int startItemid, int itemID, EAddpingPart addType, int? type, int? fromType, DateTime dts, string userID)
|
||||
{
|
||||
_StartItemID = startItemid;
|
||||
_ItemID = itemID;
|
||||
_AddType = addType;
|
||||
_Type = type;
|
||||
_FromType = fromType;
|
||||
_DTS = dts;
|
||||
_UserID = userID;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
#region PastingPartCriteria
|
||||
[Serializable()]
|
||||
public class PastingPartCriteria
|
||||
@@ -2356,6 +2466,17 @@ namespace VEPROMS.CSLA.Library
|
||||
_MyPrevious = null; // Reset list so that the next line gets a new list
|
||||
if (MyPrevious != null) MyPrevious.RefreshNextItems(); // Update List for new value
|
||||
}
|
||||
internal static ItemInfo CopyPasteReplaceEnhancedItemInfoFetch(int copyStartID, ItemInfo itemInfo) // int itemID, int? type, int? fromType)
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
tmp = DataPortal.Fetch<StepInfo>(new ItemInfo.PastingPartEnhancedCriteria(copyStartID, itemInfo.ItemID, ItemInfo.EAddpingPart.Replace, itemInfo.MyContent.Type, itemInfo.MyContent.Type, DateTime.Now, Volian.Base.Library.VlnSettings.UserID));
|
||||
if (tmp == null)
|
||||
{
|
||||
tmp = ItemInfo.Get(copyStartID);
|
||||
}
|
||||
AddToCache(tmp);
|
||||
return tmp;
|
||||
}
|
||||
internal static ItemInfo CopyPasteReplaceItemInfoFetch(int copyStartID, ItemInfo itemInfo) // int itemID, int? type, int? fromType)
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
@@ -2503,10 +2624,18 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
public static ItemInfo PasteReplace(ItemInfo itemInfo, int copyStartID, string chgid, TreeNode treeNodeReplace)
|
||||
{
|
||||
if (itemInfo.IsEnhancedStep)
|
||||
{
|
||||
// don't replace the step, just remove current children & add new children:
|
||||
if (!CanDeleteObject())
|
||||
throw new System.Security.SecurityException("User not authorized to remove a Item");
|
||||
|
||||
}
|
||||
bool tmp = false;
|
||||
return PasteReplace(itemInfo, copyStartID, chgid, treeNodeReplace, ref tmp);
|
||||
}
|
||||
// B2017-179 return a bool (firstTrans) if we could not replace the step but the user wants to position to the first transition that needs resolved
|
||||
// B2017-179 return a bool (firstTrans) if we could not replace the step but the user wants to position to the first transition that needs resolved
|
||||
public static ItemInfo PasteReplace(ItemInfo itemInfo, int copyStartID, string chgid, TreeNode treeNodeReplace, ref bool firstTrans)
|
||||
{
|
||||
firstTrans = false;
|
||||
@@ -2518,8 +2647,17 @@ namespace VEPROMS.CSLA.Library
|
||||
ItemInfo newItemInfo = null;
|
||||
try
|
||||
{
|
||||
newItemInfo = ItemInfo.CopyPasteReplaceItemInfoFetch(copyStartID, itemInfo); //itemInfo.ItemID, itemInfo.MyContent.Type, itemInfo.MyContent.Type);
|
||||
if (newItemInfo == null) return null;
|
||||
// if this item is an enhanced item, do a pastereplace specific to it:
|
||||
if (itemInfo.IsEnhancedStep)
|
||||
{
|
||||
newItemInfo = ItemInfo.CopyPasteReplaceEnhancedItemInfoFetch(copyStartID, itemInfo);
|
||||
if (newItemInfo == null) return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
newItemInfo = ItemInfo.CopyPasteReplaceItemInfoFetch(copyStartID, itemInfo); //itemInfo.ItemID, itemInfo.MyContent.Type, itemInfo.MyContent.Type);
|
||||
if (newItemInfo == null) return null;
|
||||
}
|
||||
}
|
||||
catch (Exception ex1)
|
||||
{
|
||||
@@ -2567,7 +2705,7 @@ namespace VEPROMS.CSLA.Library
|
||||
//Create tree node for copied procedure when no other procedures exist in the folder
|
||||
VETreeNode vtn = treeNodeReplace as VETreeNode;
|
||||
DocVersionInfo dvi = vtn.VEObject as DocVersionInfo;
|
||||
|
||||
|
||||
ItemInfo newProc = dvi.PasteChild(copyStartID);
|
||||
VETreeNode tn1 = new VETreeNode(newProc);
|
||||
treeNodeReplace.Nodes.Add(tn1); // add tree node to end of list.
|
||||
@@ -2584,23 +2722,23 @@ namespace VEPROMS.CSLA.Library
|
||||
firstTrans = true; // B2017-179 set the firstTrans to true and return the itminfo of the first transition location that needs resolved
|
||||
return iii;
|
||||
}
|
||||
if (!HandleSqlExceptionOnCopy(ex))
|
||||
{
|
||||
if (ex.Message.Contains("has External Transitions and has no next step")
|
||||
|| ex.Message.Contains("has External Transitions to Procedure")
|
||||
|| ex.Message.Contains("has External Transitions to it's children")
|
||||
|| ex.Message.Contains("This step has been deleted")
|
||||
)
|
||||
throw ex;
|
||||
if (!HandleSqlExceptionOnCopy(ex))
|
||||
{
|
||||
if (ex.Message.Contains("has External Transitions and has no next step")
|
||||
|| ex.Message.Contains("has External Transitions to Procedure")
|
||||
|| ex.Message.Contains("has External Transitions to it's children")
|
||||
|| ex.Message.Contains("This step has been deleted")
|
||||
)
|
||||
throw ex;
|
||||
FlexibleMessageBox.Show("Details were written to the Error Log.", "Paste Replace Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return itemInfo;
|
||||
}
|
||||
else
|
||||
return itemInfo;
|
||||
return itemInfo;
|
||||
}
|
||||
else
|
||||
return itemInfo;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
private static bool HandleSqlExceptionOnCopy(Exception ex)
|
||||
private static bool HandleSqlExceptionOnCopy(Exception ex)
|
||||
{
|
||||
if (ex.Message.Contains("This step has been deleted"))
|
||||
{
|
||||
|
@@ -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) &&
|
||||
@@ -688,14 +688,14 @@ namespace Volian.Controls.Library
|
||||
edtitm.PasteSiblingAfter(copyStartID);
|
||||
break;
|
||||
case ItemInfo.EAddpingPart.Replace:
|
||||
|
||||
|
||||
EditItem ei = edtitm.PasteReplace(copyStartID);
|
||||
if (ei == null)
|
||||
{
|
||||
{
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
if (ei.MyItemInfo.ItemID != edtitm.MyItemInfo.ItemID)
|
||||
{
|
||||
edtitm.Dispose();
|
||||
@@ -708,6 +708,12 @@ 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,8 @@ 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;
|
||||
//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 = MyStepPanel?.SelectedEditItem?.ActiveParent;
|
||||
|
||||
StepConfig savOrigPasteConfig = MyItemInfo.MyConfig as StepConfig;
|
||||
int TopMostYBefore = TopMostEditItem.Top;
|
||||
@@ -1936,7 +1936,7 @@ namespace Volian.Controls.Library
|
||||
sia.IdentifyChildren(highlight);
|
||||
}
|
||||
}
|
||||
if (MyBeforeEditItems != null)
|
||||
if (MyBeforeEditItems != null && !MyItemInfo.IsEnhancedStep)
|
||||
{
|
||||
foreach (EditItem sib in MyBeforeEditItems)
|
||||
{
|
||||
|
@@ -1749,9 +1749,9 @@ namespace Volian.Controls.Library
|
||||
EnhancedDocuments eds = MyItemInfo.GetMyEnhancedDocuments();
|
||||
// note in follow if statements, 'setting' == false when in enhanced document:
|
||||
if (setting && MyItemInfo.IsStep && (eds == null || eds.Count == 0)) // this step is in enhanced, but not linked // B2018-112 and is allowed to edit
|
||||
allowDel = true; // allow delete if not linked
|
||||
btnCpyStp.Enabled = setting;
|
||||
//B20170-158 Allow a Unlinked Step to be pasted before or after a linked step.
|
||||
allowDel = true; // allow delete if not linked
|
||||
btnCpyStp.Enabled = MyUserInfo.IsAllowedToEdit(Mydvi); // setting;
|
||||
//B20170-158 Allow a Unlinked Step to be pasted before or after a linked step.
|
||||
StepTabPanel tmp = Parent as StepTabPanel;
|
||||
//B2020-058: crash on null reference
|
||||
if (tmp != null && tmp.MyDisplayTabControl != null && tmp.MyDisplayTabControl.MyCopyStep != null)
|
||||
@@ -1761,6 +1761,10 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (MyItemInfo.IsEnhancedStep) btnPasteReplace.Enabled = btnCMPasteReplace.Enabled = false;
|
||||
}
|
||||
else if (tmp.MyDisplayTabControl.MyCopyStep.IsEnhancedStep && tmp.MyDisplayTabControl.MyCopyStep.MyDocVersion.VersionID == MyItemInfo.MyDocVersion.VersionID)
|
||||
{
|
||||
btnPasteBefore.Enabled = btnPasteAfter.Enabled = MyUserInfo.IsAllowedToEdit(Mydvi);
|
||||
}
|
||||
}
|
||||
else
|
||||
btnStepPaste.Enabled = setting;
|
||||
|
Reference in New Issue
Block a user