Compare commits
121 Commits
C2025-053
...
8c5c7a5d93
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c5c7a5d93 | |||
| 85995040a8 | |||
| 826d06b532 | |||
| 3328e35cf4 | |||
| 091c56ec34 | |||
| 31e9910242 | |||
| 864ec2709c | |||
| 4b1ca8d7bf | |||
| 3b73d54ea2 | |||
| 2ca433c83f | |||
| 0b40569727 | |||
| afb0247d87 | |||
| bce8461a7e | |||
| 9d5cc43d71 | |||
| bc1370ab29 | |||
| eaf2b14cfc | |||
| 1cf7d81aa5 | |||
| f11a9536f0 | |||
| c7bdcf0104 | |||
| df026499d5 | |||
| a3aa4157b8 | |||
| 8f3268e1bc | |||
| 5721d440e9 | |||
| 505c396283 | |||
| 643e6bc94f | |||
| 76502e6d97 | |||
| 851a0b3810 | |||
| fd8dbb4c8b | |||
| 4ffd994c5e | |||
| a34828113a | |||
| 461329468c | |||
| 35de5df04d | |||
| 4f0548fd60 | |||
| 5c1d96cc51 | |||
| 57049c0c52 | |||
| 31326e1c91 | |||
| 3c60994a0a | |||
| 773cc42346 | |||
| f46a1f39dc | |||
| b7175bf77f | |||
| ec22232aa8 | |||
| f303cd2236 | |||
| f40cef4416 | |||
| fbca97d38d | |||
| 28bd2cba5c | |||
| 4b35f73bbf | |||
| f4706eb126 | |||
| 21bcb90558 | |||
| ae48ac0cae | |||
| cb4979d5bc | |||
| 7d3ae74e1f | |||
| 9d680aa500 | |||
| 0d50b1c2fe | |||
| 75e034863f | |||
| 3b42de1571 | |||
| 668472286e | |||
| e00d34c99d | |||
| 9fb496dfb3 | |||
| f4eaa4a3ef | |||
| 5d50ed6bdf | |||
| d7ace4eaf9 | |||
| 16a4d335ea | |||
| ba69bb0772 | |||
| 455940caa2 | |||
| 439344757e | |||
| ad912691c9 | |||
| 237144aff6 | |||
| 810332d558 | |||
| f8431d0ba1 | |||
| 57c3bfa16a | |||
| 61f1077608 | |||
| 8877e968b9 | |||
| 4575c90bee | |||
| 21279a87ae | |||
| 3d5ad4a17e | |||
| 9bb7b044a8 | |||
| dc8f2f7561 | |||
| 829dbf84da | |||
| 7b156c17f8 | |||
| cbf7cbc164 | |||
| b04faa816e | |||
| 517ebe2902 | |||
| 03d0d314e3 | |||
| 3e804c5cce | |||
| ee2b8b538e | |||
| fdfd34fe92 | |||
| 2d6fb6523b | |||
| 3084bf3982 | |||
| 5ba51e8392 | |||
| fb5eb43e34 | |||
| b154056276 | |||
| c67b8f9ca1 | |||
| 95e4181360 | |||
| 32dffbe56b | |||
| 6b3c8d373b | |||
| db29107f47 | |||
| 355537f2ab | |||
| 0729ef0c21 | |||
| 6fe82bfd0f | |||
| 39bf072363 | |||
| da7c384fd8 | |||
| 95130fd9a0 | |||
| 978e2344a3 | |||
| c9bf45602c | |||
| aa160b2036 | |||
| f82b32d351 | |||
| e519dc9a57 | |||
| f020c37db9 | |||
| 5a4ec3b6b1 | |||
| 2602d6c9d2 | |||
| ff403583d7 | |||
| c5577cc2bd | |||
| 78be6e5dc1 | |||
| b954a41375 | |||
| 0100a11cfe | |||
| 04cf2e8534 | |||
| be00724818 | |||
| 274d93c61a | |||
| 7dc4c30436 | |||
| 028ef4bc31 | |||
| 42124d65c7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -345,6 +345,12 @@ namespace Volian.Print.Library
|
|||||||
// will skip certain logic if CAS Only or CTS Only
|
// will skip certain logic if CAS Only or CTS Only
|
||||||
public PromsPrinterPrintType PromsPrinterPrintType { get; set; } = PromsPrinterPrintType.Normal;
|
public PromsPrinterPrintType PromsPrinterPrintType { get; set; } = PromsPrinterPrintType.Normal;
|
||||||
|
|
||||||
|
//B2025-054 Wrong Page Numbers in CAS Summary
|
||||||
|
// when section title continued and CAS
|
||||||
|
// Flag for when should build the CAS_CTAS
|
||||||
|
//to avoid overwriting data
|
||||||
|
public bool ShouldPrint_CAS_CTAS { get; set; } = true;
|
||||||
|
|
||||||
public PromsPrinter(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite,
|
public PromsPrinter(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite,
|
||||||
ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint, string prefix, bool saveLinks, int removeTrailngHardReturnsAndManualPageBreaks, string blankPageText, bool didAll, MergedPdf mergedPdf, string watermarkColor, int PrtSectID = -1)
|
ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint, string prefix, bool saveLinks, int removeTrailngHardReturnsAndManualPageBreaks, string blankPageText, bool didAll, MergedPdf mergedPdf, string watermarkColor, int PrtSectID = -1)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2162,12 +2162,12 @@ namespace Volian.Print.Library
|
|||||||
//B2025-048 Problem with Printing CAS Steps
|
//B2025-048 Problem with Printing CAS Steps
|
||||||
// skip this if printing CAS or CTAS - was causing it to
|
// skip this if printing CAS or CTAS - was causing it to
|
||||||
// skip/overwrite data
|
// skip/overwrite data
|
||||||
if (doSectionTitleContinued && MyPromsPrinter.PromsPrinterPrintType == PromsPrinterPrintType.Normal)
|
if (doSectionTitleContinued)
|
||||||
{
|
{
|
||||||
vlnParagraph sectContPara;
|
vlnParagraph sectContPara;
|
||||||
string contMsg = (MyItemInfo.ActiveSection != null) ? MyItemInfo.ActiveSection.MyDocStyle.Continue.SectionTitle.AppendToTitle : ""; // C2018-003 fixed use of getting the active section
|
string contMsg = (MyItemInfo.ActiveSection != null) ? MyItemInfo.ActiveSection.MyDocStyle.Continue.SectionTitle.AppendToTitle : ""; // C2018-003 fixed use of getting the active section
|
||||||
// For Calvert, the xoffset will be the highest level sections xoffset (there are metasections,
|
// For Calvert, the xoffset will be the highest level sections xoffset (there are metasections,
|
||||||
// don't use their xoffset or the continue message is indented too much)
|
// don't use their xoffset or the continue message is indented too much)
|
||||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
|
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
|
||||||
{
|
{
|
||||||
float secContinueTabXoff = (float)MyItemInfo.MyDocStyle.Layout.LeftMargin;
|
float secContinueTabXoff = (float)MyItemInfo.MyDocStyle.Layout.LeftMargin;
|
||||||
@@ -2187,6 +2187,12 @@ namespace Volian.Print.Library
|
|||||||
// get to the correct section for the message, i.e. if on a section, the message should be the parent
|
// get to the correct section for the message, i.e. if on a section, the message should be the parent
|
||||||
// section (not the activesection which is myself); if on a step, the message should be the active section
|
// section (not the activesection which is myself); if on a step, the message should be the active section
|
||||||
ItemInfo sectForCont = MyItemInfo.IsSection && MyItemInfo.MyParent.IsSection ? MyItemInfo.MyParent : MyItemInfo.ActiveSection;
|
ItemInfo sectForCont = MyItemInfo.IsSection && MyItemInfo.MyParent.IsSection ? MyItemInfo.MyParent : MyItemInfo.ActiveSection;
|
||||||
|
//B2025-054 Wrong Page Numbers in CAS Summary
|
||||||
|
// when section title continued and CAS
|
||||||
|
//to avoid overwriting data
|
||||||
|
// - this will be built at a different call to vlnParagraph
|
||||||
|
if (MyPromsPrinter.PromsPrinterPrintType != PromsPrinterPrintType.Normal)
|
||||||
|
MyPromsPrinter.ShouldPrint_CAS_CTAS = false;
|
||||||
sectContPara = new vlnParagraph(MyParent.MyParent, cb, sectForCont, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false, MyPromsPrinter);
|
sectContPara = new vlnParagraph(MyParent.MyParent, cb, sectForCont, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false, MyPromsPrinter);
|
||||||
if (sectContPara.PartsLeft.Count > 0)
|
if (sectContPara.PartsLeft.Count > 0)
|
||||||
{
|
{
|
||||||
@@ -2197,7 +2203,7 @@ namespace Volian.Print.Library
|
|||||||
vt.XOffset = secContinueTabXoff;
|
vt.XOffset = secContinueTabXoff;
|
||||||
vt.Width = secContinueXoff - secContinueTabXoff;
|
vt.Width = secContinueXoff - secContinueTabXoff;
|
||||||
sectContPara.XOffset = secContinueXoff;
|
sectContPara.XOffset = secContinueXoff;
|
||||||
if ((wd + 12) > secContinueXoff - secContinueTabXoff) // 12 is 2 characters
|
if ((wd + 12) > secContinueXoff - secContinueTabXoff) // 12 is 2 characters
|
||||||
{
|
{
|
||||||
float dif = wd + 12 - (secContinueXoff - secContinueTabXoff);
|
float dif = wd + 12 - (secContinueXoff - secContinueTabXoff);
|
||||||
vt.Width += dif;
|
vt.Width += dif;
|
||||||
@@ -2212,12 +2218,20 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//B2025-054 Wrong Step Numbers
|
||||||
|
// when section title continued and CAS
|
||||||
|
//to avoid overwriting data
|
||||||
|
// - this will be built at a different call to vlnParagraph
|
||||||
|
if (MyPromsPrinter.PromsPrinterPrintType != PromsPrinterPrintType.Normal)
|
||||||
|
MyPromsPrinter.ShouldPrint_CAS_CTAS = false;
|
||||||
sectContPara = new vlnParagraph(MyParent.MyParent, cb, MyItemInfo.ActiveSection, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false, MyPromsPrinter);
|
sectContPara = new vlnParagraph(MyParent.MyParent, cb, MyItemInfo.ActiveSection, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false, MyPromsPrinter);
|
||||||
float mytmpfloat = sectContPara.ParagraphToPdf(cb, yTopMargin, yTopMargin, yBottomMargin);
|
float mytmpfloat = sectContPara.ParagraphToPdf(cb, yTopMargin, yTopMargin, yBottomMargin);
|
||||||
if (sectContPara.SectionContinuePrinted)
|
if (sectContPara.SectionContinuePrinted)
|
||||||
yPageStart -= sectContPara.Height + SixLinesPerInch;
|
yPageStart -= sectContPara.Height + SixLinesPerInch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//out of section title section - reset this back to true (default)
|
||||||
|
MyPromsPrinter.ShouldPrint_CAS_CTAS = true;
|
||||||
|
|
||||||
// see if this hls has footnotes, add to the footnote datastructure for processing at end of page.
|
// see if this hls has footnotes, add to the footnote datastructure for processing at end of page.
|
||||||
if (MyItemInfo.IsHigh && MyPageHelper.NotesToFootNotesHLS.ContainsKey(MyItemInfo.ItemID)) AddFootNote(cb);
|
if (MyItemInfo.IsHigh && MyPageHelper.NotesToFootNotesHLS.ContainsKey(MyItemInfo.ItemID)) AddFootNote(cb);
|
||||||
@@ -3596,11 +3610,11 @@ namespace Volian.Print.Library
|
|||||||
BuildPlacekeeper(parent, itemInfo);
|
BuildPlacekeeper(parent, itemInfo);
|
||||||
|
|
||||||
// Save step text information to be used to create a Continuous Action Summary
|
// Save step text information to be used to create a Continuous Action Summary
|
||||||
BuildContinuousActionSummary(parent, itemInfo);
|
if (MyPromsPrinter.ShouldPrint_CAS_CTAS) BuildContinuousActionSummary(parent, itemInfo);
|
||||||
|
|
||||||
// F2022-024 Time Critical Step
|
// F2022-024 Time Critical Step
|
||||||
// Save step text information to be used to create a Time Critical Action Summary
|
// Save step text information to be used to create a Time Critical Action Summary
|
||||||
BuildTimeCriticalActionSummary(parent, itemInfo);
|
if (MyPromsPrinter.ShouldPrint_CAS_CTAS) BuildTimeCriticalActionSummary(parent, itemInfo);
|
||||||
|
|
||||||
if (itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null)
|
if (itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null)
|
||||||
_MyBoxLeftAdj = float.Parse(itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj);
|
_MyBoxLeftAdj = float.Parse(itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj);
|
||||||
|
|||||||
Reference in New Issue
Block a user