C2018-016 (Volian use only) Added capability to eliminate Unused formats from the list of available formats. If you add the text "(Unused)" to the format description, the specified format will be removed from the available format list if it has not been used (Folder, DocVersion or Contents).
B2018-074 (Volian Use Only at this point) When you would enter an ItemID in the Toolbar Text window for a MSWord section, the code would crash. This has been fixed.
This commit is contained in:
parent
e5b47deb38
commit
08327810e3
@ -13775,6 +13775,80 @@ IF (@@Error = 0) PRINT 'StoredProcedure [vesp_BuildContentsEnhanced] Succeeded'
|
|||||||
ELSE PRINT 'StoredProcedure [vesp_BuildContentsEnhanced] Error on Creation'
|
ELSE PRINT 'StoredProcedure [vesp_BuildContentsEnhanced] Error on Creation'
|
||||||
go
|
go
|
||||||
|
|
||||||
|
/****** Object: StoredProcedure [getChildFormats] ******/
|
||||||
|
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getChildFormats]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||||
|
DROP PROCEDURE [getChildFormats];
|
||||||
|
GO
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||||
|
Copyright 2018 - Volian Enterprises, Inc. All rights reserved.
|
||||||
|
*****************************************************************************/
|
||||||
|
CREATE PROCEDURE [dbo].[getChildFormats]
|
||||||
|
|
||||||
|
(
|
||||||
|
@ParentID int
|
||||||
|
)
|
||||||
|
WITH EXECUTE AS OWNER
|
||||||
|
AS
|
||||||
|
SELECT * From (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] ) T1
|
||||||
|
where Description not like '%(Unused)%' or (ContentCount + DocVersionCount + FolderCount + ChildCount > 0)
|
||||||
|
RETURN
|
||||||
|
GO
|
||||||
|
-- Display the status of Proc creation
|
||||||
|
IF (@@Error = 0) PRINT 'Procedure Creation: getChildFormats Succeeded'
|
||||||
|
ELSE PRINT 'Procedure Creation: getChildFormats Error on Creation'
|
||||||
|
GO
|
||||||
|
/****** Object: StoredProcedure [getFormats] ******/
|
||||||
|
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getFormats]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||||
|
DROP PROCEDURE [getFormats];
|
||||||
|
GO
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||||
|
Copyright 2018 - Volian Enterprises, Inc. All rights reserved.
|
||||||
|
*****************************************************************************/
|
||||||
|
CREATE PROCEDURE [dbo].[getFormats]
|
||||||
|
|
||||||
|
WITH EXECUTE AS OWNER
|
||||||
|
AS
|
||||||
|
SELECT * From (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] ) T1
|
||||||
|
where Description not like '%(Unused)%' or (ContentCount + DocVersionCount + FolderCount + ChildCount > 0)
|
||||||
|
RETURN
|
||||||
|
GO
|
||||||
|
-- Display the status of Proc creation
|
||||||
|
IF (@@Error = 0) PRINT 'Procedure Creation: getFormats Succeeded'
|
||||||
|
ELSE PRINT 'Procedure Creation: getFormats Error on Creation'
|
||||||
|
GO
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
/*
|
/*
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
@ -13800,8 +13874,8 @@ BEGIN TRY -- Try Block
|
|||||||
set nocount on
|
set nocount on
|
||||||
DECLARE @RevDate varchar(255)
|
DECLARE @RevDate varchar(255)
|
||||||
DECLARE @RevDescription varchar(255)
|
DECLARE @RevDescription varchar(255)
|
||||||
set @RevDate = '2/08/2018 9:51 AM'
|
set @RevDate = '5/10/2018 2:15 PM'
|
||||||
set @RevDescription = 'Fixed Search to find text including hard returns'
|
set @RevDescription = 'Exclude formats that contain (Unused) in their description'
|
||||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||||
IF( @@TRANCOUNT > 0 ) COMMIT
|
IF( @@TRANCOUNT > 0 ) COMMIT
|
||||||
|
@ -82,7 +82,10 @@ namespace Volian.Controls.Library
|
|||||||
if (_MyStepTabPanel == null) return null;
|
if (_MyStepTabPanel == null) return null;
|
||||||
return _MyStepTabPanel.SelectedItemInfo;
|
return _MyStepTabPanel.SelectedItemInfo;
|
||||||
}
|
}
|
||||||
set { _MyStepTabPanel.SelectedItemInfo = value; }
|
set {// B2018-074 Don't crash if opening MSWord section from Tools window in Debug Mode
|
||||||
|
if (_MyStepTabPanel != null)
|
||||||
|
_MyStepTabPanel.SelectedItemInfo = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Current DocumentInfo for this page - only set if library document
|
/// Current DocumentInfo for this page - only set if library document
|
||||||
|
Loading…
x
Reference in New Issue
Block a user