Logic to include places where there are missing RO on the RO Usage Report.
This commit is contained in:
parent
2363d304aa
commit
e1945e3c41
@ -722,7 +722,7 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
if (args.TypesSelected == "RO Usage")
|
if (args.TypesSelected == "RO Usage")
|
||||||
{
|
{
|
||||||
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.MyItemInfoList, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\ROUsageReport.pdf", args.SortUsageByProcedure);
|
Volian.Print.Library.PDFReport myReport = new Volian.Print.Library.PDFReport(args.ReportTitle, args.MyItemInfoList, Volian.Base.Library.VlnSettings.TemporaryFolder + @"\ROUsageReport.pdf", args.SortUsageByProcedure,args.IncludeMissingROs);
|
||||||
myReport.Build();
|
myReport.Build();
|
||||||
}
|
}
|
||||||
else if (args.TypesSelected == "Complete RO Report")
|
else if (args.TypesSelected == "Complete RO Report")
|
||||||
|
@ -472,25 +472,31 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// Return the RO Title in a list of strings
|
// Return the RO Title in a list of strings
|
||||||
// The last item in the list is the actual RO title, the items preceding it are the
|
// The last item in the list is the actual RO title, the items preceding it are the
|
||||||
// titles of the groups and sub-groups containing the RO
|
// titles of the groups and sub-groups containing the RO
|
||||||
public List<string> GetROTitleAndGroupPath(string ROID)
|
public List<string> GetROTitleAndGroupPath(string ROID, bool reportMissingROs)
|
||||||
{
|
{
|
||||||
List<string> titlePath = new List<string>();
|
List<string> titlePath = new List<string>();
|
||||||
rochild roc = GetRoChild12(ROID);
|
rochild roc = GetRoChild12(ROID);
|
||||||
string tmp = roc.title;
|
if (roc.appid != null)
|
||||||
if (roc.appid != "")
|
|
||||||
if (roc.title.Contains(roc.appid))
|
|
||||||
tmp = roc.title.Replace(roc.appid, string.Format("<{0}>", roc.appid)).Trim();
|
|
||||||
else
|
|
||||||
tmp = string.Format("[{0}] {1}", roc.appid, roc.title);
|
|
||||||
titlePath.Add(tmp);
|
|
||||||
do
|
|
||||||
{
|
{
|
||||||
string parent = ROID.Substring(0, 4) + string.Format("{0:X8}", roc.ParentID);
|
string tmp = roc.title;
|
||||||
roc = GetRoChild12(parent);
|
if (roc.appid != "")
|
||||||
if (roc.ID > 0)
|
if (roc.title.Contains(roc.appid))
|
||||||
titlePath.Add(roc.title);
|
tmp = roc.title.Replace(roc.appid, string.Format("<{0}>", roc.appid)).Trim();
|
||||||
} while (roc.ID > 0);
|
else
|
||||||
titlePath.Reverse();
|
tmp = string.Format("[{0}] {1}", roc.appid, roc.title);
|
||||||
|
titlePath.Add(tmp);
|
||||||
|
do
|
||||||
|
{
|
||||||
|
string parent = ROID.Substring(0, 4) + string.Format("{0:X8}", roc.ParentID);
|
||||||
|
roc = GetRoChild12(parent);
|
||||||
|
if (roc.ID > 0)
|
||||||
|
titlePath.Add(roc.title);
|
||||||
|
} while (roc.ID > 0);
|
||||||
|
titlePath.Reverse();
|
||||||
|
}
|
||||||
|
else if (reportMissingROs) // Missing RO, put a message with the ROID on the report...
|
||||||
|
titlePath.Add(string.Format("Missing RO for ROID {0}", ROID));
|
||||||
|
|
||||||
return titlePath;
|
return titlePath;
|
||||||
}
|
}
|
||||||
public List<string> GetROTitleAndGroupPathForSummary(string ROID)
|
public List<string> GetROTitleAndGroupPathForSummary(string ROID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user