B2020-140 Added a format variable to Wolf Creek to override the placement of text table cells to correct placement of checkboxes in table cells

This commit is contained in:
John Jenko 2020-10-09 19:44:40 +00:00
parent f972efc6a1
commit a0b6b8a8ce
2 changed files with 12 additions and 1 deletions

View File

@ -3600,6 +3600,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _SingleColumnRNOIndent, "@SingleColumnRNOIndent");
}
}
private LazyLoad<int?> _OverrideTableTopIndent;
public int? OverrideTableTopIndent
{
get
{
return LazyLoad(ref _OverrideTableTopIndent, "@OverrideTableTopIndent");
}
}
private LazyLoad<string> _ColRTable;
public string ColRTable
{

View File

@ -1027,8 +1027,11 @@ public string Path
// / Current (Post FLEX) - U1 NOP NOT [EOPs] - ES-3.3.SProcedure Body.S9..S1..S1..T1.
// Table did not print properly. Cell text was truncated.
int topPlacementAdjust = (myCell.MyPara.Font.Size == 12 &&
myCell.MyPara.Font.Familyname != "Courier New" &&
myCell.MyPara.Font.Familyname != "Courier New" &&
myCell.MyPara.Font.Familyname != "VESymbFix") ? 1 : 3; // for font size of 12 set to one, else set to 3
// B2020-140 for Wolf Creek check boxes in tables were printing too hight in the table cells - added format variable to overide topPlacementAdjust
if (myCell.MyPara !=null && ItemInfo.Get(myCell.MyTable.ItemID).ActiveFormat.MyStepSectionLayoutData.OverrideTableTopIndent != null)
topPlacementAdjust = (int)ItemInfo.Get(myCell.MyTable.ItemID).ActiveFormat.MyStepSectionLayoutData.OverrideTableTopIndent;
myCell.ToPdf(myColumnText, left, top, topPlacementAdjust);
}
}