public void PrintMember(string Document) { var report = new ShowDuesDao(); var result = report.DuesMember(Document); ReportShowMember = new List <ReportShowMember>(); foreach (System.Data.DataRow rows in result.Rows) { var ShowMember = new ReportShowMember() { //Document,Name,LastName Document = Convert.ToString(rows[0]), Name = Convert.ToString(rows[1]), LastName = Convert.ToString(rows[2]) }; ReportShowMember.Add(ShowMember); } }
//Metodos Reporte public void PrintDues(string Document) { var report = new ShowDuesDao(); var result = report.PrintDues(Document); ReportShowDues = new List <ReportShowDues>(); foreach (System.Data.DataRow rows in result.Rows) { var ShowDues = new ReportShowDues() { //DueDate,LoanAmount,InterestRate,DueNumber,DueValue,Pay,Status DueDate = Convert.ToDateTime(rows[0]), LoanAmount = Convert.ToDecimal(rows[1]), InterestRate = Convert.ToInt32(rows[2]), DueNumber = Convert.ToInt32(rows[3]), DueValue = Convert.ToDecimal(rows[4]), Pay = Convert.ToString(rows[5]), Status = Convert.ToString(rows[6]) }; ReportShowDues.Add(ShowDues); } }