Changed logic too support unlimited levels of alphabetical tabs.
Save current changes to a step before doing a restore. Only show expander if a step has children Added Westinghouse RO Copy logic to Context Menu for Grid.
This commit is contained in:
@@ -166,6 +166,12 @@ namespace VEPROMS.CSLA.Library
|
||||
Save();
|
||||
}
|
||||
}
|
||||
// RHM Moving Change
|
||||
//else
|
||||
//{
|
||||
// MyPrevious = null;
|
||||
// Save();
|
||||
//}
|
||||
// newPreviousInfo == null if moving into first child, and wasfirstchild == true if moving out of first child.
|
||||
// This will require adjusting the DocVersion to point to the correct first child if a procedure is moved.
|
||||
if (newPreviousInfo == null || wasfirstchild)
|
||||
@@ -2688,10 +2694,8 @@ namespace VEPROMS.CSLA.Library
|
||||
// 'bb', 'cc'. The Westinghouse work required this and 16bit was tested and it worked the
|
||||
// same way as the Westinghouse requirement. The original code to do 'aa', 'ab' was left here,
|
||||
// commented out, in case a future plant needs it and then should tie it to a format flag.
|
||||
// And Westinghouse had so many steps, added in to do 'aaa'
|
||||
if (number > 52) retval += Letter(1 + ((number - 1) % 52));
|
||||
if (number > 26) retval += Letter(1 + ((number - 1) % 26)); // Letter((number - 1) / 26);
|
||||
retval += Letter(1 + ((number - 1) % 26));
|
||||
// Changed logic to support unlimited cases ('aa','aaa','aaaa', etc.)
|
||||
retval = retval.PadRight(1 + ((number-1)/26), Letter(1 + ((number - 1) % 26))[0]);
|
||||
return retval;
|
||||
}
|
||||
private string Letter(int number)
|
||||
|
Reference in New Issue
Block a user