Some Chnage Manager changes
Change Manager
This commit is contained in:
parent
4d05a2331e
commit
a38f0b0909
@ -12,7 +12,29 @@ begin
|
||||
RAISERROR (@ErrorMsg, 20, -1) with log
|
||||
RETURN
|
||||
end
|
||||
print 'Adding procedures and funtions to ' + db_name()
|
||||
print 'Adding procedures and functions to ' + db_name()
|
||||
GO
|
||||
|
||||
/****** Object: Table [dbo].[DeleteLog] Script Date: 03/29/2011 17:26:23 ******/
|
||||
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DeleteLog]') AND type in (N'U'))
|
||||
DROP TABLE [dbo].[DeleteLog]
|
||||
GO
|
||||
|
||||
CREATE TABLE [dbo].[DeleteLog](
|
||||
[DeleteID] [int] IDENTITY(1,1) NOT NULL,
|
||||
[SPID] [int] NOT NULL CONSTRAINT [DF_DeleteLog_SPID] DEFAULT (@@spid),
|
||||
[UserID] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
|
||||
[DTS] [datetime] NOT NULL CONSTRAINT [DF_DeleteLog_DTS] DEFAULT (getdate()),
|
||||
CONSTRAINT [PK_DeleteLog] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[DeleteID] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
-- Display the status of Table creation
|
||||
IF (@@Error = 0) PRINT 'Table Creation: DeleteLog Succeeded'
|
||||
ELSE PRINT 'Table Creation: DeleteLog Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [addAnnotation] ******/
|
||||
@ -1088,7 +1110,7 @@ BEGIN TRY -- Try Block
|
||||
SELECT @ChildDeleted = pp.[ItemID],@ParentContentID = ii.ContentID, @LastChanged = pp.LastChanged
|
||||
FROM [ITEMS] ii
|
||||
LEFT JOIN [tblPARTS] pp on pp.ContentID=ii.ContentID and pp.FromType=@FromType
|
||||
WHERE ii.[ItemID]=@ItemID and pp.DateEnd is not null
|
||||
WHERE ii.[ItemID]=@ItemID and pp.DeleteStatus > 0
|
||||
END
|
||||
EXECUTE AddContent @Number, @Text, @Type, @FormatID, @Config, @DTS, @UserID, @ContentID output, @newLastChanged output
|
||||
EXECUTE AddItem null, @ContentID, @DTS, @UserID , @newItemID output, @newLastChanged output
|
||||
@ -1096,9 +1118,9 @@ BEGIN TRY -- Try Block
|
||||
BEGIN
|
||||
IF @ChildDeleted is not null
|
||||
BEGIN
|
||||
INSERT INTO [tblParts_shadow] ([ContentID],[FromType],[ItemID],[DTS],[UserID],[DateEnd])
|
||||
SELECT [ContentID],[FromType],[ItemID],[DTS],[UserID],[DateEnd] FROM [tblParts]
|
||||
WHERE ItemID = @ChildDeleted
|
||||
-- INSERT INTO [PartAudits] ([ContentID],[FromType],[ItemID],[DTS],[UserID],[DeleteStatus])
|
||||
-- SELECT [ContentID],[FromType],[ItemID],[DTS],[UserID],[DeleteStatus] FROM [tblParts]
|
||||
-- WHERE ItemID = @ChildDeleted
|
||||
DELETE FROM [tblParts] WHERE ItemID = @ChildDeleted
|
||||
END
|
||||
EXECUTE AddPart @ParentContentID, @FromType, @newItemID, @DTS, @UserID, @newLastChanged output
|
||||
@ -2941,6 +2963,7 @@ WITH EXECUTE AS OWNER
|
||||
AS
|
||||
BEGIN TRY -- Try Block
|
||||
BEGIN TRANSACTION
|
||||
declare @DeleteID int
|
||||
DECLARE @ContentID AS INT
|
||||
DECLARE @NextItemID AS INT
|
||||
DECLARE @PreviousItemID AS INT
|
||||
@ -2979,6 +3002,10 @@ BEGIN TRY -- Try Block
|
||||
RAISERROR ('###Cannot Delete Item###Step %d has External Transitions to it''s children - (%s)',16,1,@ItemID,@Path)
|
||||
RETURN
|
||||
END
|
||||
--deletelog
|
||||
INSERT INTO DeleteLog (UserID) values (@UserID)
|
||||
Select @DeleteID = SCOPE_IDENTITY()
|
||||
--end deletelog
|
||||
-- Get list of Children
|
||||
INSERT INTO @Children SELECT * FROM vefn_ChildItems(@ItemID)
|
||||
-- UPDATE PreviousID in Items WHERE ItemID = @NextItemID
|
||||
@ -3048,6 +3075,9 @@ BEGIN TRY -- Try Block
|
||||
DELETE from Items where ItemID in(Select ItemID from @Children)
|
||||
-- DELETE Contents
|
||||
DELETE from Contents where ContentID in(Select ContentID from @Children)
|
||||
--purge deletelog
|
||||
DELETE from DeleteLog where DeleteID = @DeleteID
|
||||
--end purge deletelog
|
||||
IF( @@TRANCOUNT > 0 ) COMMIT
|
||||
END TRY
|
||||
BEGIN CATCH -- Catch Block
|
||||
@ -5441,6 +5471,99 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getContent Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getContent Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getContentAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getContentAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getContentAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getContentAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[Number],
|
||||
[Text],
|
||||
[Type],
|
||||
[FormatID],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ContentAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getContentAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getContentAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getContentAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getContentAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getContentAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getContentAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[Number],
|
||||
[Text],
|
||||
[Type],
|
||||
[FormatID],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ContentAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getContentAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getContentAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getContentAuditsByContentID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getContentAuditsByContentID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getContentAuditsByContentID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getContentAuditsByContentID]
|
||||
(
|
||||
@ContentID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[Number],
|
||||
[Text],
|
||||
[Type],
|
||||
[FormatID],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ContentAudits]
|
||||
WHERE ContentID = @ContentID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getContentAuditsByContentID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getContentAuditsByContentID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getContents] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getContents]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getContents];
|
||||
@ -5702,6 +5825,99 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getDocument Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getDocument Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getDocumentAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getDocumentAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getDocumentAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getDocumentAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[DocID],
|
||||
[LibTitle],
|
||||
[DocContent],
|
||||
[DocAscii],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[FileExtension],
|
||||
[DeleteStatus]
|
||||
FROM [DocumentAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getDocumentAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getDocumentAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getDocumentAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getDocumentAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getDocumentAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getDocumentAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[DocID],
|
||||
[LibTitle],
|
||||
[DocContent],
|
||||
[DocAscii],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[FileExtension],
|
||||
[DeleteStatus]
|
||||
FROM [DocumentAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getDocumentAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getDocumentAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getDocumentAuditsByDocID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getDocumentAuditsByDocID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getDocumentAuditsByDocID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getDocumentAuditsByDocID]
|
||||
(
|
||||
@DocID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[DocID],
|
||||
[LibTitle],
|
||||
[DocContent],
|
||||
[DocAscii],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[FileExtension],
|
||||
[DeleteStatus]
|
||||
FROM [DocumentAudits]
|
||||
WHERE DocID = @DocID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getDocumentAuditsByDocID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getDocumentAuditsByDocID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getDocuments] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getDocuments]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getDocuments];
|
||||
@ -6257,6 +6473,87 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getEntry Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getEntry Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getEntryAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getEntryAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getEntryAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getEntryAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[DocID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [EntryAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getEntryAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getEntryAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getEntryAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getEntryAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getEntryAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getEntryAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[DocID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [EntryAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getEntryAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getEntryAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getEntryAuditsByContentID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getEntryAuditsByContentID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getEntryAuditsByContentID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getEntryAuditsByContentID]
|
||||
(
|
||||
@ContentID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[DocID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [EntryAudits]
|
||||
WHERE ContentID = @ContentID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getEntryAuditsByContentID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getEntryAuditsByContentID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getExternalTransitions] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getExternalTransitions]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getExternalTransitions];
|
||||
@ -6840,6 +7137,114 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getFormat Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getFormat Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getFormat] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getFormatByName]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getFormatByName];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getFormatByName]
|
||||
|
||||
(
|
||||
@Name varchar(255)
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
DECLARE @FormatID INT
|
||||
Set @FormatID = (select FormatID from Formats where Name = @Name)
|
||||
SELECT
|
||||
[FormatID],
|
||||
[ParentID],
|
||||
[Name],
|
||||
[Description],
|
||||
[Data],
|
||||
[GenMac],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[LastChanged],
|
||||
(SELECT COUNT(*) FROM [Contents] WHERE [Contents].[FormatID]=[Formats].[FormatID]) [ContentCount],
|
||||
(SELECT COUNT(*) FROM [DocVersions] WHERE [DocVersions].[FormatID]=[Formats].[FormatID]) [DocVersionCount],
|
||||
(SELECT COUNT(*) FROM [Folders] WHERE [Folders].[FormatID]=[Formats].[FormatID]) [FolderCount],
|
||||
(SELECT COUNT(*) FROM [Formats] [Children] WHERE [Children].[ParentID]=[Formats].[FormatID]) [ChildCount]
|
||||
FROM [Formats]
|
||||
WHERE [FormatID]=@FormatID
|
||||
|
||||
SELECT
|
||||
[Contents].[ContentID],
|
||||
[Contents].[Number],
|
||||
[Contents].[Text],
|
||||
[Contents].[Type],
|
||||
[Contents].[FormatID],
|
||||
[Contents].[Config],
|
||||
[Contents].[DTS],
|
||||
[Contents].[UserID],
|
||||
[Contents].[LastChanged]
|
||||
FROM [Contents]
|
||||
WHERE
|
||||
[Contents].[FormatID]=@FormatID
|
||||
|
||||
|
||||
SELECT
|
||||
[DocVersions].[VersionID],
|
||||
[DocVersions].[FolderID],
|
||||
[DocVersions].[VersionType],
|
||||
[DocVersions].[Name],
|
||||
[DocVersions].[Title],
|
||||
[DocVersions].[ItemID],
|
||||
[DocVersions].[FormatID],
|
||||
[DocVersions].[Config],
|
||||
[DocVersions].[DTS],
|
||||
[DocVersions].[UserID],
|
||||
[DocVersions].[LastChanged],
|
||||
[Folders].[ParentID] [Folder_ParentID],
|
||||
[Folders].[DBID] [Folder_DBID],
|
||||
[Folders].[Name] [Folder_Name],
|
||||
[Folders].[Title] [Folder_Title],
|
||||
[Folders].[ShortName] [Folder_ShortName],
|
||||
[Folders].[FormatID] [Folder_FormatID],
|
||||
[Folders].[ManualOrder] [Folder_ManualOrder],
|
||||
[Folders].[Config] [Folder_Config],
|
||||
[Folders].[DTS] [Folder_DTS],
|
||||
[Folders].[UsrID] [Folder_UsrID]
|
||||
FROM [DocVersions]
|
||||
JOIN [Folders] ON
|
||||
[Folders].[FolderID]=[DocVersions].[FolderID]
|
||||
WHERE
|
||||
[DocVersions].[FormatID]=@FormatID
|
||||
|
||||
|
||||
SELECT
|
||||
[Folders].[FolderID],
|
||||
[Folders].[ParentID],
|
||||
[Folders].[DBID],
|
||||
[Folders].[Name],
|
||||
[Folders].[Title],
|
||||
[Folders].[ShortName],
|
||||
[Folders].[FormatID],
|
||||
[Folders].[ManualOrder],
|
||||
[Folders].[Config],
|
||||
[Folders].[DTS],
|
||||
[Folders].[UsrID],
|
||||
[Folders].[LastChanged],
|
||||
[Connections].[Name] [Connection_Name],
|
||||
[Connections].[Title] [Connection_Title],
|
||||
[Connections].[ConnectionString] [Connection_ConnectionString],
|
||||
[Connections].[ServerType] [Connection_ServerType],
|
||||
[Connections].[Config] [Connection_Config],
|
||||
[Connections].[DTS] [Connection_DTS],
|
||||
[Connections].[UsrID] [Connection_UsrID]
|
||||
FROM [Folders]
|
||||
JOIN [Connections] ON
|
||||
[Connections].[DBID]=[Folders].[DBID]
|
||||
WHERE
|
||||
[Folders].[FormatID]=@FormatID
|
||||
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getFormat Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getFormat Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getFormatByParentID_Name] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getFormatByParentID_Name]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getFormatByParentID_Name];
|
||||
@ -6934,6 +7339,90 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getGrid Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getGrid Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getGridAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getGridAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getGridAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getGridAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[Data],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [GridAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getGridAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getGridAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getGridAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getGridAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getGridAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getGridAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[Data],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [GridAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getGridAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getGridAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getGridAuditsByContentID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getGridAuditsByContentID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getGridAuditsByContentID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getGridAuditsByContentID]
|
||||
(
|
||||
@ContentID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[Data],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [GridAudits]
|
||||
WHERE ContentID = @ContentID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getGridAuditsByContentID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getGridAuditsByContentID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getGrids] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getGrids]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getGrids];
|
||||
@ -7170,6 +7659,96 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getImage Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getImage Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getImageAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getImageAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getImageAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getImageAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[ImageType],
|
||||
[FileName],
|
||||
[Data],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ImageAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getImageAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getImageAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getImageAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getImageAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getImageAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getImageAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[ImageType],
|
||||
[FileName],
|
||||
[Data],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ImageAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getImageAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getImageAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getImageAuditsByContentID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getImageAuditsByContentID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getImageAuditsByContentID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getImageAuditsByContentID]
|
||||
(
|
||||
@ContentID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[ImageType],
|
||||
[FileName],
|
||||
[Data],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ImageAudits]
|
||||
WHERE ContentID = @ContentID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getImageAuditsByContentID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getImageAuditsByContentID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getImages] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getImages]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getImages];
|
||||
@ -7422,6 +8001,90 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getItemAndChildren Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getItemAndChildren Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getItemAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getItemAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getItemAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getItemAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ItemID],
|
||||
[PreviousID],
|
||||
[ContentID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ItemAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getItemAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getItemAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getItemAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getItemAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getItemAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getItemAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ItemID],
|
||||
[PreviousID],
|
||||
[ContentID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ItemAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getItemAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getItemAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getItemAuditsByItemID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getItemAuditsByItemID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getItemAuditsByItemID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getItemAuditsByItemID]
|
||||
(
|
||||
@ItemID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ItemID],
|
||||
[PreviousID],
|
||||
[ContentID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [ItemAudits]
|
||||
WHERE ItemID = @ItemID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getItemAuditsByItemID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getItemAuditsByItemID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getItemNextAndChildren] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getItemNextAndChildren]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getItemNextAndChildren];
|
||||
@ -7998,6 +8661,90 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getPart Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getPart Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getPartAudit] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getPartAudit]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getPartAudit];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getPartAudit]
|
||||
|
||||
(
|
||||
@AuditID bigint
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[FromType],
|
||||
[ItemID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [PartAudits]
|
||||
WHERE [AuditID]=@AuditID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getPartAudit Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getPartAudit Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getPartAudits] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getPartAudits]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getPartAudits];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getPartAudits]
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[FromType],
|
||||
[ItemID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [PartAudits]
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getPartAudits Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getPartAudits Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getPartAuditsByContentID] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getPartAuditsByContentID]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getPartAuditsByContentID];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getPartAuditsByContentID]
|
||||
(
|
||||
@ContentID int
|
||||
)
|
||||
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[AuditID],
|
||||
[ContentID],
|
||||
[FromType],
|
||||
[ItemID],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[DeleteStatus]
|
||||
FROM [PartAudits]
|
||||
WHERE ContentID = @ContentID
|
||||
ORDER BY AuditID DESC
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getPartAuditsByContentID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getPartAuditsByContentID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getParts] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getParts]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getParts];
|
||||
|
2784
PROMS/SQL/PROMStoCM.sql
Normal file
2784
PROMS/SQL/PROMStoCM.sql
Normal file
File diff suppressed because it is too large
Load Diff
13
PROMS/SQL/restore VEPROMS.bat
Normal file
13
PROMS/SQL/restore VEPROMS.bat
Normal file
@ -0,0 +1,13 @@
|
||||
rem for /F "tokens=1" %%i in ('"DIR /S /B /OD c:\QuickBackups\VEPROMS_20*.bak"') DO SET _FileName=%%i
|
||||
rem echo Restore "%_FileName%"
|
||||
rem sqlcmd -E -S.\sqlexpress -b -Q "restore database [VEPROMS_JCB1] from disk = '%_FileName%'"
|
||||
rem if ERRORLEVEL 1 PAUSE
|
||||
rem call wait 3
|
||||
rem if errorlevel 1 pause
|
||||
rem ping 1.0.0.0 -n 1 -w 2000 > NUL
|
||||
sqlcmd -E -S.\sqlexpress -d VEPROMS -i "C:\Development\Proms\SQL\PROMS2010.SQL"
|
||||
PAUSE
|
||||
rem ping 1.0.0.0 -n 1 -w 2000 > NUL
|
||||
sqlcmd -E -S.\sqlexpress -d VEPROMS -i "C:\Development\Proms\SQL\PROMStoCM.sql"
|
||||
PAUSE
|
||||
|
45
PROMS/VEPROMS User Interface/frmVEPROMS.Designer.cs
generated
45
PROMS/VEPROMS User Interface/frmVEPROMS.Designer.cs
generated
@ -108,13 +108,17 @@ namespace VEPROMS
|
||||
this.tabItemLibDocs = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.expandableSplitter4 = new DevComponents.DotNetBar.ExpandableSplitter();
|
||||
this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.infotabHistory = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
|
||||
this.itemAnnotationsBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.tc = new Volian.Controls.Library.DisplayTabControl();
|
||||
this.displayHistory = new Volian.Controls.Library.DisplayHistory();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomBar)).BeginInit();
|
||||
this.bottomBar.SuspendLayout();
|
||||
this.epAnnotations.SuspendLayout();
|
||||
this.epProcedures.SuspendLayout();
|
||||
this.infoPanel.SuspendLayout();
|
||||
this.tabControlPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.infoTabs)).BeginInit();
|
||||
this.infoTabs.SuspendLayout();
|
||||
this.infotabControlPanelTags.SuspendLayout();
|
||||
@ -691,6 +695,7 @@ namespace VEPROMS
|
||||
//
|
||||
this.infoTabs.BackColor = System.Drawing.Color.Transparent;
|
||||
this.infoTabs.CanReorderTabs = true;
|
||||
this.infoTabs.Controls.Add(this.tabControlPanel1);
|
||||
this.infoTabs.Controls.Add(this.infotabControlPanelTags);
|
||||
this.infoTabs.Controls.Add(this.infotabControlPanelTransitions);
|
||||
this.infoTabs.Controls.Add(this.infotabControlPanelRO);
|
||||
@ -706,6 +711,7 @@ namespace VEPROMS
|
||||
this.infoTabs.Tabs.Add(this.infotabTags);
|
||||
this.infoTabs.Tabs.Add(this.infotabRO);
|
||||
this.infoTabs.Tabs.Add(this.infotabTransition);
|
||||
this.infoTabs.Tabs.Add(this.infotabHistory);
|
||||
this.infoTabs.Text = "tabControl1";
|
||||
this.infoTabs.ThemeAware = true;
|
||||
this.infoTabs.Visible = false;
|
||||
@ -1199,6 +1205,29 @@ namespace VEPROMS
|
||||
this.buttonItem1.Text = "buttonItem19";
|
||||
this.buttonItem1.Tooltip = "Degree";
|
||||
//
|
||||
// infotabHistory
|
||||
//
|
||||
this.infotabHistory.AttachedControl = this.tabControlPanel1;
|
||||
this.infotabHistory.Name = "infotabHistory";
|
||||
this.infotabHistory.Text = "History";
|
||||
//
|
||||
// tabControlPanel1
|
||||
//
|
||||
this.tabControlPanel1.Controls.Add(this.displayHistory);
|
||||
this.tabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControlPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabControlPanel1.Name = "tabControlPanel1";
|
||||
this.tabControlPanel1.Padding = new System.Windows.Forms.Padding(1);
|
||||
this.tabControlPanel1.Size = new System.Drawing.Size(203, 515);
|
||||
this.tabControlPanel1.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
|
||||
this.tabControlPanel1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.tabControlPanel1.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Top)
|
||||
| DevComponents.DotNetBar.eBorderSide.Bottom)));
|
||||
this.tabControlPanel1.Style.GradientAngle = 180;
|
||||
this.tabControlPanel1.TabIndex = 6;
|
||||
this.tabControlPanel1.TabItem = this.infotabHistory;
|
||||
this.tabControlPanel1.ThemeAware = true;
|
||||
//
|
||||
// itemAnnotationsBindingSource
|
||||
//
|
||||
this.itemAnnotationsBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.ItemAnnotation);
|
||||
@ -1223,6 +1252,18 @@ namespace VEPROMS
|
||||
this.tc.WordSectionDeleted += new Volian.Controls.Library.StepPanelWordSectionDeletedEvent(this.tc_WordSectionDeleted);
|
||||
this.tc.LinkModifyRO += new Volian.Controls.Library.StepPanelLinkEvent(this.tc_LinkModifyRO);
|
||||
//
|
||||
// displayHistory
|
||||
//
|
||||
//this.displayHistory.AnnotationOnly = false;
|
||||
this.displayHistory.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.displayHistory.Location = new System.Drawing.Point(1, 1);
|
||||
this.displayHistory.MyItemInfo = null;
|
||||
this.displayHistory.MyProcedureInfo = null;
|
||||
this.displayHistory.Name = "displayHistory";
|
||||
//this.displayHistory.Results = ((System.Collections.Generic.ICollection<VEPROMS.CSLA.Library.ItemInfo>)(resources.GetObject("displayHistory.Results")));
|
||||
this.displayHistory.Size = new System.Drawing.Size(201, 513);
|
||||
this.displayHistory.TabIndex = 0;
|
||||
//
|
||||
// frmVEPROMS
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
@ -1266,6 +1307,7 @@ namespace VEPROMS
|
||||
this.tabControlPanel2.ResumeLayout(false);
|
||||
this.panelEx3.ResumeLayout(false);
|
||||
this.tabControlPanelLD.ResumeLayout(false);
|
||||
this.tabControlPanel1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.itemAnnotationsBindingSource)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@ -1378,6 +1420,9 @@ namespace VEPROMS
|
||||
private System.Windows.Forms.ComboBox cmbFont;
|
||||
private DevComponents.DotNetBar.LabelItem lblResolution;
|
||||
private DevComponents.DotNetBar.ButtonItem btnEditItem;
|
||||
private DevComponents.DotNetBar.TabControlPanel tabControlPanel1;
|
||||
private DevComponents.DotNetBar.TabItem infotabHistory;
|
||||
private Volian.Controls.Library.DisplayHistory displayHistory;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ namespace VEPROMS
|
||||
// - except for the volian laptop and Rich's Demo version where we need to use local data
|
||||
if (Environment.MachineName == "RMARK-PC")
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_RMARK_DEMO";
|
||||
else if (Environment.UserName == "BODINE")
|
||||
else if (Environment.UserName.ToUpper() == "BODINE")
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_BODINE_DEMO";
|
||||
else
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
|
||||
@ -160,6 +160,10 @@ namespace VEPROMS
|
||||
cmbFont.DataSource = FontFamily.Families;
|
||||
cmbFont.DisplayMember = "Name";
|
||||
cmbFont.SelectedIndex = -1;
|
||||
if (!FormatInfo.HasLatestChanges())
|
||||
throw new Exception("Inconsistent Formats");
|
||||
if (!ItemAuditInfo.IsChangeManagerVersion())
|
||||
throw new Exception("Inconsistent Data");
|
||||
VETreeNode tn = VETreeNode.GetFolder(1);
|
||||
tv.Nodes.Add(tn);
|
||||
tv.NodePSI += new vlnTreeViewPSIEvent(tv_NodePSI);
|
||||
@ -172,6 +176,7 @@ namespace VEPROMS
|
||||
tv.NodeInsert += new vlnTreeViewEvent(tv_NodeInsert);
|
||||
tv.PasteItemInfo += new vlnTreeViewItemInfoPasteEvent(tv_PasteItemInfo);
|
||||
tc.ItemPaste += new StepPanelItemPastedEvent(tc_ItemPasted);
|
||||
displayHistory.HistorySelectionChanged += new DisplayHistoryEvent(displayHistory_HistorySelectionChanged);
|
||||
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
|
||||
if (!btnAnnoDetailsPushPin.Checked)
|
||||
epAnnotations.Expanded = false;
|
||||
@ -182,11 +187,33 @@ namespace VEPROMS
|
||||
dlgFindReplace = new FindReplace();
|
||||
SpellChecker = new VlnSpellCheck();
|
||||
displaySearch1.PrintRequest += new DisplaySearchEvent(displaySearch1_PrintRequest);
|
||||
displayHistory.ChronologyPrintRequest += new DisplayHistoryReportEvent(displayHistory_ChronologyPrintRequest);
|
||||
displayHistory.SummaryPrintRequest += new DisplayHistoryReportEvent(displayHistory_SummaryPrintRequest);
|
||||
this.Activated += new EventHandler(frmVEPROMS_Activated);
|
||||
VlnSettings.StepTypeToolType = Settings.Default.StepTypeToolTip;
|
||||
displayLibDocs.PrintRequest += new DisplayLibDocEvent(displayLibDocs_PrintRequest);
|
||||
ContentInfo.InfoChanged += new ContentInfoEvent(RefreshDisplayHistory);
|
||||
ItemInfo.InfoRestored += new ItemInfoEvent(RefreshDisplayHistory);
|
||||
ItemInfo.ItemDeleted += new ItemInfoEvent(RefreshDisplayHistory);
|
||||
}
|
||||
void RefreshDisplayHistory(object sender)
|
||||
{
|
||||
displayHistory.RefreshList();
|
||||
}
|
||||
void displayHistory_HistorySelectionChanged(object sender, DisplayHistoryEventArgs args)
|
||||
{
|
||||
tc.OpenItem(ItemInfo.Get(args.ItemID));
|
||||
}
|
||||
void displayHistory_SummaryPrintRequest(object sender, DisplayHistoryReportEventArgs args)
|
||||
{
|
||||
Volian.Print.Library.PDFChronologyReport myChronoRpt = new Volian.Print.Library.PDFChronologyReport(args.ReportTitle, args.ProcedureInfo, args.AuditList, args.AnnotationList);
|
||||
myChronoRpt.BuildSummary();
|
||||
}
|
||||
void displayHistory_ChronologyPrintRequest(object sender, DisplayHistoryReportEventArgs args)
|
||||
{
|
||||
Volian.Print.Library.PDFChronologyReport myChronoRpt = new Volian.Print.Library.PDFChronologyReport(args.ReportTitle, args.ProcedureInfo, args.AuditList, args.AnnotationList);
|
||||
myChronoRpt.BuildChronology();
|
||||
}
|
||||
|
||||
DialogResult tv_NodePSI(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
VETreeNode vNode = (VETreeNode)args.Node;
|
||||
@ -1101,6 +1128,7 @@ namespace VEPROMS
|
||||
displayRO.MyRTB = args.MyEditItem.MyStepRTB;
|
||||
displayTags.MyEditItem = args.MyEditItem;
|
||||
displayBookMarks.MyEditItem = args.MyEditItem;
|
||||
displayHistory.MyEditItem = args.MyEditItem;
|
||||
|
||||
displayRO.ProgressBar = bottomProgBar;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user