Added new settings to control conversion of approved data

Added event handler for viewing version pdfs and summary reports
added constructor to lookup based on file
added method to get library document by original file name
fixed ConvertToDisplayText to support RO tables in approved folder
added vlnTreeViewPdfEvent delegate
added vlnTreeViewPdfArgs class
added ViewPDF event
only display menu item if pdf or summary pdf exists
determined if pdf should have superceded watermark added
added sorting of consistency check report by procedure number
added method to add superceded watermark to old version pdf files
commented out approved folders
This commit is contained in:
Rich
2012-02-09 16:14:36 +00:00
parent 11ba8ffa78
commit 0b48ec643e
10 changed files with 250 additions and 32 deletions

View File

@@ -4,6 +4,7 @@ using System.Collections.Specialized;
using System.Text;
using System.ComponentModel;
using System.Text.RegularExpressions;
using System.IO;
namespace VEPROMS.CSLA.Library
{
@@ -110,6 +111,18 @@ namespace VEPROMS.CSLA.Library
_DocVersionInfo = _ROFstInfo.docVer==null?null: DocVersionInfo.Get(_ROFstInfo.docVer.VersionID);
ParseIntoDictionary(rofstinfo.ROLookup);
}
public ROFSTLookup(string filePath)
{
_ROFstInfo = null;
_ROFst = null;
_DocVersionInfo = null;
FileInfo rofstFile = new FileInfo(filePath);
FileStream fs = rofstFile.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
byte[] buf = new byte[rofstFile.Length];
fs.Read(buf, 0, buf.Length);
fs.Close();
ParseIntoDictionary(buf);
}
#endregion
#region PropertiesAndData
public roHdr myHdr;