changes to support approval process
fixes to change manager
This commit is contained in:
@@ -14,6 +14,7 @@ using LBWordLibrary;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using Volian.Controls.Library;
|
||||
using Volian.Base.Library;
|
||||
|
||||
namespace Volian.Print.Library
|
||||
{
|
||||
@@ -244,18 +245,19 @@ namespace Volian.Print.Library
|
||||
}
|
||||
return writer.DirectContent;
|
||||
}
|
||||
private string CreateFileName(string procNumber, string sectNumber, string sectTitle)
|
||||
{
|
||||
return FixFileName(procNumber + "_" + ((sectNumber ?? "") != "" ? sectNumber : sectTitle));
|
||||
}
|
||||
private string CreateFileName(string procNumber)
|
||||
{
|
||||
return FixFileName(procNumber);
|
||||
}
|
||||
private string FixFileName(string name)
|
||||
{
|
||||
return Regex.Replace(name, "[ .,/]", "_") + ".pdf";
|
||||
}
|
||||
//private string CreateFileName(string procNumber, string sectNumber, string sectTitle)
|
||||
//{
|
||||
// return FixFileName(procNumber + "_" + ((sectNumber ?? "") != "" ? sectNumber : sectTitle));
|
||||
//}
|
||||
//private string CreateFileName(string procNumber)
|
||||
//{
|
||||
// return FixFileName(procNumber);
|
||||
//}
|
||||
//private string FixFileName(string name)
|
||||
//{
|
||||
// return Regex.Replace(name, "[ .,/]", "_") + ".pdf";
|
||||
//}
|
||||
int _StepPageNumber = 0;
|
||||
private VlnSvgPageHelper _MyHelper = null;
|
||||
private static PdfReader _MyFoldoutReader = null;
|
||||
private static SectionInfo _MyFoldoutSection = null;
|
||||
@@ -296,6 +298,12 @@ namespace Volian.Print.Library
|
||||
}
|
||||
return sectionID;
|
||||
}
|
||||
private bool _AllowAllWatermarks = false;
|
||||
public bool AllowAllWatermarks
|
||||
{
|
||||
get { return _AllowAllWatermarks; }
|
||||
set { _AllowAllWatermarks = value; }
|
||||
}
|
||||
private string PrintProcedureOrFoldout(ProcedureInfo myProcedure, bool doingFoldout, string outputFileName)
|
||||
{
|
||||
// The following line accounts for 16bit OverrideLeftMargin when the 'Absolute' attribute is used in the genmac.
|
||||
@@ -324,6 +332,7 @@ namespace Volian.Print.Library
|
||||
if (_MyHelper == null)
|
||||
{
|
||||
cb.PdfWriter.PageEvent = _MyHelper = new VlnSvgPageHelper(mySection);
|
||||
_MyHelper.AllowAllWatermarks = AllowAllWatermarks;
|
||||
_MyHelper.MyPdfWriter = cb.PdfWriter;
|
||||
_MyHelper.CreatingFoldoutPage = doingFoldout;
|
||||
_MyHelper.MyPdfContentByte = cb;
|
||||
|
Reference in New Issue
Block a user