43 Commits

Author SHA1 Message Date
65b32ab930 Fixed the script that turns off AutoShrink and Autoclose so that it can be run from the SQL Management Studio. 2013-08-27 15:49:24 +00:00
e507230fd9 turned off the AutoClose and AutoShrink database options 2013-08-20 19:52:59 +00:00
Rich
681d94d304 Modified vesp_ListItemAndChildrenByUnit to fix content parts count when no content parts exist due to applicability settings 2013-07-23 04:05:10 +00:00
Rich
78add0ccd2 Added a missing MAXRECURSION 10000
Changed Through Transition Format and User Interface
Added Automatic Print Options to shutoff DebugText (/NT), DebugPagination (/NP) and Compare (/NC)
Added logic to allow the use of the default path for PDFs.
Update the Print_PDFLocation property of the Working Draft when the user changes the value on the Working Draft property page.  Fixed Bug B2013-117
Set the date/time stamp for the Document based upon the current time.
Make sure that the output is set to Final without revisions and comments before ROs are replaced.
Added function to restore valid previous version of MSWord document if the current version is not a valid document.
Check for Null to eliminate errors.
Removed Unused field DocPDF
Support MSWord document restore function.
Add check for Transition Node count before updating values.
Restore latest valid MSWord document if the current version is not valid.
Eliminate File Commands so that the user can only close the MSWord section, and then verify if the changes to the document will be saved.
2013-07-01 17:39:15 +00:00
Rich
4885c21734 Used landscape parameter in call to SaveWordDoc in MigrateLibDoc method
Added new table function vefn_GetVersionFormatItems
Used comparison of DocStyle PageWidth to PageLength to determine value for landscape parameter in call to SaveSectionDocument
Added ability to disable checkoffs for a section based on 16-bit data
2013-06-11 18:39:39 +00:00
Rich
ebccc32e4e Fixed logic to find ROs in procedure text. 2013-05-23 20:40:09 +00:00
Rich
e9f746a883 Logic to determine if a transition was acceptable was running into a limit. The limit was removed.
Changed logic so that Compare Check Box is visible if the PDF Output folder contains a folder named "Compare".
Pagination within a step was changed to more accurately fill a page taking account for continue messages at the top and bottom of the page.
Logic was added to try to find a place to break a step, if the minimum break location cannot be found using the standard logic.
Added YTopMost output to debug text on compare PDFs.
2013-05-21 15:37:19 +00:00
Rich
f77a704f6c Added getJustFormat, vesp_TurnChangeManagerOFF and vesp_TurnChangeManagerON stored procedures 2013-04-19 13:53:39 +00:00
Rich
a7c689f23a Modified getAnnotationAuditsChronologyByItemIDandUnitID to use derived applicability
Modified getContentAuditsSummaryByItemIDandUnitID to use derived applicability
Modified getContentAuditsChronologyByItemIDandUnitID to use derived applicability
2013-04-10 14:18:57 +00:00
Rich
1941ab1f2b Fixed Search Annoations. The code was looking for Items which contained annotations rather than looking for the annotations. The results would list all of the annotations for items that matched the search criteria rather than just the annotations that matched the search criteria.
The stored procedure "DeleteAnnotationType" was changed to delete any related records in the table tblAnnotations.  This allows the user to delete annotation types that are no longer is use.
The drag function for Folders, Procedures, Sections and Steps was changed to require the user to press the Control and Shift keys when dragging, thus making it more difficult to accidently move items in the Tree View.
2013-04-09 14:20:58 +00:00
Rich
55f918c150 Added logic to only process RO value updates for the specified DocVersion. 2013-04-08 19:26:16 +00:00
Rich
3dac6dd926 Modified vefn_ChronologyReport to include datetime parameter
Modified vefn_GetMyChronology to include datetime parameter
Modified getContentAuditsChronologyByItemID to include datetime parameter
Modified getContentAuditsSummaryByItemID to include datetime parameter
Modified getAnnotationAuditsChronologyByItemID to include datetime parameter
Modified getAnnotationAuditsChronologyByItemIDandUnitID to include datetime parameter
Modified getContentAuditsChronologyByItemIDandUnitID to include datetime parameter
Modified getContentAuditsSummaryByItemIDandUnitID to include datetime parameter
2013-04-08 14:36:44 +00:00
Rich
d2796abac7 Added logic to trigger to allow an unused library document to be deleted. 2013-03-27 17:05:01 +00:00
Rich
49077fccb5 Added logic to keep this script from running in the system databases.
Added warning messages if changes exist to fmtxml or promsfixes.sql.
2013-03-14 20:42:06 +00:00
Rich
07fbc295d1 Added Stored Procedure to sort folders alphabetically
vesp_ResetFolderManualOrderAlphabetical
2013-03-14 14:41:36 +00:00
Rich
23b9f54614 Fixed logic to find dashes 2013-03-13 21:47:27 +00:00
Rich
23ad3d8d7b Made a few fixes to the Text Search Function
Created a Stored Procedure to move Procedures, Sections and Steps
Added set files to READ/WRITE if they are READ ONLY.
2013-03-12 14:59:13 +00:00
Rich
4abaceac23 Corrected comment
Added Ordinal to vefn_SiblingItems
Added Stored Procedure vesp_SortProcedures to sort procedures within a DocVersion
Added Error Handler in Range.Text
Corrected logic in FindRO to return a null when an RO is not found.
2013-02-28 15:47:52 +00:00
Rich
e2797d2e2d Corrected the size of the input variable (List of Procedure Sets) so that all of the requested data sets will be searched 2013-02-20 19:50:26 +00:00
Rich
a2d30b72e1 Logic change to get Children in the correct order in the treeview and editor 2013-02-05 23:38:16 +00:00
Rich
676ec9fb30 Revised vefn_getChronology to speed up performance 2013-01-09 20:32:21 +00:00
d02d29f0e1 B2012-371 Fixed the bug with inserting an outside transition – needed stored procedure vefn_ParentItems 2012-12-13 22:54:58 +00:00
Rich
5302c8a95f Improved getAnnotationAuditsChronologyByItemIDandUnitID execution speed
Improved getContentAuditsChronologyByItemIDandUnitID execution speed
Improved getContentAuditsSummaryByItemIDandUnitID execution speed
2012-12-05 20:57:02 +00:00
Rich
31d6e47b51 Added the following Stored Procedures to support master slave data
getAnnotationAuditsChronologyByItemIDandUnitID
	getContentAuditsChronologyByItemIDandUnitID
	getContentAuditsSummaryByItemIDandUnitID
	getCurrentRevisionByItemIDandUnitID
	getDocumentByLibDoc
	getRevisionByItemIDandRevisionNumberAndUnitID
	getRevisionsByItemIDandUnitID
	vesp_CanTransitionBeCreated
	vesp_ListItemAndChildrenByUnit
	vesp_WillTransitionsBeValid
Added the following Functions to support master slave data
	ve_GetItemApplicability
	ve_GetItemDerivedApplicability
	ve_GetParentItem
	vefn_CanTransitionBeCreated
	vefn_GetVersionIDByItemID
	vefn_WillTransitionBeValidFrom
	vefn_WillTransitionBeValidTo
2012-12-04 22:39:47 +00:00
Rich
77338c048d Added vefn_GetMyChronology user function
Fixed getContentAuditsChronologyByItemID stored procedure
Fixed getContentAuditsSummaryByItemID stored procedure
Fixed getAnnotationAuditsChronologyByItemID stored procedure
2012-11-13 16:08:14 +00:00
1bdf8af02d Bug fix B2012-298 Error on past procedure before or after Added a MAXRECURSION statement to fix the problem.
Added “Copy Of” to new the procedure numbers when we copy and paste a procedure.
2012-11-09 20:39:35 +00:00
Rich
173dd85ccf Added "OPTION (MAXRECURSION 10000) to all recursive queries. Remove Change Manager stored procedure "getItemAuditsByItemID" 2012-11-05 21:55:27 +00:00
Rich
bbcb9c6935 Fixed search logic for empty search string. Improves performance.
Fixed logic to restore a deleted step.  If the first step is deleted and restored, the change manager fails.
Fixed numerous queries to give proper values if either the number or the number or the title is null.
Added testing examples to vefn_FixSearchString
2012-10-31 15:54:52 +00:00
62334a105d 2012-10-30 14:14:23 +00:00
1a65b51312 fixed syntax error 2012-10-26 14:38:22 +00:00
29f2d79fed include copyright notice for each stored procedure, function, and trigger
added VEREV3PI “WOG - Emergency Response Guidelines Rev. 2 for NSP”
2012-10-25 18:47:22 +00:00
Rich
eed947c044 PROMSFixes.Sql - Changed logic in Stored Procedures and functions to Properly format PATH when the Procedure Number includes a Decimal Point
vefn_SiblingAndChildrenItems
	vesp_SearchItemAndChildren
	vesp_GetROUsagesByProcedure
	vesp_SearchROItemAndChildren
	vefn_SiblingAndChildrenItemsByProc
	Removed duplicate vesp_SearchROItemAndChildren
2012-10-25 17:04:23 +00:00
314046cd77 2012-10-04 11:11:06 +00:00
Rich
d1e10d79c2 Improved RO Search Performance
Improved Annotation Search Performance
Changed SQL to always do a drop and create rather than an ALTER
Changed SQL to always give a status after a CREATE
2012-09-28 18:40:57 +00:00
cf599335a2 - added stored procedure for use in creating RO Usage Reports 2012-09-13 19:53:05 +00:00
Rich
1f9f65ae18 Don't create audit if only DTS changes for an item
Outlook Library
2012-04-26 22:01:40 +00:00
ed896b70c1 - was missing some commands 2012-04-19 20:20:29 +00:00
Rich
bcc0cfca48 Use the UnitPrefix directly from the DocVersion Config for searches 2012-04-19 18:23:39 +00:00
Rich
74097dc316 Fixed Stored Procedure getAnnotationAuditsChronologyByItemID
Fixed Approved Method to Update Content and Item at the same time
Force History tab to be cleared when a procedure is deleted
2012-04-04 19:06:06 +00:00
Rich
e14f62728e Fixed logic to get data for Chronology and Summary of Changes reports 2012-03-28 21:56:23 +00:00
Rich
7dbc0ddfe5 Add option to fix all approval databases at once
Added Print Statements
Corrected RestoreDeletedItem
2012-03-28 19:52:47 +00:00
Rich
a38a883170 Update User Defined Function vefn_FixSearchString to enable search for dash 2012-03-26 13:30:55 +00:00
Rich
8dd3d6481a Removed Applicability
Added menu options to correct funtions and procedures
Removed Applicability from PurgeData
Bug Fixes for Paste/Replace etc.
Update DTS and User ID before saving Config
Search from current rather than root node
2012-03-22 20:28:58 +00:00