public EmployeesController(IEmployeeService employeeService, ImageService imageService, IExcelExporter employeeExporter, ITrainingService trainingService)
 {
     _employeeService  = employeeService;
     _imageService     = imageService;
     _employeeExporter = employeeExporter;
     _trainingService  = trainingService;
 }
예제 #2
0
        /// <summary>
        /// Exports the data supplied to an excel workbook
        /// </summary>
        /// <param name="rowData">The data to be exported to the workbook</param>
        /// <param name="formatter"></param>
        public void WriteDataToExport(IEnumerable<IEnumerable<Cell>> rowData, CellFormatter formatter, ExcelFileType excelFileType)
        {
            if (excelFileType == ExcelFileType.XLS)
            {
                ExcelExporter = new ExcelXlsExporter();
            }

            ExcelExporter.WriteDataToExport(rowData, formatter, "Sheet 1");
        }
예제 #3
0
        /// <summary>
        /// Exports the data supplied to an excel workbook
        /// </summary>
        /// <param name="rowData">The data to be exported to the workbook</param>
        /// <param name="formatter"></param>
        public void WriteDataToExport(IEnumerable <IEnumerable <Cell> > rowData, CellFormatter formatter, ExcelFileType excelFileType)
        {
            if (excelFileType == ExcelFileType.XLS)
            {
                ExcelExporter = new ExcelXlsExporter();
            }

            ExcelExporter.WriteDataToExport(rowData, formatter, "Sheet 1");
        }
예제 #4
0
        public FileContentResult ListExcel(IDbConnection connection, ListRequest request,
                                           [FromServices] IExcelExporter exporter)
        {
            var data  = List(connection, request).Entities;
            var bytes = exporter.Export(data, typeof(Columns.ProductColumns), request.ExportColumns);

            return(ExcelContentResult.Create(bytes, "ProductList_" +
                                             DateTime.Now.ToString("yyyyMMdd_HHmmss", CultureInfo.InvariantCulture) + ".xlsx"));
        }
예제 #5
0
 public ExcelIEService(IDbService dbService, IExcelIEDomainService excelIEDomainService, ICapPublisher capPublisher, IRedisOperation redis, IExcelExporter IExcelExporter, IOss oss, ILogger <ExcelIEService> logger)
 {
     _dbService            = dbService;
     _excelIEDomainService = excelIEDomainService;
     _capPublisher         = capPublisher;
     _redis          = redis;
     _iExcelExporter = IExcelExporter;
     _oss            = oss;
     _logger         = logger;
 }
예제 #6
0
 public PcoEnderecoController(IVisitaEnderecoPcoRepository visitaEnderecoPcoRepository,
                              ILotePcoRepository lotePcoRepository, BDNVTContext context, IExcelExporter exporter,
                              IPijamaGasNaturalPymeRepository pijamaGasNaturalPymeRepository, IZonaRepository zonaRepository)
 {
     _visitaEnderecoPcoRepository = visitaEnderecoPcoRepository;
     _lotePcoRepository           = lotePcoRepository;
     _context  = context;
     _exporter = exporter;
     this.pijamaGasNaturalPymeRepository = pijamaGasNaturalPymeRepository;
     this.zonaRepository = zonaRepository;
 }
 public LotePorClienteController(BDNVTContext context, IHostingEnvironment he,
                                 IAreaRepository areaRepository, ILoteRepository loteRepository,
                                 ICondominioLoteAtivo condominioRepository, IMotivoRejeicao motivoRejeicaoRepository,
                                 IExcelExporter exportaExcelLotePorCliente)
 {
     _context                    = context;
     _hostingEnvironment         = he;
     _areaRepository             = areaRepository;
     _loteRepository             = loteRepository;
     _condominioRepository       = condominioRepository;
     _motivoRejeicaoRepository   = motivoRejeicaoRepository;
     _exportaExcelLotePorCliente = exportaExcelLotePorCliente;
 }
예제 #8
0
 public PaymentManager(
     IWebHostEnvironment env,
     IAppFolders appFolders,
     IObjectMapper objectMapper,
     ILocalizationManager localizationManager,
     IExcelExporter excelExporter,
     RoleManager roleManager,
     UserManager userManager,
     TenantManager tenantManager,
     AccountingManager accountingManager)
     : base(env, appFolders, objectMapper, roleManager, userManager, tenantManager, excelExporter, localizationManager)
 {
     try
     {
         #region Declaration
         _accountingManager = accountingManager;
         #endregion
     }
     catch (Exception ex)
     {
         Log.Error(nameof(PaymentManager), ex);
     }
 }
예제 #9
0
        public PaymentController(
            IRepository <Role> roleRepository,
            IAppNotifier appNotifier,
            IRealTimeCommunicator realtimeService,
            IPlexformNotifier plexformNotifier,
            ICoreEmailer plexformEmailer,
            IWebHostEnvironment env,
            IAppFolders appFolders,
            IObjectMapper objectMapper,
            ILocalizationManager localizationManager,
            IExcelExporter excelExporter,
            BizUserManager bizUser,
            UserManager userManager,
            TenantManager tenantManager,
            AccountingManager accountingManager,
            PaymentManager paymentManager
            ) : base(roleRepository, appNotifier, env, appFolders, objectMapper, tenantManager, excelExporter, localizationManager)
        {
            try
            {
                System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

                #region Declaration
                Log = NullLogger.Instance;
                _realtimeService     = realtimeService;
                _plexformNotifier    = plexformNotifier;
                _localizationManager = localizationManager;
                _accountingManager   = accountingManager;
                _paymentManager      = paymentManager;
                #endregion
            }
            catch (Exception ex)
            {
                Log.Error(nameof(PaymentController), ex);
            }
        }
 public TrainingController(ITrainingService trainingService, IExcelExporter trainingExporter)
 {
     _trainingService  = trainingService;
     _trainingExporter = trainingExporter;
 }
예제 #11
0
 public ExcelOperator(IExcelImporter excelImporter, IExcelExporter excelExporter)
 {
     ExcelImporter = excelImporter;
     ExcelExporter = excelExporter;
 }
예제 #12
0
 public SimulationResultViewModel(IEnumerable<ISectionViewModel> sections, IExcelExporter<SimulationResultViewModel> excelExporter)
 {
     this.Sections = sections;
     this.ExportToExcelCommand = excelExporter.GetExportCommand(this);
 }
 public EmployeesController(IEmployeeService employeeService, ImageService imageService, IExcelExporter employeeExporter)
 {
     _employeeService  = employeeService;
     _imageService     = imageService;
     _employeeExporter = employeeExporter;
 }
예제 #14
0
        public DataSetWrapper(IExcelExporter excelExporter)
        {
            _excelExporter = excelExporter;

            this.DataSet = new List <Gesture>();
        }
 public ProjectController(IProjectService projectService, IExcelExporter projectExporter)
 {
     _projectService  = projectService;
     _projectExporter = projectExporter;
 }
예제 #16
0
 public VisitaPcoController(IVisitaPcoRepository visitaPcoRepository, IExcelExporter exporter)
 {
     _visitaPcoRepository = visitaPcoRepository;
     _exporter            = exporter;
 }
 public PositionsController(IPositionService positionService, IExcelExporter positionExporter)
 {
     _positionService  = positionService;
     _positionExporter = positionExporter;
 }
예제 #18
0
 public ExcelExportCommand(IFactory factrory)
 {
     _excelExporter = factrory.CreateExcelExporter();
 }
예제 #19
0
 public ExporterTest()
 {
     Exporter = new DefaultExcelExporter();
 }
예제 #20
0
 public HomeController(IntervalDataManager intervalDataManager, IExcelExporter excelExporter)
 {
     this.intervalDataManager = intervalDataManager;
     this.excelExporter       = excelExporter;
 }
예제 #21
0
 public void SetUp()
 {
     _excelCreator = new ExcelCreator();
     _excelExporter = new ExcelExporter(_excelCreator);
 }
예제 #22
0
 public ExcelExportService(IDatatableConverter datatableConverter, IExcelExporter excelExporter)
 {
     _dataTableConverter = datatableConverter;
     _excelExporter      = excelExporter;
 }
예제 #23
0
 public ScoreCardController(IScoreCardFactory scoreCardFactory, IExcelExporter exporter, ILoggerFactory logger) : base(logger)
 {
     _scoreCardFactory = scoreCardFactory;
     _exporter         = exporter;
 }