C2024-003-print-sub-section
This commit is contained in:
parent
72457d956e
commit
9804cf0fce
@ -1607,6 +1607,7 @@ namespace Volian.Print.Library
|
|||||||
// if parent was continuous & this is separate, don't reset document style to subsection (next page) type
|
// if parent was continuous & this is separate, don't reset document style to subsection (next page) type
|
||||||
// this was putting incorrect pagelist item on parent section's page. This occurred in BGE/OI3 set/OI-7 procedure/10.0 Attachments.
|
// this was putting incorrect pagelist item on parent section's page. This occurred in BGE/OI3 set/OI-7 procedure/10.0 Attachments.
|
||||||
// B2017-273 added a check for Farley format, we don't want the subsection pagelist infor to appear on the parent section page - works with Paginate() logic - (section has steps and a sub-section ex: FNP-2-EEP-0 Attachment 4)
|
// B2017-273 added a check for Farley format, we don't want the subsection pagelist infor to appear on the parent section page - works with Paginate() logic - (section has steps and a sub-section ex: FNP-2-EEP-0 Attachment 4)
|
||||||
|
// C2024-003 fixed a null exception bug by changing MyParent.MyItemInfo to MyItemInfo.MyParent.
|
||||||
if (!MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.WCNTraining && !MyItemInfo.ActiveFormat.Name.ToUpper().StartsWith("FNP") && (MyItemInfo.MyParent as SectionInfo).IsSeparatePagination() || !(MyItemInfo as SectionInfo).IsSeparatePagination())
|
if (!MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.WCNTraining && !MyItemInfo.ActiveFormat.Name.ToUpper().StartsWith("FNP") && (MyItemInfo.MyParent as SectionInfo).IsSeparatePagination() || !(MyItemInfo as SectionInfo).IsSeparatePagination())
|
||||||
{
|
{
|
||||||
MyPageHelper.MySection = MyItemInfo as SectionInfo;
|
MyPageHelper.MySection = MyItemInfo as SectionInfo;
|
||||||
@ -2176,7 +2177,7 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
// get to the correct section for the message, i.e. if on a section, the message should be the parent
|
// get to the correct section for the message, i.e. if on a section, the message should be the parent
|
||||||
// section (not the activesection which is myself); if on a step, the message should be the active section
|
// section (not the activesection which is myself); if on a step, the message should be the active section
|
||||||
ItemInfo sectForCont = MyItemInfo.IsSection && MyItemInfo.MyParent.IsSection ? MyItemInfo.MyParent : MyItemInfo.ActiveSection;
|
ItemInfo sectForCont = MyItemInfo.IsSection && MyItemInfo.MyParent.IsSection ? MyItemInfo.MyParent : MyItemInfo.ActiveSection; //
|
||||||
sectContPara = new vlnParagraph(MyParent.MyParent, cb, sectForCont, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false, MyPromsPrinter);
|
sectContPara = new vlnParagraph(MyParent.MyParent, cb, sectForCont, MyParent.XOffset, 0, 0, 0, MyParent.MyItemInfo.ActiveFormat, null, (contMsg == null || contMsg == "") ? " (Continued)" : contMsg, 0, false, MyPromsPrinter);
|
||||||
if (sectContPara.PartsLeft.Count > 0)
|
if (sectContPara.PartsLeft.Count > 0)
|
||||||
{
|
{
|
||||||
@ -2835,13 +2836,13 @@ namespace Volian.Print.Library
|
|||||||
{
|
{
|
||||||
// Vogtle Alarms: Their alarms are set up differently than standard procedures - the HLS in Vogtle
|
// Vogtle Alarms: Their alarms are set up differently than standard procedures - the HLS in Vogtle
|
||||||
// alarms is a section in other procedures. The top continue message is shown when a break occurs:
|
// alarms is a section in other procedures. The top continue message is shown when a break occurs:
|
||||||
// A continued message will appear on the top of the page ONLY if the pagination occurs anywhere
|
// A continued message will appear on the top of the page ONLY if the pagination occurs anywhere
|
||||||
// within the first level substep. If, for example, the page break occurs between substep 3 and substep
|
// within the first level substep. If, for example, the page break occurs between substep 3 and substep
|
||||||
// 4 as in example 2, no continued message will appear on the top of the page.
|
// 4 as in example 2, no continued message will appear on the top of the page.
|
||||||
// If a continued message is needed, the continued message will include the first level substep number
|
// If a continued message is needed, the continued message will include the first level substep number
|
||||||
// if it is a sequential substep, such as 5. (continued). If it is NOT a sequential substep, then only
|
// if it is a sequential substep, such as 5. (continued). If it is NOT a sequential substep, then only
|
||||||
// the word (continued) will appear.
|
// the word (continued) will appear.
|
||||||
// If a page break occurs between high level steps, such as before Causes:, then no continued message is needed.
|
// If a page break occurs between high level steps, such as before Causes:, then no continued message is needed.
|
||||||
bool doMessage = true;
|
bool doMessage = true;
|
||||||
if (MyItemInfo.IsHigh) doMessage = false; // at high, don't do message
|
if (MyItemInfo.IsHigh) doMessage = false; // at high, don't do message
|
||||||
if (MyItemInfo.MyParent.IsHigh) doMessage = false; // at first level, don't do message
|
if (MyItemInfo.MyParent.IsHigh) doMessage = false; // at first level, don't do message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user