using System.Collections.Generic;
static DBReporting resultset = new DBReporting();
public string FormType { get; set; }
public DateTime DateRun{ get; set; }
public string InvoiceNumber { get; set; }
public int InvoiceNumberMatch { get; set; }
public int EightaMatch { get; set; }
public int EightbMatch { get; set; }
public int PatAddressMatch { get; set; }
public int PatCityMatch { get; set; }
public int PatStateMatch { get; set; }
public int PatZipMatch { get; set; }
public int PatAcciStateMatch { get; set; }
public int CarrierNameMatch { get; set; }
public int CarrierAddrMatch { get; set; }
public int CarrierCityStateZipMatch { get; set; }
public int TotalAmountMatch { get; set; }
public int PrintSavingsYN { get; set; }
public int PrintNormalMatch { get; set; }
public int PrintOCCMMatch { get; set; }
public int PrintSavingsMatch { get; set; }
public int Item1DescMatch { get; set; }
public int Item1HCPCSMatch { get; set; }
public int Item1ServDateMatch { get; set; }
public int Item1TotalChargeMatch { get; set; }
public int Item2DescMatch { get; set; }
public int Item2HCPCSMatch { get; set; }
public int Item2ServDateMatch { get; set; }
public int Item2TotalChargeMatch { get; set; }
public int Item3DescMatch { get; set; }
public int Item3HCPCSMatch { get; set; }
public int Item3ServDateMatch { get; set; }
public int Item3TotalChargeMatch { get; set; }
public int Item4DescMatch { get; set; }
public int Item4HCPCSMatch { get; set; }
public int Item4ServDateMatch { get; set; }
public int Item4TotalChargeMatch { get; set; }
public int Item5DescMatch { get; set; }
public int Item5HCPCSMatch { get; set; }
public int Item5ServDateMatch { get; set; }
public int Item5TotalChargeMatch { get; set; }
public int Item6DescMatch { get; set; }
public int Item6HCPCSMatch { get; set; }
public int Item6ServDateMatch { get; set; }
public int Item6TotalChargeMatch { get; set; }
public int Item7DescMatch { get; set; }
public int Item7HCPCSMatch { get; set; }
public int Item7ServDateMatch { get; set; }
public int Item7TotalChargeMatch { get; set; }
public int Item8DescMatch { get; set; }
public int Item8HCPCSMatch { get; set; }
public int Item8ServDateMatch { get; set; }
public int Item8TotalChargeMatch { get; set; }
public int Item9DescMatch { get; set; }
public int Item9HCPCSMatch { get; set; }
public int Item9ServDateMatch { get; set; }
public int Item9TotalChargeMatch { get; set; }
public int Item10DescMatch { get; set; }
public int Item10HCPCSMatch { get; set; }
public int Item10ServDateMatch { get; set; }
public int Item10TotalChargeMatch { get; set; }
var _ub04Patientpdf = new UB04PDFData();
var _ub04Itemlist1Pdf = new UB04ItemPDFData();
var _ub04Patientdb = new UB04PatientDBData();
for (var _i = _ub04Patientdb.GetItemCount(); _i > 0; _i--)
List<object> itemObjects = new List<object>();
itemObjects.AddRange(resultset.GetType().GetProperties().Where(x => x.Name.Contains("Item"+_i)));
itemobjects[0] = AppFunLibrary.Compare(
"Item " + _i + " Description", _ub04Itemlist1Pdf.GetActual("Item " + _i + " Description"),
"Item " + _i + " Description", _ub04Patientdb.GetValue("Item " + _i + " Description")) ? 1 : 0;
"Item " + _i + " HCPCS", _ub04Itemlist1Pdf.GetActual("Item " + _i + " HCPCS"),
"Item " + _i + " HCPCS", _ub04Patientdb.GetValue("Item " + _i + " HCPCS"));
"Item " + _i + " Serv Date", _ub04Itemlist1Pdf.GetActual("Item " + _i + " Serv Date"),
"Item " + _i + " ServDate", _ub04Patientdb.GetValue("Item " + _i + " ServDate"));
"Item " + _i + " Total Charge", _ub04Itemlist1Pdf.GetActual("Item " + _i + " Total Charge"),
"Item " + _i + " Total Charge", string.Format("{0:n}",_ub04Patientdb.GetValue("Item " + _i + " Total Charge")));