F2016-061: Additional signoff types for VCBA & WST1 for SCANA’s maintenance department

This commit is contained in:
Kathy Ruffing 2017-01-24 16:00:06 +00:00
parent 41a135864f
commit 54765cea95
6 changed files with 35 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1646,6 +1646,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _CheckOffXtraLines, "@CheckOffXtraLines");
}
}
private LazyLoad<float?> _CheckOffNumberOfLines;
public float? CheckOffNumberOfLines
{
get
{
return LazyLoad(ref _CheckOffNumberOfLines, "@CheckOffNumberOfLines");
}
}
private LazyLoad<string> _MenuItem;
public string MenuItem
{

View File

@ -3677,7 +3677,17 @@ namespace Volian.Print.Library
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX;
}
}
// CheckOffXtraLines was introduced for the additional lines needed for the longer signoffs
// for VCBA (&WST1), for F2016-061.
float checkOffNumberOfLines = (co.CheckOffNumberOfLines ?? 0);
if (checkOffNumberOfLines > 0)
{
yForCheckoff += (2 * SixLinesPerInch);
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff/* + xtraCheckOffLines */, co.Macro));
yoff += ((checkOffNumberOfLines *= SixLinesPerInch) + (2 * SixLinesPerInch));
}
else
{
// if xtraCheckOffLines is a negative number, start the checkoff on the same line
// as text and adjust the y-offset after the checkoff by the amount of the absolute
// value of xtraCheckOffLines.
@ -3695,12 +3705,13 @@ namespace Volian.Print.Library
else
{
xtraCheckOffLines *= SixLinesPerInch;
xtraCheckOffLines -= ((xtraCheckOffLines>0)? SixLinesPerInch:0);
xtraCheckOffLines -= ((xtraCheckOffLines > 0) ? SixLinesPerInch : 0);
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff + xtraCheckOffLines, co.Macro));
yoff += (xtraCheckOffLines != 0) ? xtraCheckOffLines + SixLinesPerInch : 0;
}
}
}
}
// for WCNTRN, do the responsibility:
if (formatInfo.PlantFormat.FormatData.PrintData.WCNTraining) DoResponsibility(cb, YOffset);
float yOffRight = yoff;