B2013-018 - Needed to add logic to check if the DoRevDate RevDateWithForwardSlash flags are both false - in which case only use the Rev Number

This commit is contained in:
John Jenko 2013-02-05 14:45:48 +00:00
parent ca0d89faa9
commit 611cdce970

View File

@ -41,7 +41,16 @@ namespace VEPROMS
{
get
{
if (txbRevDate.Text == "")
// the RevDate and Rev number are stored in the procedure config separtly as strings
// we put these two strings to gether to pass into the Print module.
// the Rev Number followed by a forward slash or backslash logic is from the 16-bit code
// and is treated as just string.
// Therefore we need to build a revison number string with a revdate appended to it but only
// if either the DoRevDate or the RevDateWithForwardSlash is true. otherwise we should use
// only the RevNumber.
if (txbRevDate.Text == "" ||
(!MyProcedure.ActiveFormat.PlantFormat.FormatData.PrintData.RevDateWithForwardSlash &&
!MyProcedure.ActiveFormat.PlantFormat.FormatData.PrintData.DoRevDate))
return RevNum;
if (MyProcedure.ActiveFormat.PlantFormat.FormatData.PrintData.RevDateWithForwardSlash)
return RevNum + "\\" + RevDate;