F2018-037: WCNSAMGBCK was printing extra section number for Purpose section and Attachment Section (see B2018-101)
This commit is contained in:
parent
ff2b4c5e85
commit
428cb772e5
@ -4132,11 +4132,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// B2018-101: The section number was duplicated in the WCNOC step tab. This was fixed for edit, B2017-153, but not for print (see below). The code
|
// B2018-101: The section number was duplicated in the WCNOC step tab. This was fixed for edit, B2017-153, but not for print (see below). The code
|
||||||
// used for that bug fix was duplicated here (with slight modification because the tab did not have the "WCNOC" string, thus using the active
|
// used for that bug fix was duplicated here (with slight modification because the tab did not have the "WCNOC" string, thus using the active
|
||||||
// formats, and also use tbformat rather than tbformate.
|
// formats, and also use tbformat rather than tbformate.
|
||||||
|
// F2018-037: An additional WCN background format was added for SAMG, so the code was made more general, i.e. to make tab
|
||||||
|
// change, check for formats that start with WCN and contain BCK:
|
||||||
if (useLinked)
|
if (useLinked)
|
||||||
{
|
{
|
||||||
if ((ActiveFormat.Name.ToUpper() == "WCNBCK" || ActiveFormat.Name.ToUpper() == "WCNFSGBCK" || ActiveFormat.Name.ToUpper() == "WCNOFBCK") && tbformat.Contains(LinkedTab[0].ToString() + "{numeric}"))
|
if (ActiveFormat.Name.ToUpper().StartsWith("WCN") && ActiveFormat.Name.ToUpper().Contains("BCK") && tbformat.Contains(LinkedTab[0].ToString() + "{numeric}"))
|
||||||
tbformat = tbformat.Replace(LinkedTab[0].ToString() + "{numeric}", "{numeric}");
|
tbformat = tbformat.Replace(LinkedTab[0].ToString() + "{numeric}", "{numeric}");
|
||||||
else if ((ActiveFormat.Name.ToUpper() == "WCNBCK" || ActiveFormat.Name.ToUpper() == "WCNFSGBCK" || ActiveFormat.Name.ToUpper() == "WCNOFBCK") && tbformat.Contains(LinkedTab[0].ToString() + ".{numeric}"))
|
else if ((ActiveFormat.Name.ToUpper().StartsWith("WCN") && ActiveFormat.Name.ToUpper().Contains("BCK")) && tbformat.Contains(LinkedTab[0].ToString() + ".{numeric}"))
|
||||||
tbformat = tbformat.Replace(LinkedTab[0].ToString() + ".{numeric}", "{numeric}");
|
tbformat = tbformat.Replace(LinkedTab[0].ToString() + ".{numeric}", "{numeric}");
|
||||||
tbformat = tbformat.Replace("{numeric}", LinkedTab.Trim(" .".ToCharArray()).PadLeft(2));
|
tbformat = tbformat.Replace("{numeric}", LinkedTab.Trim(" .".ToCharArray()).PadLeft(2));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user