B2022-093 Added a message on the RO Usage Report when no RO usages are found.

This commit is contained in:
John Jenko 2022-09-01 14:25:13 +00:00
parent 59a5f20310
commit 9c6a4c93dc

View File

@ -1075,7 +1075,8 @@ namespace Volian.Print.Library
string lastProcNum = string.Empty; string lastProcNum = string.Empty;
string lastSection = string.Empty; string lastSection = string.Empty;
string lastDVPath = string.Empty; string lastDVPath = string.Empty;
if (_ResultList.Count > 0)
{
foreach (ItemInfo item in _ResultList) foreach (ItemInfo item in _ResultList)
{ {
bool differentProcSet = false; bool differentProcSet = false;
@ -1124,7 +1125,14 @@ namespace Volian.Print.Library
lastProcNum = curProcNum; lastProcNum = curProcNum;
lastSection = curSection; lastSection = curSection;
} }
}
else
{ // B2022-093 put out a message if no RO Usages were found
cell = new PdfPCell(new Phrase("No RO Usage Information Found", f3));
cell.HorizontalAlignment = Element.ALIGN_LEFT;
//cell.BackgroundColor = new Color(0xD0, 0xF0, 0xF0); // light blue
datatable.AddCell(cell);
}
PutROusageForProcedure(datatable, roUse, headerwidths); PutROusageForProcedure(datatable, roUse, headerwidths);
document.Add(datatable); document.Add(datatable);