F2017-036: For VCB: Additional Proprietary statement

This commit is contained in:
2017-07-26 13:18:01 +00:00
parent cb54fd2fe3
commit acec23a280
2 changed files with 81 additions and 0 deletions

View File

@@ -1309,7 +1309,23 @@ namespace Volian.Print.Library
string val = procConfig.GetValue("PSI", pstok);
int bindx = token.IndexOf("|", indx);
if (val == "Y")
{
val = token.Substring(qindx + 1, bindx - qindx - 1);
// F2017-036: see if there is a RelatedItem in this page item. RelatedItem allows for repositioning
// this current item if both items are set to be printed from the Procedure Specific Information. If both are printed
// the location of this item is defined in the RelatedItem xml.
if (pageItem.RelatedItem.Token != null)
{
// see if the related item is on this page also, if so, use the new row/col/justify:
string reltoken = pageItem.RelatedItem.Token;
string relval = procConfig.GetValue("PSI", reltoken);
if (relval == "Y")
{
svgGroup.Add(PageItemToSvgText(pageItem.Token, (float)pageItem.RelatedItem.Row, (float)pageItem.RelatedItem.Col, pageItem.RelatedItem.Justify ?? VEPROMS.CSLA.Library.E_Justify.PSLeft, pageItem.Font, val, MySection));
plstr = ""; // Clear it so it isn't put out twice (used below)
}
}
}
else
{
int eindx = token.IndexOf("}", bindx);