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"); return LazyLoad(ref _CheckOffXtraLines, "@CheckOffXtraLines");
} }
} }
private LazyLoad<float?> _CheckOffNumberOfLines;
public float? CheckOffNumberOfLines
{
get
{
return LazyLoad(ref _CheckOffNumberOfLines, "@CheckOffNumberOfLines");
}
}
private LazyLoad<string> _MenuItem; private LazyLoad<string> _MenuItem;
public string MenuItem public string MenuItem
{ {

View File

@ -3677,7 +3677,17 @@ namespace Volian.Print.Library
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX; 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 // 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 // as text and adjust the y-offset after the checkoff by the amount of the absolute
// value of xtraCheckOffLines. // value of xtraCheckOffLines.
@ -3701,6 +3711,7 @@ namespace Volian.Print.Library
} }
} }
} }
}
// for WCNTRN, do the responsibility: // for WCNTRN, do the responsibility:
if (formatInfo.PlantFormat.FormatData.PrintData.WCNTraining) DoResponsibility(cb, YOffset); if (formatInfo.PlantFormat.FormatData.PrintData.WCNTraining) DoResponsibility(cb, YOffset);
float yOffRight = yoff; float yOffRight = yoff;