Exemple #1
0
        public ReportModule(IReportService reportService, IReportResultService reportResultService, IMappingEngine mappingEngine)
            : base("data/reports", mappingEngine, UserRole.Standard)
        {
            this.reportService = reportService;
            this.reportResultService = reportResultService;

            Get["/"] = SearchReports;

            Get["/{id}"] = GetReport;

            Post["/"] = AddReport;

            Put["/{id}"] = UpdateReport;

            Delete["/{id}"] = DeleteReport;

            Put["/{id}/request"] = RequestReport;

            Get["/myResults"] = GetMyResults;

            Get["/results/{id}"] = ViewReportResults;

            Get["/results/{id}/download/{*}"] = DownloadReportResults;

            Get["/builder"] = GetReportBuilderData;

            Get["/builder/summary"] = GetReportDataSummary;
        }
Exemple #2
0
        public Graph(System.Windows.Forms.CheckedListBox.CheckedItemCollection data, DateTime minDate, DateTime maxDate, ISaleService iSaleService, int mode, IReportService iReportService, ITimeSettingService iTimeSettingService, IProgramService iProgramService)
        {
            InitializeComponent();
            fillColor(colorList);
            _data = data;
            _minDate = minDate;
            _maxDate = maxDate;
            _iSaleService = iSaleService;
            _iReportService = iReportService;
            _iTimeSettingService = iTimeSettingService;
            _iProgramService = iProgramService;

            this.chart1.ChartAreas[0].AxisX.MajorGrid.LineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash;
            chart1.ChartAreas.Add("area");
            chart1.ChartAreas[0].AxisX.LabelStyle.Format = "dd-MM";
            chart1.ChartAreas["area"].AxisX.Interval = 1;
            chart1.ChartAreas["area"].AxisX.IntervalType = DateTimeIntervalType.Days;
            chart1.ChartAreas["area"].AxisX.IntervalOffset = 1;

            chart1.ChartAreas["area"].AxisX.Minimum = minDate.ToOADate();
            chart1.ChartAreas["area"].AxisX.Maximum = maxDate.ToOADate();
            if (mode == 1)
            {
                drawQuantity();
                label1.Text = "Quantity";
            }
            else
            {
                drawEfficiency();
                label1.Text = "Efficiency";
            }
        }
Exemple #3
0
 public VideoController(IVideoCommentService comment, IVideoService video, IReportService report, IConfigInfoService configInfoService)
 {
     _comment = comment;
     _video = video;
     _report = report;
     _configInfoService = configInfoService;
 }
Exemple #4
0
 public MusicController(IMusicService music, IReportService reportService, IMusicCommentService musicComment, IConfigInfoService configInfoService)
 {
     _music = music;
     _reportService = reportService;
     MusicCommentService = musicComment;
     _configInfoService = configInfoService;
 }
Exemple #5
0
 public GameController(IGameService game, IReportService reportService, IGameCommentService gameComment, IConfigInfoService configInfoService)
 {
     _game = game;
     _reportService = reportService;
     _gameComment = gameComment;
     _configInfoService = configInfoService;
 }
 private byte[] GetExportContent(ReportModel model, IReportService service)
 {
     var cards = CardHelper.GetCards(model, TrelloInstance).ToList();
     var lists = TrelloInstance.Lists.ForBoard(new BoardId(model.BoardId)).OrderBy(l => l.Pos).ToList();
     var result = service.GenerateCardReports(cards, lists, model.UserIds);
     return result;
 }
 public ReportController()
 {
     this.reportService = new ReportService(this.Context);
     this.userService = new UserService(this.Context);
     this.blobService = new BlobService(this.Context, CloudStorageAccount.Parse(ConfigReader.GetConfigValue("DataConnectionString")), ConfigReader.GetConfigValue("MainBlobContanier"));
     this.blobSetService = new BlobSetService(this.Context);
 }
 public ReportController(IReportService reportService, IUserService userService, IBlobService blobService, IBlobSetService blobSetService)
 {
     this.reportService = reportService;
     this.userService = userService;
     this.blobService = blobService;
     this.blobSetService = blobSetService;
 }
 public ArticleController(IArticleService articleService, IActicleCommentService acticleCommentService, IReportService reportService, IConfigInfoService configInfoService)
 {
     _articleService = articleService;
     _acticleCommentService = acticleCommentService;
     _reportService = reportService;
     _configInfoService = configInfoService;
 }
		public void RenderReport()
		{
			ReportConfig reportConfig = SetupReportConfig();
			System.IO.File.Delete(reportConfig.SaveTo);
			_reportService = new ReportService();
			_reportService.RenderReport(reportConfig);
			Assert.IsTrue(System.IO.File.Exists(reportConfig.SaveTo));
		}
        public Service()
        {
            InitializeComponent();

            _log = LogManager.GetLogger(typeof(Service));
            var container = new Container(new PowerReportServiceRegistry());
            _intradayReportService = container.GetInstance<IReportService>();
        }
Exemple #12
0
 public HomeController(
     IReportService reportService,
     IUserService userService,
     IFormsAuthenticationService formsAuthenticationService)
     : base(userService, formsAuthenticationService)
 {
     _reportService = reportService;
 }
        public void Setup()
        {
            dataService = MockRepository.GenerateStub<IDataService>();
            reportService = MockRepository.GenerateStub<IReportService>();

            dataService
                .Stub(s => s.GetData(Arg<string>.Is.Anything))
                .Return(new List<string>());
        }
Exemple #14
0
 public HomeController(UserManager<ApplicationUser> UserManager,ICompanyService CompanyService,IEmployeeService EmployeeService,IReportService ReportService,IExperienceService experienceService, ITerminateService terminateService, IPositionService positionService)
 {
     this.companyService = CompanyService;
     this.employeeService = EmployeeService;
     this.terminateService = terminateService;
     this.reportService = ReportService;
     this.experienceService = experienceService;
     this.positionService = positionService;
     this.userManager = UserManager;
 }
        public void Init()
        {
            _log = Substitute.For<ILog>();
            _configurationProvider = Substitute.For<IConfigurationProvider>();
            _scheduleProvider = new TestSchedulers();
            _generator = Substitute.For<IReportGenerator>();

            _reportFolder = @"C:\Temp\";
            _configurationProvider.GetSetting("IntradayReportFolder").Returns(_reportFolder);

            _service = new ReportService(_log, _configurationProvider, _scheduleProvider, _generator);
        }
Exemple #16
0
 public SnapshotService(ISnapshotRepository snapshotRepository, IReportService reportService)
 {
     if (snapshotRepository == null)
     {
         throw new ArgumentNullException("snapshotRepository");
     }
     if (reportService == null)
     {
         throw new ArgumentNullException("reportService");
     }
     this.reportService = reportService;
     this.snapshotRepository = snapshotRepository;
 }
 public MembersController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, ILocalizationService localizationService,
     IRoleService roleService, ISettingsService settingsService, IPostService postService, IReportService reportService, IEmailService emailService, IPrivateMessageService privateMessageService, IBannedEmailService bannedEmailService, IBannedWordService bannedWordService, ITopicNotificationService topicNotificationService, IPollAnswerService pollAnswerService, IVoteService voteService, ICategoryService categoryService, ITopicService topicService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _postService = postService;
     _reportService = reportService;
     _emailService = emailService;
     _privateMessageService = privateMessageService;
     _bannedEmailService = bannedEmailService;
     _bannedWordService = bannedWordService;
     _categoryService = categoryService;
     _topicService = topicService;
 }
Exemple #18
0
        public MembersController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, ILocalizationService localizationService,
            IRoleService roleService, ISettingsService settingsService, IPostService postService, IReportService reportService, IEmailService emailService, IPrivateMessageService privateMessageService, IBannedEmailService bannedEmailService, IBannedWordService bannedWordService)
            : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
        {
            _postService = postService;
            _reportService = reportService;
            _emailService = emailService;
            _privateMessageService = privateMessageService;
            _bannedEmailService = bannedEmailService;
            _bannedWordService = bannedWordService;

            LoggedOnUser = UserIsAuthenticated ? MembershipService.GetUser(Username) : null;
            UsersRole = LoggedOnUser == null ? RoleService.GetRole(AppConstants.GuestRoleName) : LoggedOnUser.Roles.FirstOrDefault();
        }
 public AccountDetailsViewModel(IApplicationState applicationState, IAccountService accountService,
     ICacheService cacheService, IReportService reportService)
 {
     _applicationState = applicationState;
     _accountService = accountService;
     _cacheService = cacheService;
     _reportService = reportService;
     CloseAccountScreenCommand = new CaptionCommand<string>(Resources.Close, OnCloseAccountScreen);
     DisplayTicketCommand = new CaptionCommand<string>(Resources.FindTicket.Replace(" ", "\r"), OnDisplayTicket);
     PrintAccountCommand = new CaptionCommand<string>(Resources.Print, OnPrintAccount);
     AccountDetails = new ObservableCollection<AccountDetailData>();
     DocumentTypes = new ObservableCollection<DocumentTypeButtonViewModel>();
     AccountSummaries = new ObservableCollection<AccountSummaryData>();
     EventServiceFactory.EventService.GetEvent<GenericEvent<OperationRequest<AccountData>>>().Subscribe(OnDisplayAccountTransactions);
 }
 public AdminController(IRepositoryWithTypedId<Student, Guid> studentRepository, IRepositoryWithTypedId<MajorCode, string> majorRepository, IStudentService studentService, IEmailService emailService, IMajorService majorService, ICeremonyService ceremonyService, IRegistrationService registrationService, IRegistrationPopulator registrationPopulator, IRepository<Registration> registrationRepository, IErrorService errorService, IReportService reportService)
 {
     if (emailService == null) throw new ArgumentNullException("emailService");
     _studentRepository = studentRepository;
     _majorRepository = majorRepository;
     _studentService = studentService;
     _emailService = emailService;
     _majorService = majorService;
     _ceremonyService = ceremonyService;
     _registrationService = registrationService;
     _registrationPopulator = registrationPopulator;
     _registrationRepository = registrationRepository;
     _errorService = errorService;
     _reportService = reportService;
 }
Exemple #21
0
        public Program()
        {
            _trayMenu = new ContextMenu();
            _trayMenu.MenuItems.Add("Get report for current session", GetReportForCurrentSession);
            _trayMenu.MenuItems.Add("About", About);
            _trayMenu.MenuItems.Add("Quit", OnExit);

            _trayIcon = new NotifyIcon();
            _trayIcon.Text = "Statistiks";
            _trayIcon.Icon = new Icon(Icon.ExtractAssociatedIcon(Application.ExecutablePath), 64, 64);

            _trayIcon.ContextMenu = _trayMenu;
            _trayIcon.Visible = true;

            _seesionStart = DateTime.Now;
            _stLib = new StatistiksLib();
            _reportService = new Report.Report().GetReportService();
            AutoStart();
        }
Exemple #22
0
        public PostController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
            ILocalizationService localizationService, IRoleService roleService, ITopicService topicService, IPostService postService, 
            ISettingsService settingsService, ICategoryService categoryService, ITopicTagService topicTagService, 
            ITopicNotificationService topicNotificationService, IEmailService emailService, IReportService reportService, ILuceneService luceneService, IPollAnswerService pollAnswerService, 
            IPollService pollService, IBannedWordService bannedWordService)
            : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
        {
            _topicService = topicService;
            _postService = postService;
            _categoryService = categoryService;
            _topicTagService = topicTagService;
            _topicNotificationService = topicNotificationService;
            _emailService = emailService;
            _reportService = reportService;
            _luceneService = luceneService;
            _pollAnswerService = pollAnswerService;
            _pollService = pollService;
            _bannedWordService = bannedWordService;

            LoggedOnUser = UserIsAuthenticated ? MembershipService.GetUser(Username) : null;
            UsersRole = LoggedOnUser == null ? RoleService.GetRole(AppConstants.GuestRoleName) : LoggedOnUser.Roles.FirstOrDefault();
        }
 public StudentController(IStudentService studentService, 
     IEmailService emailService,
     IRepositoryWithTypedId<Student, Guid> studentRepository,
     IRepository<Ceremony> ceremonyRepository,
     IRepository<Registration> registrationRepository,
     IErrorService errorService,
     ICeremonyService ceremonyService,
     IReportService reportService,
     IRepository<RegistrationPetition> registrationPetitionRepository,
     IRepository<RegistrationParticipation> participationRepository, IRegistrationPopulator registrationPopulator)
 {
     _studentRepository = studentRepository;
     _ceremonyRepository = ceremonyRepository;
     _registrationRepository = registrationRepository;
     _errorService = errorService;
     _ceremonyService = ceremonyService;
     _reportService = reportService;
     _registrationPetitionRepository = registrationPetitionRepository;
     _participationRepository = participationRepository;
     _registrationPopulator = registrationPopulator;
     _studentService = studentService;
     _emailService = emailService;
 }
		public void SendRenderedReport()
		{
			ReportRecipient recipient = new ReportRecipient();
			recipient.Email = "*****@*****.**";
			recipient.Name = "Marnee Dearman";

			_emailService = SetupEmailService();

			Email email = new Email();
			email.To = recipient.Email;
			email.From = "*****@*****.**";
			email.Message = "Report attached";
			email.Subject = "ICMS TEST AUTO ORDER SEND";
			email.Attachments = new List<string>();
			ReportConfig reportConfig = SetupReportConfig();
			System.IO.File.Delete(reportConfig.SaveTo);
			_reportService = new ReportService();
			_reportService.RenderReport(reportConfig);

			email.Attachments.Add(@"C:\Users\Marnee Dearman\Documents\SK Auto\ICMS Excel Downloads\TESTattachments\test.txt");

			_emailService.Send(email);
		}
Exemple #25
0
 public ReportController(IDateTimeCountableRepository <ReportRequest> reportRequestRepository, IReportService reportService)
 {
     _reportRequestRepository = reportRequestRepository;
     _reportService           = reportService;
 }
Exemple #26
0
 public GoogleAnalyticsReport(Dictionary <string, object> parameterValues, IReportService reportService) : base(parameterValues, reportService)
 {
     gAService = GetService <IGAService>();
 }
Exemple #27
0
 public TaskController(ITaskListService taskListService, IPanelSettingsService panelSettingsService, IStatusCodesService statusCodesService, IDBUsersPanelsService dBUsersPanelsService, ITaskCodeService taskCodeService, IReportService reportService)
 {
     user = CurrentSession.User;
     if (user == null)
     {
         user = new DBUsers();
     }
     _taskListService      = taskListService;
     _panelSettingsService = panelSettingsService;
     _statusCodesService   = statusCodesService;
     _dBUsersPanelsService = dBUsersPanelsService;
     _taskCodeService      = taskCodeService;
     _reportService        = reportService;
     dbPanelList           = new List <int>();
     foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No))
     {
         dbPanelList.Add((int)dbUserPanelNo);
     }
 }
 public OMS(IOutageService outageService, IReportService reportService)
 {
     this.outageService = outageService;
     this.reportService = reportService;
 }
Exemple #29
0
 public AnimalsController(IAnimalService animalService, IReportService reportService, IFilterService filterService)
 {
     _animalService = animalService;
     _reportService = reportService;
     _filterService = filterService;
 }
        private async void SaveReport(ReportStatus status, string note)
        {
            ReportDataDto reportDataDto = GetReportDataDto(m_reportData);
            var           statusObject  = TimeLineObjectCreator(status, note);

            reportDataDto.ItemDtos        = reportDataDto.ItemDtos ?? new List <ItemDto>();
            reportDataDto.StatusTimeLines = new List <StatusTimeLineDto> {
                statusObject
            };

            if (Utility.IsInternetAvailable(Application.Context))
            {
                reportDataDto.NotSynced = false;

                if (status == ReportStatus.ArchivedAsAccepted)
                {
                    reportDataDto.ReportStatus = status;
                    reportDataDto.IsArchived   = true;
                }
                else if (status == ReportStatus.Rejected)
                {
                    reportDataDto.ReportStatus = status;
                }

                try
                {
                    reportService = new ReportService(userSession.AccessToken);
                    await reportService.PostReport(reportDataDto);

                    if (type == "accept")
                    {
                        Utility.DisplayToast(Application.Context, "Report has been Accepted");
                    }
                    else if (type == "decline")
                    {
                        Utility.DisplayToast(Application.Context, "Report has been Declined");
                    }
                    sharedPreferences.Edit().PutBoolean(Resources.GetString(Resource.String.IsReportUpdate), false).Commit();
                    sharedPreferencesEditor.PutBoolean("BackPressed", false);
                    sharedPreferencesEditor.Commit();
                    Activity.Finish();
                }
                catch (CustomHttpResponseException customHttpResponseException)
                {
                    if (customHttpResponseException.StatusCode == HttpStatusCode.Unauthorized)
                    {
                        Log.Error("Authentication Exception - VerifyReportFragment", customHttpResponseException.ToString());
                        Activity.Finish();
                        Activity.StartActivity(typeof(LoginActivity));
                    }
                    else
                    {
                        Log.Error(customHttpResponseException.StatusCode + " - VerifyReportFragment", customHttpResponseException.ToString());
                        Utility.DisplayToast(Application.Context, "Error : " + customHttpResponseException.StatusCode + "\nAn error occurred while connecting to the application server");
                    }
                }
            }
            else
            {
                Utility.DisplayToast(Application.Context, Resources.GetString(Resource.String.no_internet_message));
            }
        }
Exemple #31
0
 public ReportApp(IMapper iMapper,
                  IReportService service) : base(iMapper, service)
 {
 }
Exemple #32
0
 public ReportController(IReportService _irs)
 {
     irs = _irs;
 }
 public ReportViewController(IReportService Service)
 {
     _Service = Service;
 }
 public VisitorReportController(IVisitorsService visitorsService, IPanelSettingsService panelSettingsService, IGroupMasterService groupMasterService, IGlobalZoneService globalZoneService, IReportService reportService, IDBUsersPanelsService dBUsersPanelsService, IDoorNamesService doorNamesService, IDBUsersKapiService dBUsersKapiService, IReaderSettingsNewService readerSettingsNewService)
 {
     //user = CurrentSession.User;
     //if (user == null)
     //{
     //    user = new DBUsers();
     //}
     _visitorsService          = visitorsService;
     _panelSettingsService     = panelSettingsService;
     _groupMasterService       = groupMasterService;
     _globalZoneService        = globalZoneService;
     _reportService            = reportService;
     _dBUsersPanelsService     = dBUsersPanelsService;
     _doorNamesService         = doorNamesService;
     _dBUsersKapiService       = dBUsersKapiService;
     _readerSettingsNewService = readerSettingsNewService;
     kullaniciyaAitPaneller    = _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No).ToList();
     dbPanelList = new List <int>();
     dbDoorList  = new List <int>();
     foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No))
     {
         dbPanelList.Add((int)dbUserPanelNo);
     }
     foreach (var dbUserDoorNo in _dBUsersKapiService.GetAllDBUsersKapi(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Kapi_Kayit_No))
     {
         dbDoorList.Add((int)dbUserDoorNo);
     }
     _reportService.GetPanelList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDoorList(user == null ? new DBUsers {
     } : user);
     _reportService.GetSirketList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetAltDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetBolumList(user == null ? new DBUsers {
     } : user);
 }
 public ReportApiController(IReportService reportService, IUserService userService)
 {
     this._reportService = reportService;
     this._userService   = userService;
     userId = Microsoft.AspNet.Identity.IdentityExtensions.GetUserId(RequestContext.Principal.Identity);
 }
 public StripeReport(Dictionary <string, object> parameterValues, IReportService reportService) : base(parameterValues, reportService)
 {
     stripeService = GetService <IStripeService>();
 }
 public ReportViewerController(IReportService reportService)
 {
     _reportService = reportService;
 }
 public ReportController(IConfiguration config, IDistrictDailyAttendanceRateService districtDailyAttendanceRateService, IReportService reportService, IAdacampusService adacampusService, IAdadistrictService adadistrictService, IYtdgradeLevelService ytdgradeLevelService, IYtdschoolLevelsService ytdschoolLevelsService)
 {
     _districtDailyAttendanceRateService = districtDailyAttendanceRateService;
     _config                 = config;
     _reportService          = reportService;
     _adacampusService       = adacampusService;
     _adadistrictService     = adadistrictService;
     _ytdGradeLevelService   = ytdgradeLevelService;
     _ytdschoolLevelsService = ytdschoolLevelsService;
 }
Exemple #39
0
 public JsonStatisticsService(IReportService reportService)
 {
     _reportService = reportService;
 }
 public CommentService(IRepository <Comment> commentRepository, IUserService userService, IReportService reportService,
                       IUpvoteService upvoteService, IContentService contentService, ISubDirectoryService subDirectoryService,
                       INotificationService notificationService, IActivityService activityService, ICreditWalletService creditWalletService)
 {
     _commentRepository   = commentRepository;
     _userService         = userService;
     _reportService       = reportService;
     _activityService     = activityService;
     _upvoteService       = upvoteService;
     _contentService      = contentService;
     _notificationService = notificationService;
     _subDirectoryService = subDirectoryService;
     _creditWalletService = creditWalletService;
 }
 public ReportsController(IReportService reportService, ILogger <LoginController> logger)
 {
     this.reportService = reportService;
     this.logger        = logger;
 }
 public ReportServiceClient(IReportService reportService, IApplicationState applicationState)
 {
     _reportService = reportService;
     _applicationState = applicationState;
 }
 public WaybillReportGenerator(IReportService reportService)
 {
     _reportService = reportService;
 }
 public void EstablishContext()
 {
     reportService = MockRepository.GenerateMock<IReportService>();
     reportController = new ReportController(reportService);
 }
 public ReportController(DataContext dbContext, IReportService svc)
 {
     _DbContext = dbContext;
     _svc       = svc;
 }
Exemple #46
0
 public ReportController(IOptions <ReportSettings> reportSettings, IReportService reportService)
 {
     _reportSettings = reportSettings.Value;
     _reportService  = reportService;
 }
Exemple #47
0
 public PersonelListReportController(IUserService userService, IDepartmanService departmanService, IBloklarService bloklarService, IGroupMasterService groupMasterService, ISirketService sirketService, IGlobalZoneService globalZoneService, IReportService reportService, IAltDepartmanService altDepartmanService, IUnvanService unvanService, IBolumService bolumService, IAccessDatasService accessDatasService, IBirimService birimService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersAltDepartmanService dBUsersAltDepartmanService)
 {
     //user = CurrentSession.User;
     //if (user == null)
     //{
     //    user = new DBUsers();
     //}
     _userService                = userService;
     _departmanService           = departmanService;
     _bloklarService             = bloklarService;
     _groupMasterService         = groupMasterService;
     _sirketService              = sirketService;
     _globalZoneService          = globalZoneService;
     _reportService              = reportService;
     _altDepartmanService        = altDepartmanService;
     _unvanService               = unvanService;
     _bolumService               = bolumService;
     _accessDatasService         = accessDatasService;
     _birimService               = birimService;
     _dBUsersPanelsService       = dBUsersPanelsService;
     _dBUsersDepartmanService    = dBUsersDepartmanService;
     _dBUsersSirketService       = dBUsersSirketService;
     _dBUsersAltDepartmanService = dBUsersAltDepartmanService;
     dbDepartmanList             = new List <int>();
     dbPanelList        = new List <int>();
     dbSirketList       = new List <int>();
     dbAltDepartmanList = new List <int>();
     foreach (var dbUserDepartmanNo in _dBUsersDepartmanService.GetAllDBUsersDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Departman_No))
     {
         dbDepartmanList.Add((int)dbUserDepartmanNo);
     }
     foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No))
     {
         dbPanelList.Add((int)dbUserPanelNo);
     }
     foreach (var dbUserSirketNo in _dBUsersSirketService.GetAllDBUsersSirket(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Sirket_No))
     {
         dbSirketList.Add((int)dbUserSirketNo);
     }
     foreach (var dbUserAltDepartmanNo in _dBUsersAltDepartmanService.GetAllDBUsersAltDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Alt_Departman_No))
     {
         dbAltDepartmanList.Add((int)dbUserAltDepartmanNo);
     }
     _reportService.GetPanelList(user == null ? new DBUsers {
     } : user);
     _reportService.GetSirketList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetAltDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetBolumList(user == null ? new DBUsers {
     } : user);
 }
Exemple #48
0
        public ReportAdminController(IReportService reportService)
        {


            _ReportService = reportService;
        }
Exemple #49
0
 public EditInvestigation(UserManager <ApplicationUser> userManager, IReportService reportService, IInvestigationService investigationService)
 {
     _userManager          = userManager;
     _reportService        = reportService;
     _investigationService = investigationService;
 }
Exemple #50
0
 public FormReport(IReportService report)
 {
     InitializeComponent();
     this.report = report;
     reportModel = new ReportBindingModel();
 }
Exemple #51
0
 public ReportController(IWebAppContext appContext
                         , IReportService reportService)
     : base(appContext)
 {
     _reportService = reportService;
 }
Exemple #52
0
 public PostController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
                       ILocalizationService localizationService, IRoleService roleService, ITopicService topicService, IPostService postService,
                       ISettingsService settingsService, ICategoryService categoryService, ITopicTagService topicTagService,
                       ITopicNotificationService topicNotificationService, IEmailService emailService, IReportService reportService, IPollAnswerService pollAnswerService,
                       IPollService pollService, IBannedWordService bannedWordService, IMembershipUserPointsService membershipUserPointsService, IVoteService voteService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService                = topicService;
     _postService                 = postService;
     _categoryService             = categoryService;
     _topicTagService             = topicTagService;
     _topicNotificationService    = topicNotificationService;
     _emailService                = emailService;
     _reportService               = reportService;
     _pollAnswerService           = pollAnswerService;
     _pollService                 = pollService;
     _bannedWordService           = bannedWordService;
     _membershipUserPointsService = membershipUserPointsService;
     _voteService                 = voteService;
 }
Exemple #53
0
 public ReportController(IReportService reportService)
 {
     _reportService = reportService;
 }
Exemple #54
0
 public Reports(IReportService reportService)
 {
     _reportService = reportService;
     InitializeComponent();
 }
 static void LgService(IReportService service, string messageSuffix)
 {
     Lg($"{service.GetType().Name}: {messageSuffix}");
 }
 public CommentsController(ICommentService comments, IReportService reports)
 {
     this.comments = comments;
     this.reports  = reports;
 }
 public JsonStatisticsService(IReportService reportService)
 {
     _reportService = reportService;
 }
        static void AddToSummary(IReportService service, string method, string jsonResult, double elapsed)
        {
            var byteCount = Encoding.UTF8.GetByteCount(jsonResult);

            Summaries.Add($"{service.GetType().Name}, {method}: elapsed {(int)elapsed}ms, size {byteCount} ");
        }
 public ReportApiController(IReportService service)
 {
     _service = service;
 }
        static async Task RunTestsOnService(IReportService service, int serviceIndex, string scenarioName, params int[] testsToRun)
        {
            var idOfActiveReport = await TestDataService.GetReportIdToSearchFor();

            var clearCacheService = new ClearDbCacheService();

            LgService(service, "Starting");

            var spElapsed = new Stopwatch();

            double elapsedTotal = 0;

            var testsToRunHs = new HashSet <int>(testsToRun);

            ReportResponse reportResponse = null;

            if (testsToRunHs.Contains(0))
            {
                await clearCacheService.ClearCache();

                spElapsed.Restart();

                for (var testCount = 1; testCount <= TEST_ITERATIONS; testCount++)
                {
                    reportResponse = await service.GetReportByIdAsync(idOfActiveReport);
                }

                spElapsed.Stop();

                elapsedTotal += spElapsed.Elapsed.TotalMilliseconds;

                AddToSummary(service, "single report by id", reportResponse.ResultAsJson, spElapsed.Elapsed.TotalMilliseconds / TEST_ITERATIONS);
                AddToStats(serviceIndex, 0, scenarioName, "single report by id", spElapsed.Elapsed.TotalMilliseconds / TEST_ITERATIONS, reportResponse.ResultAsJson, reportResponse.ItemCount);
            }

            if (testsToRunHs.Contains(1))
            {
                await clearCacheService.ClearCache();

                spElapsed.Restart();

                for (var testCount = 1; testCount <= TEST_ITERATIONS; testCount++)
                {
                    reportResponse = await service.GetDetailedReportListAsync(Constants.REPORT_NAME_SEARCH);
                }

                spElapsed.Stop();

                elapsedTotal += spElapsed.Elapsed.TotalMilliseconds;
                AddToSummary(service, "detailed list with search", reportResponse.ResultAsJson, spElapsed.Elapsed.TotalMilliseconds / TEST_ITERATIONS);
                AddToStats(serviceIndex, 1, scenarioName, "detailed list with search, limit to 100 items", spElapsed.Elapsed.TotalMilliseconds / TEST_ITERATIONS, reportResponse.ResultAsJson, reportResponse.ItemCount);
            }

            if (testsToRunHs.Contains(2))
            {
                await clearCacheService.ClearCache();

                spElapsed.Restart();

                for (var testCount = 1; testCount <= TEST_ITERATIONS; testCount++)
                {
                    reportResponse = await service.GetLightReportListAsync(Constants.REPORT_NAME_SEARCH);
                }

                spElapsed.Stop();
                elapsedTotal += spElapsed.Elapsed.TotalMilliseconds;
                AddToSummary(service, "light list with search", reportResponse.ResultAsJson, spElapsed.Elapsed.TotalMilliseconds / TEST_ITERATIONS);
                AddToStats(serviceIndex, 2, scenarioName, "light list with search, limit to 100 items", spElapsed.Elapsed.TotalMilliseconds / TEST_ITERATIONS, reportResponse.ResultAsJson, reportResponse.ItemCount);
            }

            LgService(service, $"Completed in {(int)elapsedTotal}");
        }