public LoadCarrierReceiptsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     Dal.OlmaDbContext olmaDbContext,
     IRepository <Olma.LoadCarrierReceipt> olmaLoadCarrierReceiptRepo,
     IRepository <Olma.LoadCarrier> olmaLoadCarrierRepo,
     IRepository <Olma.CustomerPartner> olmaCustomerPartnerRepo,
     IRepository <Olma.CustomerDivision> olmaCustomerDivisionRepo,
     ISynchronizationsService synchronizationsService,
     INumberSequencesService numberSequencesService,
     IDocumentsService documentsService,
     Reporting.IReportGeneratorService reportGeneratorService,
     IPostingRequestsService postingRequestsService,
     IServiceProvider serviceProvider) : base(authData, mapper)
 {
     _olmaDbContext = olmaDbContext;
     _olmaLoadCarrierReceiptRepo = olmaLoadCarrierReceiptRepo;
     _olmaLoadCarrierRepo        = olmaLoadCarrierRepo;
     _olmaCustomerPartnerRepo    = olmaCustomerPartnerRepo;
     _olmaCustomerDivisionRepo   = olmaCustomerDivisionRepo;
     _numberSequencesService     = numberSequencesService;
     _documentsService           = documentsService;
     _reportGeneratorService     = reportGeneratorService;
     _postingRequestsService     = postingRequestsService;
     _serviceProvider            = serviceProvider;
     _synchronizationsService    = synchronizationsService;
 }
예제 #2
0
 public VouchersService(
     IAuthorizationDataService authData,
     IAuthorizationService authService,
     IMapper mapper,
     Dal.OlmaDbContext olmaDbContext,
     IServiceProvider serviceProvider,
     IRepository <Olma.Voucher> olmaVoucherRepo,
     IRepository <Olma.CustomerPartner> olmaCustomerPartnerRepo,
     IRepository <Olma.PartnerDirectory> olmaPartnerDirectoryRepo,
     IRepository <Olma.Partner> olmaPartnerRepo,
     INumberSequencesService numberSequencesService,
     IDocumentTypesService documentTypesService,
     IDocumentsService documentsService,
     IPostingRequestsService postingRequestsService,
     Reporting.IReportGeneratorService reportGeneratorService,
     ISynchronizationsService synchronizationsService) : base(authData, authService, mapper)
 {
     _olmaDbContext            = olmaDbContext;
     _serviceProvider          = serviceProvider;
     _olmaVoucherRepo          = olmaVoucherRepo;
     _olmaCustomerPartnerRepo  = olmaCustomerPartnerRepo;
     _olmaPartnerDirectoryRepo = olmaPartnerDirectoryRepo;
     _olmaPartnerRepo          = olmaPartnerRepo;
     _numberSequencesService   = numberSequencesService;
     _documentTypesService     = documentTypesService;
     _documentsService         = documentsService;
     _reportGeneratorService   = reportGeneratorService;
     _synchronizationsService  = synchronizationsService;
     _postingRequestsService   = postingRequestsService;
 }
예제 #3
0
 public FileManagerDataController(IHostingEnvironment hostingEnvironment, IContentService _IContentService, IDocumentsService _IDocumentsService)
 {
     this._IContentService   = _IContentService;
     this._IDocumentsService = _IDocumentsService;
     this.HostingEnvironment = hostingEnvironment;
     this.directoryBrowser   = new FileContentBrowser();
 }
예제 #4
0
 public ItemHelper(IHostingEnvironment hostingEnvironment, IPicturesService picturesService, IDocumentsService documentsService,
                   IConfiguration configuration)
 {
     this._hostingEnvironment = hostingEnvironment;
     this._picturesService    = picturesService;
     this._documentsService   = documentsService;
     this._configuration      = configuration;
 }
예제 #5
0
 public SearchesController(ISearchService searchService, IDocumentsService docService,
                           ISortService sortService, IEuCaselawFilterService euCaselawFilterService)
 {
     this.searchService          = searchService;
     this.docService             = docService;
     this.sortService            = sortService;
     this.euCaselawFilterService = euCaselawFilterService;
 }
예제 #6
0
 public DocumentsDashboardController(IDocumentsService documentService, IDssIndexService dssIndexService, IRepository <Document> documentRepository, IQueryProcessor <Document> documentQueryProcessor, IQueryParameterProcessor <JQueryDataTableParams, Document> documentParamsProcessor)
 {
     _documentService         = documentService;
     _dssIndexService         = dssIndexService;
     _documentRepository      = documentRepository;
     _documentQueryProcessor  = documentQueryProcessor;
     _documentParamsProcessor = documentParamsProcessor;
 }
예제 #7
0
        public SensorsController(IDocumentsService documentsService, ITableService tableService)
        {
            if (documentsService == null) throw new ArgumentNullException(nameof(documentsService));
            if (tableService == null) throw new ArgumentNullException(nameof(tableService));

            _documentsService = documentsService;
            _tableService = tableService;
        }
예제 #8
0
 public DynamicInput(
     IDocumentsService _IDocumentsService,
     IHttpContextAccessor httpContextAccessor
     )
 {
     this._httpContextAccessor = httpContextAccessor;
     this._IDocumentsService   = _IDocumentsService;
 }
예제 #9
0
 public TrainingDocumentsController(
     IDocumentsService documents,
     IKcsarContext db,
     IPermissionsService permissions,
     IWebHostingService hosting,
     ILog log)
     : base(documents, db, permissions, hosting, log)
 {
 }
예제 #10
0
        public CommonHub(ILifetimeScope lifetimeScope)
        {
            // Create a lifetime scope for the hub.
            _hubLifetimeScope = lifetimeScope.BeginLifetimeScope();

            // Resolve dependencies from the hub lifetime scope
            _documentService = _hubLifetimeScope.Resolve<IDocumentsService>(); // singleton
            _tableService = _hubLifetimeScope.Resolve<ITableService>(); // singleton
            _counterService = _hubLifetimeScope.Resolve<IDistributedCounter>(); // singleton
        }
 public JobApplicationsController(UserManager <ApplicationUser> userManager, IJobApplicationService jobApplicationService, IJobOffersService jobOffersService, ICandidatesService candidatesService, IEmployersService employersService, IDocumentsService documentsService, IJobApplicationStatusesService jobApplicationStatusesService)
 {
     this.userManager                   = userManager;
     this.jobApplicationService         = jobApplicationService;
     this.jobOffersService              = jobOffersService;
     this.candidatesService             = candidatesService;
     this.employersService              = employersService;
     this.documentsService              = documentsService;
     this.jobApplicationStatusesService = jobApplicationStatusesService;
 }
예제 #12
0
        public HealthController(IDocumentsService documentsService, ITableService tableService, ILogger loger)
        {
            if (documentsService == null) throw new ArgumentNullException(nameof(documentsService));
            if (tableService == null) throw new ArgumentNullException(nameof(tableService));
            if (loger == null) throw new ArgumentNullException(nameof(loger));

            _documentsService = documentsService;
            _tableService = tableService;
            _loger = loger;
        }
 public DocumentsController(
     IDocumentsService documents,
     Data.IKcsarContext db,
     IPermissionsService permissions,
     IWebHostingService hosting,
     ILog log)
     : base(db, permissions, hosting, log)
 {
     this.documents = documents;
 }
 public ExportService(
     ITableOfContentsService tableOfContentsService,
     IDocumentsService documentsService,
     IProjectsService projectsService,
     IPdfExportClient pdfExportClient)
 {
     _tableOfContentsService = tableOfContentsService;
     _documentsService       = documentsService;
     _projectsService        = projectsService;
     _pdfExportClient        = pdfExportClient;
 }
 public ItemController(IRoleManagerService roleManagerService, IUserManagerService userManagerService,
                       IItemsService itemsService, IHostingEnvironment hostingEnvironment, IPicturesService picturesService,
                       IDocumentsService documentsService, IItemHelper itemHelper)
 {
     this._roleManagerService = roleManagerService;
     this._userManagerService = userManagerService;
     this._itemsService       = itemsService;
     this._picturesService    = picturesService;
     this._documentsService   = documentsService;
     this._hostingEnvironment = hostingEnvironment;
     this._itemHelper         = itemHelper;
 }
        public DashboardViewModel(INavigation navigation, Type page)
        {
            UserModel user = Utils.DeserializeFromJson <UserModel>(Application.Current.Properties["UserData"].ToString());

            _pageService      = new PageService();
            _navigation       = navigation;
            _page             = page;
            _documentsService = new DocumentsService(user);
            _streamservice    = new StreamService(user);
            _zipService       = new ZipService();
            Device.BeginInvokeOnMainThread(async() => DocsModel = await GetDocsAsync());
        }
        public ViewerDocumentViewModel(INavigation navigation)
        {
            UserModel user = Utils.DeserializeFromJson <UserModel>(Application.Current.Properties["UserData"].ToString());

            _pageService      = new PageService();
            _navigation       = navigation;
            _streamservice    = new StreamService(user);
            _documentsService = new DocumentsService(user);



            IsLoading          = true;
            SelectAllIsToggled = false;
        }
 public MyDocumentsController(ILogger <BaseController> logger,
                              IDistributedCache distributedCache,
                              IApplicationSessionState sessionState,
                              IConfiguration configuration,
                              IDocumentsService documentsService,
                              IAccountsService accountsService,
                              IWebActivityService webActivityService,
                              IMapper mapper,
                              PortalSetting setting)
     : base(logger, distributedCache, sessionState, configuration)
 {
     _documentsService   = documentsService;
     _accountsService    = accountsService;
     _webActivityService = webActivityService;
     _mapper             = mapper;
     _setting            = setting;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="documentsService">Documents service.</param>
 /// <param name="markdownService">Markdown service.</param>
 /// <param name="branchService">Branch service.</param>
 /// <param name="searchService">Search service.</param>
 /// <param name="authorizationService">Authorization service.</param>
 /// <param name="projectsService">Projects service.</param>
 /// <param name="logsService">Logs service.</param>
 public DocumentsController(
     IDocumentsService documentsService,
     IMarkdownService markdownService,
     IBranchesService branchService,
     ISearchService searchService,
     IAuthorizationService authorizationService,
     IProjectsService projectsService,
     ILogsService logsService)
 {
     _documentsService     = documentsService;
     _markdownService      = markdownService;
     _branchService        = branchService;
     _searchService        = searchService;
     _authorizationService = authorizationService;
     _projectsService      = projectsService;
     _logsService          = logsService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="documentsService">Documents service.</param>
 /// <param name="branchService">Branch service.</param>
 /// <param name="searchService">Search service.</param>
 /// <param name="projectsService">Projects service.</param>
 /// <param name="logsService">Logs service.</param>
 /// <param name="logger">Logger service.</param>
 /// <param name="httpContextHeaders">Http context headers.</param>
 /// <param name="applicationParameters">Application parameters.</param>
 public UploaderJob(
     IDocumentsService documentsService,
     IBranchesService branchService,
     ISearchService searchService,
     IProjectsService projectsService,
     ILogsService logsService,
     ILogger <UploaderJob> logger,
     IHttpContextHeaders httpContextHeaders,
     IOptions <ApplicationParameters> applicationParameters)
 {
     _documentsService      = documentsService;
     _branchService         = branchService;
     _searchService         = searchService;
     _projectsService       = projectsService;
     _logsService           = logsService;
     _logger                = logger;
     _httpContextHeaders    = httpContextHeaders;
     _applicationParameters = applicationParameters.Value;
 }
 //------------- CONSTRUCTORS --------------
 public ServicesController(IServicesService servicesService,
                           IServiceTypesService serviceTypesService,
                           IOperatingLocationsService operatingLocationsService,
                           IDocumentsService documentsService,
                           IVehicleTypesService vehicleTypesService)
 {
     this.servicesService           = servicesService;
     this.serviceTypesService       = serviceTypesService;
     this.operatingLocationsService = operatingLocationsService;
     this.documentsService          = documentsService;
     this.vehicleTypesService       = vehicleTypesService;
     this.unifiedModel = new ServicesUnifiedModel
     {
         ServiceInputModel     = new ServiceInputModel(),
         ServiceTypeInputModel = new ServiceTypeInputModel(),
         DocumentInputModel    = new DocumentInputModel(),
         VehicleTypeInputModel = new VehicleTypeInputModel()
     };
 }
        // GET: Patient/Profile
        public ActionResult Index(int id = 1)
        {
            var patientId = this.User.Identity.GetUserId();

            var search        = this.Request.QueryString["search"];
            var page          = id;
            var allItemsCount = this.documents.GetDocumentsByPatientId(patientId)
                                .Count();

            var totalPages = (int)Math.Ceiling(allItemsCount / (decimal)ItemsPerPage);
            var skip       = (page - 1) * ItemsPerPage;

            List <DocumentViewModel> documents;

            if (search != null)
            {
                documents = this.documents
                            .GetDocumentsByPatientId(patientId)
                            .Where(x => x.RealFileName.Contains(search))
                            .To <DocumentViewModel>()
                            .ToList();
            }
            else
            {
                documents = this.documents
                            .GetDocumentsByPatientId(patientId)
                            .OrderBy(x => x.CreatedOn)
                            .Skip(skip)
                            .Take(ItemsPerPage)
                            .To <DocumentViewModel>()
                            .ToList();
            }

            var resultModel = new PageableDocumentsViewModel
            {
                CurrentPage = page,
                TotalPages  = totalPages,
                Documents   = documents
            };

            return(this.View(resultModel));
        }
예제 #23
0
        public DocumentsController(
            IDocumentsService documentsService,
            ICandidatesService candidatesService,
            IFileExtensionsService fileExtensionsService,
            IDocumentCategoriesService documentCategoriesService,
            IJobApplicationService jobApplicationService,
            IMimeMappingService mimeMappingService,
            UserManager <ApplicationUser> userManager)
        {
            this.documentsService          = documentsService;
            this.candidatesService         = candidatesService;
            this.fileExtensionsService     = fileExtensionsService;
            this.documentCategoriesService = documentCategoriesService;
            this.jobApplicationService     = jobApplicationService;
            this.mimeMappingService        = mimeMappingService;
            this.userManager = userManager;

            this.allowedExtensions = this.fileExtensionsService.GetAll();
            this.allowedCategories = this.documentCategoriesService.GetAll <CategoriesDropDownViewModel>();
        }
예제 #24
0
        public DocumentsViewModel()
        {
            documentsService    = NinjectConfig.Kernel.Get <IDocumentsService>();
            driversService      = NinjectConfig.Kernel.Get <IDriversService>();
            nomenclatureService = NinjectConfig.Kernel.Get <INomenclatureService>();

            InsertDocumentCommand              = new RelayCommand(InsertDocument);
            GetDocumentsCommand                = new RelayCommand(GetDocuments);
            UpdateDocumentCommand              = new RelayCommand(UpdateDocument);
            DeleteDocumentCommand              = new RelayCommand(DeleteDocument);
            OpenEditorCommand                  = new RelayCommand(OpenEditor);
            AddViolationToDocumentCommand      = new RelayCommand(AddViolationToDocument);
            RemoveViolationFromDocumentCommand = new RelayCommand(RemoveViolationFromDocument);

            Documents        = new ObservableCollection <Document>(documentsService.GetDocuments(new Document()));
            DocTypes         = nomenclatureService.GetDocTypes();
            SearchDocument   = new Document();
            UpsertedDocument = new Document();
            RegNumSearch     = FullNameSearch = string.Empty;
        }
예제 #25
0
 public NotificationService(IDepartmentNotificationRepository departmentNotificationRepository, IDepartmentsService departmentsService,
                            IUnitsService unitsService, IUserStateService userStateService, IDepartmentGroupsService departmentGroupsService, IActionLogsService actionLogsService,
                            IPersonnelRolesService personnelRolesService, IUserProfileService userProfileService, ICalendarService calendarService, IDocumentsService documentsService,
                            INotesService notesService, IWorkLogsService workLogsService, IShiftsService shiftsService, ICustomStateService customStateService)
 {
     _departmentNotificationRepository = departmentNotificationRepository;
     _departmentsService      = departmentsService;
     _unitsService            = unitsService;
     _userStateService        = userStateService;
     _departmentGroupsService = departmentGroupsService;
     _actionLogsService       = actionLogsService;
     _personnelRolesService   = personnelRolesService;
     _userProfileService      = userProfileService;
     _calendarService         = calendarService;
     _documentsService        = documentsService;
     _notesService            = notesService;
     _workLogsService         = workLogsService;
     _shiftsService           = shiftsService;
     _customStateService      = customStateService;
 }
        // GET: Patient/Profile
        public ActionResult Index(int id = 1)
        {
            var patientId = this.User.Identity.GetUserId();

            var search = this.Request.QueryString["search"];
            var page = id;
            var allItemsCount = this.documents.GetDocumentsByPatientId(patientId)
                .Count();

            var totalPages = (int)Math.Ceiling(allItemsCount / (decimal)ItemsPerPage);
            var skip = (page - 1) * ItemsPerPage;

            List<DocumentViewModel> documents;
            if (search != null)
            {
                documents = this.documents
                .GetDocumentsByPatientId(patientId)
                   .Where(x => x.RealFileName.Contains(search))
                   .To<DocumentViewModel>()
                   .ToList();
            }
            else
            {
                documents = this.documents
                .GetDocumentsByPatientId(patientId)
                   .OrderBy(x => x.CreatedOn)
                   .Skip(skip)
                   .Take(ItemsPerPage)
                   .To<DocumentViewModel>()
                   .ToList();
            }

            var resultModel = new PageableDocumentsViewModel
            {
                CurrentPage = page,
                TotalPages = totalPages,
                Documents = documents
            };
            return this.View(resultModel);
        }
예제 #27
0
 public ContentController(
     IHostingEnvironment _IHostingEnvironment,
     IHttpContextAccessor _IHttpContextAccessor,
     IUnitOfWork <myDBContext> _uow,
     IContentService _IContentService,
     IContentService _IWorkshopService,
     IActionDataService _IActionDataService,
     IResponseDataService _IResponseDataService,
     IDocumentsService _IDocumentsService,
     IUserService _IUserService
     )
 {
     this._IHostingEnvironment  = _IHostingEnvironment;
     this._IHttpContextAccessor = _IHttpContextAccessor;
     this._uow                  = _uow;
     this._IContentService      = _IContentService;
     this._IWorkshopService     = _IWorkshopService;
     this._IActionDataService   = _IActionDataService;
     this._IResponseDataService = _IResponseDataService;
     this._IDocumentsService    = _IDocumentsService;
     this._IUserService         = _IUserService;
 }
 public GdprDictionaryController(IDocumentsService service)
 {
     this.docService = service;
 }
예제 #29
0
 public DocumentsController(IBusPublisher busPublisher, ITracer tracer, IDocumentsService documentsService) : base(busPublisher, tracer)
 {
     _documentsService = documentsService;
 }
 public DocumentsController(IDocumentsService documentsService, IMapper mapper, ILogger <DocumentsController> logger)
 {
     _documentsService = documentsService;
     _mapper           = mapper;
     _logger           = logger;
 }
 public PatientsController(IPatientService patients, IDocumentsService documents)
 {
     this.patients = patients;
     this.documents = documents;
 }
예제 #32
0
 public DocumentsController(IDocumentsService documents)
 {
     this.documents = documents;
 }
예제 #33
0
 public TagsController(IDocumentsService documentsService)
 {
     if (documentsService == null) throw new ArgumentNullException(nameof(documentsService));
     _documentsService = documentsService;
 }
예제 #34
0
 public DocumentsController(IDocumentsService documents, IUniversitiesService universities)
 {
     this.documents = documents;
     this.universities = universities;
 }
 public DocumentsApplicationService(IDocumentsService documentsService)
 {
     _documentsService = documentsService;
 }
예제 #36
0
 public DocumentsController(IDocumentsService service)
 {
     this.service = service;
 }
예제 #37
0
 public DocumentsController(IDocumentsService documentsService)
 {
     _documentsService = documentsService;
 }
 public ProfileController(IDocumentsService documents)
 {
     this.documents = documents;
 }
예제 #39
0
 public ProductsController(IBusPublisher busPublisher, ITracer tracer, IProductsService productsService, IDocumentsService documentsService) : base(busPublisher, tracer)
 {
     _productsService  = productsService;
     _documentsService = documentsService;
 }
예제 #40
0
 public DocumentsController(IDocumentsService documents, IUniversitiesService universities, IStudentInfosService students)
 {
     this.students = students;
     this.documents = documents;
     this.universities = universities;
 }