C2024-003-print-sub-section
This commit is contained in:
@@ -180,7 +180,7 @@ namespace Volian.Print.Library
|
||||
set { _PDFFile = value; }
|
||||
}
|
||||
// C2024-003 parameter contains parent section itemid, child section itemid, issubsection flag.
|
||||
// C2024-003 values needed to print section.
|
||||
// C2024-003 values needed to print individual sections.
|
||||
private int[] _prtSectID = new int[] { -1, -1, 0 };
|
||||
public int[] PrtSectID
|
||||
{
|
||||
@@ -814,11 +814,11 @@ namespace Volian.Print.Library
|
||||
{
|
||||
if (si2.ItemID == PrtSectID[0])
|
||||
{
|
||||
foreach (SectionInfo subsi in si2.Sections)
|
||||
foreach (SectionInfo subsi in si2.Sections) // Find Parent Section
|
||||
{
|
||||
if (subsi.ItemID == PrtSectID[1])
|
||||
if (subsi.ItemID == PrtSectID[1]) // Find sub section
|
||||
{
|
||||
CurSection = subsi;
|
||||
CurSection = subsi; // Assign the subsection object to CurSection.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -981,15 +981,15 @@ namespace Volian.Print.Library
|
||||
SectionInfo CurSection = null; // C2024-003 detrimine if the user is printing a sub section.1639
|
||||
if (Convert.ToBoolean(PrtSectID[2]))
|
||||
{
|
||||
foreach (SectionInfo si2 in myProcedure.Sections)
|
||||
foreach (SectionInfo si2 in myProcedure.Sections) // Find parent section.
|
||||
{
|
||||
if (si2.ItemID == PrtSectID[0])
|
||||
if (si2.ItemID == PrtSectID[0])
|
||||
{
|
||||
foreach (SectionInfo subsi in si2.Sections)
|
||||
foreach (SectionInfo subsi in si2.Sections) // Find selected sub section.
|
||||
{
|
||||
if (subsi.ItemID == PrtSectID[1])
|
||||
{
|
||||
CurSection = subsi;
|
||||
CurSection = subsi; // Assign sub section object to CurSection.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1635,15 +1635,15 @@ namespace Volian.Print.Library
|
||||
SectionInfo CurSection = null; // C2024-003 detrimine determine if the user in printing a sub section.
|
||||
if (Convert.ToBoolean(PrtSectID[2]))
|
||||
{
|
||||
foreach (SectionInfo si2 in ii.Sections)
|
||||
foreach (SectionInfo si2 in ii.Sections) // Find parent section.
|
||||
{
|
||||
if (si2.ItemID == PrtSectID[0])
|
||||
{
|
||||
foreach (SectionInfo subsi in si2.Sections)
|
||||
foreach (SectionInfo subsi in si2.Sections) // Find sub section.
|
||||
{
|
||||
if (subsi.ItemID == PrtSectID[1])
|
||||
{
|
||||
CurSection = subsi;
|
||||
CurSection = subsi; // Assigned sub section object to CurSection.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3018,15 +3018,15 @@ namespace Volian.Print.Library
|
||||
SectionInfo CurSection = null;
|
||||
if (Convert.ToBoolean(MyPromsPrinter.PrtSectID[2])) // C2024-003 determine if the user is printing a sub section. If so assign it to CurSection.
|
||||
{
|
||||
foreach (SectionInfo si2 in ii.Sections)
|
||||
foreach (SectionInfo si2 in ii.Sections) // Find parent section
|
||||
{
|
||||
if (si2.ItemID == MyPromsPrinter.PrtSectID[0])
|
||||
{
|
||||
foreach (SectionInfo subsi in si2.Sections)
|
||||
foreach (SectionInfo subsi in si2.Sections) // Find sub section.
|
||||
{
|
||||
if (subsi.ItemID == MyPromsPrinter.PrtSectID[1])
|
||||
{
|
||||
CurSection = subsi;
|
||||
CurSection = subsi; // Assign sub section object to CurSection.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user