F2022-024 – added logic to generate a Time Critical Action Summary report
F2022-024 – logic to replace {!Clock} with the defined genmac macro when step tab is printed from the pagelist (Enhanced Backgrounds)
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Volian.Print.Library
|
||||
while (!ii.IsHigh) ii = ii.MyParent;
|
||||
return ii;
|
||||
}
|
||||
public ContinuousActionSummary(pkParagraphs myContActSteps, VE_Font pkFont)
|
||||
public ContinuousActionSummary(pkParagraphs myContActSteps, VE_Font pkFont, bool doingTimeCriticalSummary = false)
|
||||
{
|
||||
ItemInfo prevHLSii = null;
|
||||
string txtPageNum = ""; // this gets asigned the page number continuous action step text.
|
||||
@@ -44,7 +44,7 @@ namespace Volian.Print.Library
|
||||
//_WordApp.Visible = true;
|
||||
_pkFont = pkFont;
|
||||
AddTable();
|
||||
AddHeader();
|
||||
AddHeader(doingTimeCriticalSummary); // F2022-024 pass flag when creating a Time Critical Action Summary report
|
||||
foreach (pkParagraph myContAct in myContActSteps)
|
||||
{
|
||||
if (myContAct.MyChildren.Count > 0)
|
||||
@@ -165,9 +165,12 @@ namespace Volian.Print.Library
|
||||
col.SetWidth(72 * .56F, LBWdRulerStyle.wdAdjustNone);
|
||||
_WordTbl.Rows.AllowBreakAcrossPages = 0;
|
||||
}
|
||||
private void AddHeader()
|
||||
private void AddHeader(bool doingTimeCriticalSummary)
|
||||
{
|
||||
WriteCell("START", true, true);
|
||||
if (doingTimeCriticalSummary) // F2022-024 Title for Time Critical Action Summary Report
|
||||
WriteCell("STEP TIME CRITICAL ACTION", true, true);
|
||||
else
|
||||
WriteCell("STEP CONTINUOUS ACTION", true, true);
|
||||
WriteCell("DONE", true, true);
|
||||
WriteCell("PAGE", true, false);
|
||||
|
Reference in New Issue
Block a user