60 Commits

Author SHA1 Message Date
Rich
9e170362cc Added option to Remove Trailing Hard Returns and Manual Page Breaks
Added Server and Database to Window Caption (Title)
2016-01-20 20:17:16 +00:00
17d4c2b26b Added a hidden check box which is used to generate a Continuous Action Summary
Continuous Action Summary logic
Continuous Action Summary logic – hooks for tree menu and ribbon button
2015-10-23 18:10:31 +00:00
ae7058eb8d C2013-009: Use PDF Location text box on General Tab for setting location and remove PDF Location text box on Settings Tab
B2013-173: Print Shortcut - when multiple tabs are open, Ctrl-P now prints correct procedure
2015-08-06 13:16:46 +00:00
Rich
ee198b5275 Added PDF SaveLink checkbox and methods
Added PDF SaveLink parameter to methods
Added internal tool to select existing user.
2015-06-17 11:30:22 +00:00
Rich
69f77955de Added parameters for PromsPrinter
Added parameter for frmPDFStatusForm
Added parameter for frmPDFStatusForm
Added two properties to DlgPrintProcedure
2015-05-06 14:37:16 +00:00
45d311bdfe increase PSI labels width
Add argument to fmrPDFStatusForm call for pagenum transition processing (B2015-053)
Add argument for pagenum transition processing (B2015-053)
Add panel/scroll bar for PSI that has many fields (on larger font display, could not access bottommost) (B2015-051)
Add property for tracking of pagenum transitions (B2015-053)
For section list, use section default (procedure steps) if transition format has user interface of ‘SectDefault’. (B2015-052)
Pagenum transition processing – add 3rd pass for fix. (B2015-053)
2015-04-24 13:13:47 +00:00
0e9302f206 Replace ‘?’ with ‘_’ for pdf filename so file can be created
Allow for setting of section’s ‘Default Step Section’ property
Fix page numbering for {secondary page} page list token
2015-02-09 14:05:22 +00:00
Rich
29ffd0329c Added ability to perform a profile (Determine which sections of code are using the majority of the CPU time.)
Fixed logic that determines if the debug output should be created in the PDF.
Added ability to track DB actions.
Change cursor to a wait curcor when the print button is pressed.
Added Profile debug
Added a time-out for determining if a RO.FST file is newer.
Added a property (PrintAllAtOnce) to the ItemInfo object so that the code can differentiate between objects that are being used for edit or print.
Added logic to improve print performance.  Specifically initialize a number of item properties when the procedure is loaded for printing, rather than waiting for the properties to be lazy-loaded.
Added Profile debug
Changed NextItem property to use GetNextItem method when printing.
2015-01-19 20:49:15 +00:00
Rich
5e3f6b5e0e Hide Original Page Break check box from print procedure dialog
Changed Harry's MAC domain
2014-08-07 20:10:30 +00:00
9b930ffeda Placekeeper logic
Added Checkbox to generate the Placekeeper
Generate Placekeeper logic
Disable the “include in placekeeper” checkbox on Placekeeper section types
2014-05-09 19:13:15 +00:00
a61dabd52e Process pagenum transitions for BGE
Added unit number config item to user interface for printing pagelist items for BGE
Added Print_UnitNumberForPageList config item
BGE: don’t remove ‘.’ At end of tab when making a section/step tab
Check for pagenum transitions for resolving transition text (the type BGE has)
Added UnitNumber, Level0Big and UseSpecificTransitionModifier flags
2014-04-04 13:13:31 +00:00
Rich
e8453b8648 Reset Selected Slave after processing
Added and Commented-out some debug output
Use GetTranslatedROValue to get the correct RO value when text is restored
Fix logic to attempt to use existing DocVersionInfo rather than creating a new instance
Base lookup on ROFSTID and Selected Slave
2014-03-12 22:01:55 +00:00
622717ba1a Get data into memory for approval generation so that page number transitions resolve
Fixed B2014-025:If not master/slave, load all data into memory for page number transitions. Present dialog if there are errors in page number transitions so that user can resolve.
Added a property to determine if page number transition has incorrect page number caused by length of step’s text/wrapping & pagination
Set property to determine if page number transition has incorrect page number caused by length of step’s text/wrapping & pagination
Add tracking of inconsistent page number transitions; if pdf already open, don’t run 2nd pass for page number transitions (resulting pdf had unresolved page numbers);
2014-03-04 17:36:02 +00:00
dada7102e7 Added a message to indicate the Print All was finished – when doing this in Production or Demo mode. 2014-02-10 20:59:18 +00:00
749b675438 Added check for null PDF file name (happens when there is no procedure number). 2014-01-22 15:11:20 +00:00
cfb0981a22 Page Num Transition
Initial version needed for Page Num Transition
2014-01-22 12:03:00 +00:00
ad0dc4e2ca Logic to support the PDFFilePrefix and PDFFileSuffix settings
Added text boxes for PDFFilePrefix and PDFFileSuffix settings
2014-01-17 22:20:34 +00:00
Rich
067f004170 Fixed Security Logic to work for automatic printing 2013-12-06 20:38:22 +00:00
Rich
b634967817 Added SessionInfo property to dlgApproveProcedure and ApprovalInfo classes.
Added SessionInfo property to DlgPrintProcedure and added checks to print routines to notify user that another user has procedure checked out with a confirmation to continue printing.
Added code to support multiuser and security including initializing security, creating user if user does not exist in database, checking in and out DocVersions, Procedures and Documents and keeping the database notified that user is still active.
Added label to bottom of PROMS main form to indicate who user is and what security they have on open objects.
2013-11-20 23:00:28 +00:00
13a6d8faae Added checkbox for adding blank pages to the PDF if the procedure prints duplex foldouts 2013-08-29 12:56:25 +00:00
Rich
38a1b57144 Fixed code to assure when printing all or some procedures for multiunit doc versions that output PDFs will be stored in sub folder associated with selected unit
Fixed code to prevent visibility of Applicability tab in Step Tools flyout when doc version is not a multiunit doc version
2013-08-07 04:57:47 +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
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
ca6c80487c Modified to use newly created ProcedureInfo property PDFNumber
Modified to standardize naming of summary of changes report
Added method to delete existing pdf when creating a new pdf of same name
Created error handler to warn user when trying to view pdf file already open
Created new ProcedureInfo property PDFNumber to handle slashes in procedure number
Corrected error in ResolvePathTo method of TranistionInfo class
2013-04-10 14:21:07 +00:00
Rich
0979a8b178 Added code to handle non-date formatted revision dates (eg: DRAFT)
Utilized newly created procedure config property ChangeBarDate
Modified method to populate ContentAuditInfoList used in summary report
Modified method to populate AnnotationAuditInfoList used in summary report
Fixed code to store correct date in History StartDate
Cleaned up code used to print procedure
Developed method to store ChangeBarDate in procedure config
Fixed code to assure rev and revdate were displayed when printing multi unit procedure
2013-04-08 14:39:08 +00:00
89dd2f72b0 B2013-078 – Add code to automatically separate the RevDate from the RevNumber and put the information in the proper config fields 2013-04-04 13:54:53 +00:00
Rich
9e35e1ec4b Added new SlashReplace format variable to control how Slashes are treated when the procedure number is converted to a pdf name.
Changed formating of Cautions (Not Bold and Heading removed underline)
Corrected RO_Lookup logic for page Header.
2013-02-06 16:36:34 +00:00
611cdce970 B2013-018 - Needed to add logic to check if the DoRevDate RevDateWithForwardSlash flags are both false - in which case only use the Rev Number 2013-02-05 14:45:48 +00:00
e95c0aa52d B2013-002 fixed the logic that uses RevDate.
Added logic to  only show the revision date field if the RevDate flag was set to true in the current format.
2013-01-09 19:09:59 +00:00
Rich
70200025dd Added RevDate and ReviewDate properties to DlgPrintProcedure class
Set visibility of RevDate label and textbox based on whether one or more procedures are being printed
Set visibility of ReviewDate label and textbox based on whether one or more procedures are being printed
Added UnitNumber and UnitIndex properties to DlgPrintProcedure class
Set property DocVersionConfig to DocVersionConfig of procedure to be printed
If ProcNum is blank use UnitNumber as pdf file name
If ProcNum starts with *, replace * with UnitNumber
Added required opening brace
Set RevDate property to ProcedureConfig Print_RevDate property value
Set ReviewDate property to ProcedureConfig Print_ReviewDate property value
Added required opening brace
Set RevDate property to current date if ProcedureConfig is null
Set ReviewDate property to null if ProcedureConfig is null
Set visibility of ReviewDate label and textbox based on AllProcedures property and hasReviewDate variable
Added SelectedSlave property to DlgPrintProcedure class
Set MultiUnitPdfLocation to empty string
Control creating multiple pdfs for a selected unit
Load item and children for procedure to be printed for selected unit
Overlay PDF creation status form so that cancel button is covered
Code to create PDFs when single unit site
Call Application.DoEvents so that screen refreshes
Added private method GetMultiUnitPDFPath to DlgPrintProcedure class
If creating PDF for one procedure for selected unit, load item and children
Removed no longer required closing brace
Set MultiUnitPDFLocation
Added event handler for cursor entering RevDate textbox
Added event handler for cursor leaving RevDate textbox
Added event handler for cursor leaving ReviewDate textbox
Added event handler for cursor entering ReviewDate textbox
Added event handler for selecting date from DateSelector calendar
2012-12-04 22:46:19 +00:00
Rich
7b5fdd9f74 Use "GetItemAndChildren" to assure that the latest data is used.
Fixed logic if trying to create a PDF while a previous PDF is open.
2012-11-05 21:58:02 +00:00
1966e05e01 2012-10-26 10:18:28 +00:00
Rich
747fd76f21 Center dialog over PROMS window
Overlay bottom of dialog with printing status dialog to hide buttons.
Correct spelling of DebugPagination.txt file
Fix table layout - Linespacing and text within borders
Set the yOffset to an integer value after a Table - This was causing some very strange pagination problems.
Output one blank line after a figure.
2012-09-25 21:01:10 +00:00
Rich
41c9f223b0 Show Progress bar when Printing all procedures
Added Cancel button for printing all procedures
Added Timer for automatic processes
2012-09-17 19:14:29 +00:00
Rich
43203c4bdd Remove unused parameter from PromsPrinter constructor
Remove unused parameter from frmPDFStatusForm constructor
Remove event handler for cbxCheckedChanged
Set cbxCmpPRMSpfd to invisible since it is no longer needed
Remove unused parameter from frmPDFStatusForm constructor
Remove unused parameter from PromsPrinter constructor
Rename log static field to _MyLog
Set the Error Log file name to the Database name and the date of the previous Sunday - This will create a new error log file for each database each week
2012-07-25 21:43:09 +00:00
ed2fcf39e1 changes for comparing PROMS generated PDFs with PROMS generated PDFs
Added checkbox to compare PROMS generated PDFs with PROMS generated PDFs
Logic to support the comparing of PROMS generated PDFs with PROMS generated PDFs
2012-06-20 16:06:55 +00:00
8cc07a788f show “Compare PDF” checkbox only if “compare” folder exists OR if in Debug Mode. Rename “Debug” checkbox label to “Compare PDF” (B2012-149) 2012-06-12 15:19:57 +00:00
4b4734b1ba 2012-05-08 12:54:05 +00:00
641dbeb593 2012-02-21 17:04:22 +00:00
e4789594bf Fixed bug B2011-056, where the watermarks could not be turned off from the print dialog 2011-12-15 18:37:08 +00:00
0d9e131849 Pre-selected the Create button when the print dialog is first opened.
Updated the list to include <CTRL><P> for creating a PDF
Assigned “P” to the KeyTips for the Create PDF ribbon button and <Ctrl><P> to the ShortCut and updated the Tool Tips
2011-12-08 16:44:34 +00:00
Rich
f1af6e9d6c • Add ability to print all procedures from the command-line.
•	Position frmPDFStatusForm below this form.
•	Close the dialog when all procedures are printed.
Position this form at a specific location.
Command-Line Print all procedures for a specified DocVersionID
2011-12-02 16:42:32 +00:00
12a9006816 Don't open all PDFs if printing All Procedures
Fixed logic so that Single RO Values don't fail in MSWord
2011-09-30 12:53:13 +00:00
001a3873cb Don't set parent lookup for DocVersion config 2011-09-28 13:21:09 +00:00
bf8ee98a53 now reads the value for the Always Create PDF check box (from the property pages) 2011-09-22 19:51:57 +00:00
Rich
d24109fe19 QUOTED_IDENTIFIER ON
Show how long it takes to print all procedures
For Null values use Arial as a default font.
Added Try/Catch to PDFDocument.Close (In case page is empty)
Only output End Message if it exists
Pagination Fixes
2011-09-22 17:44:01 +00:00
e718d93ea5 2011-09-22 11:53:01 +00:00
Rich
15d7ab597c Create and Show Debug Files 2011-08-23 18:39:25 +00:00
Rich
a9882ad357 Added Print All Procedures 2011-08-18 11:18:16 +00:00
2e40ad7e8f 2011-05-19 13:28:00 +00:00