F2016-061: Additional signoff types for VCBA & WST1 for SCANA’s maintenance department
This commit is contained in:
parent
41a135864f
commit
54765cea95
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||
{
|
||||
|
@ -3677,27 +3677,38 @@ namespace Volian.Print.Library
|
||||
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX;
|
||||
}
|
||||
}
|
||||
|
||||
// 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.
|
||||
// if xtraCheckOffLines is a positive number, start the checkoff xtraCheckOffLines - 1
|
||||
// down from the text and adjust the y-offset after the checkoff by the amount
|
||||
// of xtraCheckOffLines.
|
||||
float xtraCheckOffLines = (co.CheckOffXtraLines ?? 0);
|
||||
if (xtraCheckOffLines < 0)
|
||||
// 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)
|
||||
{
|
||||
xtraCheckOffLines = -xtraCheckOffLines;
|
||||
xtraCheckOffLines *= SixLinesPerInch;
|
||||
yForCheckoff += (2 * SixLinesPerInch);
|
||||
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff/* + xtraCheckOffLines */, co.Macro));
|
||||
yoff += xtraCheckOffLines;
|
||||
yoff += ((checkOffNumberOfLines *= SixLinesPerInch) + (2 * SixLinesPerInch));
|
||||
}
|
||||
else
|
||||
{
|
||||
xtraCheckOffLines *= SixLinesPerInch;
|
||||
xtraCheckOffLines -= ((xtraCheckOffLines>0)? SixLinesPerInch:0);
|
||||
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff + xtraCheckOffLines, co.Macro));
|
||||
yoff += (xtraCheckOffLines != 0) ? xtraCheckOffLines + SixLinesPerInch : 0;
|
||||
// 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.
|
||||
// if xtraCheckOffLines is a positive number, start the checkoff xtraCheckOffLines - 1
|
||||
// down from the text and adjust the y-offset after the checkoff by the amount
|
||||
// of xtraCheckOffLines.
|
||||
float xtraCheckOffLines = (co.CheckOffXtraLines ?? 0);
|
||||
if (xtraCheckOffLines < 0)
|
||||
{
|
||||
xtraCheckOffLines = -xtraCheckOffLines;
|
||||
xtraCheckOffLines *= SixLinesPerInch;
|
||||
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff/* + xtraCheckOffLines */, co.Macro));
|
||||
yoff += xtraCheckOffLines;
|
||||
}
|
||||
else
|
||||
{
|
||||
xtraCheckOffLines *= SixLinesPerInch;
|
||||
xtraCheckOffLines -= ((xtraCheckOffLines > 0) ? SixLinesPerInch : 0);
|
||||
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff + xtraCheckOffLines, co.Macro));
|
||||
yoff += (xtraCheckOffLines != 0) ? xtraCheckOffLines + SixLinesPerInch : 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user