Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
        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"));
        }