public ContentResult PrintBalanceHtml(int id, int month) { var consortium = ConsortiumService.GetConsortium(id); var balances = ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var balanceDocument = ConsortiumBalanceService.GetBalance(consortium, balances, month); return(Content("<style>" + balanceDocument.HtmlBalanceStyles + "</style>\n" + balanceDocument.HtmlBalance)); }
public FileResult PrintBalancePDF(int id, int month) { var consortium = ConsortiumService.GetConsortium(id); var balances = ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var balanceDocument = ConsortiumBalanceService.GetBalance(consortium, balances, month); return(File(ConsortiumBalanceService.GetPDFBalance(balanceDocument), "application/pdf")); }
public ContentResult PrintPaymentTicketsHtml(int id, int month) { var consortium = ConsortiumService.GetConsortium(id); var tickets = ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var paymentTickets = Mapper.Map <IList <PaymentTicket> >(tickets); return(Content(PaymentTicketService.GetTickets(consortium, paymentTickets, month).HtmlTickets.ToString())); }
public FileResult PrintPaymentTicketsPDF(int id, int month) { var consortium = ConsortiumService.GetConsortium(id); var tickets = ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var paymentTickets = Mapper.Map <IList <PaymentTicket> >(tickets); var htmlTickets = PaymentTicketService.GetTickets(consortium, paymentTickets, month); return(File(PaymentTicketService.GetPDFTickets(htmlTickets), "application/pdf")); }
public ContentResult PrintExpensesHtml(int id, int month) { DateTime now = DateTime.Now; var startDate = new DateTime(now.Year, month, 1); var endDate = startDate.AddMonths(1).AddDays(-1); var spendsList = SpendService.GetByConsortiumId(id, startDate, endDate); var unitsReport = this.ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var consortium = ConsortiumService.GetConsortium(id); var expensesHtml = ExpensesBillService.GetExpensesBill(consortium, spendsList, unitsReport, month); return(Content("<style>" + expensesHtml.HtmlExpensesStyles + "</style>\n" + expensesHtml.HtmlExpenses)); }
public FileResult PrintExpensesPDF(int id, int month) { DateTime now = DateTime.Now; var startDate = new DateTime(now.Year, month, 1); var endDate = startDate.AddMonths(1).AddDays(-1); var spendsList = SpendService.GetByConsortiumId(id, startDate, endDate); var unitsReport = this.ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var consortium = ConsortiumService.GetConsortium(id); var expensesHtml = ExpensesBillService.GetExpensesBill(consortium, spendsList, unitsReport, month); return(File(ExpensesBillService.GetPDFTickets(expensesHtml), "application/pdf")); }