示例#1
0
        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));
        }
示例#2
0
        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"));
        }
示例#3
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()));
        }
示例#4
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"));
        }
示例#5
0
        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));
        }
示例#6
0
        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"));
        }