Logic to include places where there are missing RO on the RO Usage Report. Added Check box to include missing ROs on the RO Usage Report
This commit is contained in:
@@ -194,6 +194,8 @@ namespace Volian.Controls.Library
|
||||
tabTransitionReports.Visible = false;
|
||||
cbxComplete.Enabled = false;
|
||||
cbxSummary.Enabled = true;
|
||||
cbxIncldMissingROs.Checked = true;
|
||||
cbxIncldMissingROs.Enabled = cbxROUsage.Checked;
|
||||
}
|
||||
|
||||
public void SelectReferencedObjectTab()
|
||||
@@ -256,6 +258,7 @@ namespace Volian.Controls.Library
|
||||
xpSetToReport.Enabled = cbxROUsage.Checked;
|
||||
xpSetToReport.Expanded = cbxROUsage.Checked;
|
||||
cmbxROUsageSort.Enabled = cbxROUsage.Checked;
|
||||
cbxIncldMissingROs.Enabled = cbxROUsage.Checked;
|
||||
xpSelROs.Enabled = true;
|
||||
xpSelROs.Expanded = true;
|
||||
EnableOrDisablePrintButton();
|
||||
@@ -266,6 +269,7 @@ namespace Volian.Controls.Library
|
||||
xpSetToReport.Enabled = cbxROUsage.Checked;
|
||||
xpSetToReport.Expanded = cbxROUsage.Checked;
|
||||
cmbxROUsageSort.Enabled = cbxROUsage.Checked;
|
||||
cbxIncldMissingROs.Enabled = cbxROUsage.Checked;
|
||||
// reset the RO tree and clear anything that was selected
|
||||
advTreeROFillIn(true);
|
||||
lstCheckedROs.Clear();
|
||||
@@ -730,6 +734,7 @@ namespace Volian.Controls.Library
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
private void DisplayReports_Load(object sender, EventArgs e)
|
||||
{
|
||||
tabTransitionReports.PerformClick();
|
||||
@@ -860,10 +865,10 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
Csla.SortedBindingList<ItemInfo> sortedResults = new Csla.SortedBindingList<ItemInfo>(SearchResults);
|
||||
sortedResults.ApplySort("FoundROID", ListSortDirection.Ascending);
|
||||
OnPrintRequest(new DisplayReportsEventArgs("Referenced Objects Usage By RO", "RO Usage", sortedResults, usageSortedByProcedure));
|
||||
OnPrintRequest(new DisplayReportsEventArgs("Referenced Objects Usage By RO", "RO Usage", sortedResults, usageSortedByProcedure,cbxIncldMissingROs.Checked));
|
||||
}
|
||||
else
|
||||
OnPrintRequest(new DisplayReportsEventArgs("Referenced Objects Usage By Procedure", "RO Usage", SearchResults, usageSortedByProcedure));
|
||||
OnPrintRequest(new DisplayReportsEventArgs("Referenced Objects Usage By Procedure", "RO Usage", SearchResults, usageSortedByProcedure,cbxIncldMissingROs.Checked));
|
||||
}
|
||||
else if (cbxTransFromProcs.Checked)
|
||||
{
|
||||
@@ -926,12 +931,22 @@ namespace Volian.Controls.Library
|
||||
get { return _ROListForReport; }
|
||||
set { _ROListForReport = value; }
|
||||
}
|
||||
public DisplayReportsEventArgs(string reportTitle, string typesSelected, ICollection<ItemInfo> myItemInfoList,/*ROFSTLookup rolkup,*/ bool sortByProcedure)
|
||||
private bool _IncludeMissingROs = true;
|
||||
|
||||
public bool IncludeMissingROs
|
||||
{
|
||||
get { return _IncludeMissingROs; }
|
||||
set { _IncludeMissingROs = value; }
|
||||
}
|
||||
public DisplayReportsEventArgs(string reportTitle, string typesSelected, ICollection<ItemInfo> myItemInfoList, bool sortByProcedure, bool includeMissingROs)
|
||||
{
|
||||
// RO Usage Report
|
||||
_ReportTitle = reportTitle;
|
||||
_TypesSelected = typesSelected;
|
||||
_MyItemInfoList = myItemInfoList;
|
||||
_SortUsageByProcedure = sortByProcedure;
|
||||
_IncludeMissingROs = includeMissingROs;
|
||||
|
||||
}
|
||||
public DisplayReportsEventArgs(string reportTitle, string typesSelected, string roDataFile, bool completeROReport)
|
||||
{
|
||||
@@ -942,6 +957,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public DisplayReportsEventArgs(string reportTitle, string typesSelected, ROFSTLookup rofstLookUp, List<string> roListForReport)
|
||||
{
|
||||
// RO Summary Report
|
||||
_ReportTitle = reportTitle;
|
||||
_TypesSelected = typesSelected;
|
||||
_rofstLookup = rofstLookUp;
|
||||
|
Reference in New Issue
Block a user