//private IConverter _converter;


        public TrialbalanceReportController(ITrialbalanceReportService services, IGeneratePdf generatePdf, IFundTypeCodeService fundService, IAccountHistoryService accountHistoryService)
        {
            this.services              = services;
            this.generatePdf           = generatePdf;
            this.fundService           = fundService;
            this.accountHistoryService = accountHistoryService;
        }
 public ClaimRegisterController(ILedgerService ledgerService, IClaimRegisterService claimRegisterService, IGeneratePdf generatePdf, IUnitOfWork unitofWork)
 {
     this.ledgerService        = ledgerService;
     this.claimRegisterService = claimRegisterService;
     this.generatePdf          = generatePdf;
     this.unitofWork           = unitofWork;
 }
예제 #3
0
 public StudentController(IUnitOfWork unitOfWork, IUserService userService, IGeneratePdf generatePdf, IStudentService studentService)
 {
     this.unitOfWork     = unitOfWork;
     this.userService    = userService;
     this.generatePdf    = generatePdf;
     this.studentService = studentService;
 }
 public LoanRegisterController(ILoanRegisterService loanRegisterService, IGeneratePdf generatePdf, IConfiguration configuration, IUnitOfWork unitofWork, INavyAccountDbContext context)
 {
     this.unitofWork          = unitofWork;
     this.context             = context;
     this.loanRegisterService = loanRegisterService;
     this.generatePdf         = generatePdf;
     _connectionstring        = configuration.GetConnectionString("DefaultConnection");
 }
 public NavipsController(IUnitOfWork unitofwork, IPersonService personService, INavipService navipservice, IGeneratePdf generatePdf, INavyAccountDbContext context)
 {
     this.personService = personService;
     this.navipservice  = navipservice;
     this.generatePdf   = generatePdf;
     this.context       = context;
     this.unitofwork    = unitofwork;
 }
예제 #6
0
 public WkPdfService(IGeneratePdf generatePdf, IViewRenderService viewRenderService, IDownloadService downloadService,
                     ILanguageService languageService)
 {
     _generatePdf       = generatePdf;
     _viewRenderService = viewRenderService;
     _downloadService   = downloadService;
     _languageService   = languageService;
 }
 public ClaimRegisterController(IUnitOfWork unitofWork, IClaimRegisterService services, ILedgerService ledgerService, IConfiguration configuration, IGeneratePdf generatePdf)
 {
     this.services      = services;
     this.ledgerService = ledgerService;
     this.unitofWork    = unitofWork;
     this.generatePdf   = generatePdf;
     _connectionstring  = configuration.GetConnectionString("DefaultConnection");
 }
예제 #8
0
 public WkPdfService(IGeneratePdf generatePdf, IViewRenderService viewRenderService, IRepository <Download> downloadRepository,
                     ILanguageService languageService)
 {
     _generatePdf        = generatePdf;
     _viewRenderService  = viewRenderService;
     _languageService    = languageService;
     _downloadRepository = downloadRepository;
 }
 public ContrDiscController(IFundTypeService fundTypeService, IUnitOfWork unitofWork, INavyAccountDbContext context, IConfiguration configuration, IContrService contrService, IGeneratePdf generatePdf)
 {
     _connectionstring    = configuration.GetConnectionString("DefaultConnection");
     this.unitofWork      = unitofWork;
     this.context         = context;
     this.contrService    = contrService;
     this.generatePdf     = generatePdf;
     this.fundTypeService = fundTypeService;
 }
예제 #10
0
 public WkPdfService(IGeneratePdf generatePdf, IViewRenderService viewRenderService, IRepository <Download> downloadRepository,
                     ILanguageService languageService, IDatabaseContext dbContext)
 {
     _generatePdf        = generatePdf;
     _viewRenderService  = viewRenderService;
     _languageService    = languageService;
     _downloadRepository = downloadRepository;
     _dbContext          = dbContext;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportGeneratorsProvider"/> class.
 /// </summary>
 /// <param name="pdfEngine">pdf engine</param>
 public ReportGeneratorsProvider(IGeneratePdf pdfEngine)
 {
     generators = new List <IReportBodyGenerator>()
     {
         new HtmlGenerator(),
         new PdfGenerator(pdfEngine),
         new TxtGenerator(),
         new JsonGenerator(),
     };
 }
예제 #12
0
 public UsersController(IUserRepository repository, IMapper mapper,
                        IPhotoService photoService,
                        IConfiguration config, IGeneratePdf generatePdf)
 {
     _generatePdf  = generatePdf;
     _config       = config;
     _photoService = photoService;
     _mapper       = mapper;
     _repository   = repository;
 }
예제 #13
0
 public ClaimTypeController(ILedgerService ledgerService, IConfiguration configuration,
                            IFundTypeService fundTypeService, IClaimRegisterService claimRegisterService,
                            IGeneratePdf generatePdf, IFundTypeCodeService fundService,
                            IClaimTypeServices claimTypeService, IUnitOfWork unitOfWork,
                            IChartofAccountService chartofAccountService, INavipService navipservice)
 {
     this.claimRegisterService  = claimRegisterService;
     this.ledgerService         = ledgerService;
     this.generatePdf           = generatePdf;
     this.fundService           = fundService;
     this.claimTypeService      = claimTypeService;
     this.fundTypeService       = fundTypeService;
     this.unitOfWork            = unitOfWork;
     this.chartofAccountService = chartofAccountService;
     this.navipservice          = navipservice;
     _connectionstring          = configuration.GetConnectionString("DefaultConnection");
 }
예제 #14
0
 public PdfDownloadModel(IGeneratePdf generatePdf)
 {
     this.generatePdf = generatePdf;
 }
예제 #15
0
 public PDFController(IConfiguration configuration, ILoggerFactory loggerFactory, IGeneratePdf generatePdf)
 {
     _generatePdf  = generatePdf;
     Configuration = configuration;
     _logger       = loggerFactory.CreateLogger(typeof(PDFController));
 }
 public LoanPerRankController(ILoanPerRankService services, ILoanTypeService fundService, IGeneratePdf generatePdf)
 {
     this.services    = services;
     this.fundService = fundService;
     this.generatePdf = generatePdf;
 }
예제 #17
0
 public BuggyController(DataContext context, IConfiguration config, IGeneratePdf generatePdf)
 {
     _generatePdf = generatePdf;
     _context     = context;
     _config      = config;
 }
예제 #18
0
 public OrderController(ShopContext context, IGeneratePdf generatePdf)
 {
     _context     = context;
     _generatePdf = generatePdf;
 }
예제 #19
0
        public static string GeneratePdf(Inspection inspection, ReportOptionsModel model = null)
        {
            if (model == null)
            {
                model = new ReportOptionsModel();
            }
            IGeneratePdf pdfMaker        = DependencyService.Get <IGeneratePdf>();
            string       fileName        = pdfMaker.Initialize(inspection);
            int          numCommentPages = 0;

            //draw comment pages
            if (model.Comments)
            {
                foreach (Comment comment in inspection.comments)
                {
                    numCommentPages++;
                    pdfMaker.CreateCommentPage(comment);
                    if (comment != inspection.comments.Last())
                    {
                        pdfMaker.NewPage();
                    }
                }
            }
            //draw question listing
            List <ReportSection> reportSections = PrepareInspectionForScoring(inspection);

            if (model.Questions)
            {
                pdfMaker.NewPageIfNotEmpty();
                foreach (ReportSection section in reportSections)
                {
                    if (model.ScoredSectionsOnly && section.section.availablePoints == 0)
                    {
                        continue;
                    }
                    pdfMaker.CreateQuestionSection(section);
                    if (section != reportSections.Last())
                    {
                        pdfMaker.NewPage();
                    }
                }
            }

            //draw section totals
            if (model.Totals)
            {
                pdfMaker.NewPageIfNotEmpty();
                pdfMaker.CreateSectionTotals();
            }

            //draw checklist structure
            if (model.Structure)
            {
                pdfMaker.NewPageIfNotEmpty();
                pdfMaker.CreateStructure();
            }

            //draw scoresheet
            if (model.ScoreSheet)
            {
                pdfMaker.NewPageIfNotEmpty();
                pdfMaker.CreateScoreSheet();
            }

            //draw scores graph
            if (model.GraphSheet)
            {
                pdfMaker.NewPageIfNotEmpty();
                pdfMaker.CreateScoreGraph();
            }
            pdfMaker.Finish();
            pdfMaker.StampFooter(numCommentPages);

            return(fileName);
        }
예제 #20
0
 public InvestRegisterMvcController(IInvestmentRegisterServices services, IGeneratePdf generatePdf)
 {
     this.services    = services;
     this.generatePdf = generatePdf;
 }
 public TestViewsController(IGeneratePdf generatePdf)
 {
     _generatePdf = generatePdf;
 }
예제 #22
0
 public PdfService(IGeneratePdf generatePdf)
 {
     _generatePdf = generatePdf;
 }
예제 #23
0
파일: PdfService.cs 프로젝트: jarmatys/CMS
 public PdfService(IGeneratePdf generatePdf)
 {
     _generatePdf     = generatePdf;
     _pathToTemplates = "~/Templates/Pdf";
 }
 public NpfContributionController(IContributionServices services, IFundTypeService fundService, IGeneratePdf generatePdf)
 {
     this.services    = services;
     this.fundService = fundService;
     this.generatePdf = generatePdf;
 }
 public LoanRepaymentController(ILoanScheduleservices services, IGeneratePdf generatePdf)
 {
     this.services    = services;
     this.generatePdf = generatePdf;
 }
예제 #26
0
 public ResultController(ApplicationDbContext context, IGeneratePdf generatePdf)
 {
     _generatePdf = generatePdf;
     _context     = context;
 }
예제 #27
0
 public GdgphController(ILogger <GdgphController> logger, IGeneratePdf generatePdf)
 {
     _logger      = logger;
     _generatePdf = generatePdf;
 }
 public BalanceSheetController(IBalanceSheetService balanceSheetService, IGeneratePdf generatePdf)
 {
     this.balanceSheetService = balanceSheetService;
     this.generatePdf         = generatePdf;
 }
 public LoanTypeController(ILoanTypeService loantypeService, IGeneratePdf generatePdf)
 {
     this.loantypeService = loantypeService;
     this.generatePdf     = generatePdf;
 }
예제 #30
0
 public SuplusReportController(IFundTypeCodeService fundService, ISurplusService service, IGeneratePdf generatePdf)
 {
     this.fundService = fundService;
     this.service     = service;
     this.generatePdf = generatePdf;
 }