public UsersInProjectsController(IUsersInProjectsAppService app, IUserAppService userApp, IProjectAppService projectApp, ILogger <UsersInProjectsController> logger) : base(userApp, logger) { __app = app; __userApp = userApp; __projectApp = projectApp; }
public ProjectBoardAppService(IProjectRepository projectRepository, IProjectAppService projectAppService, IRepository<AppUser, Guid> userRepository, IBoardMessageAppService boardMessageAppService) { _projectRepository = projectRepository; _userRepository = userRepository; _boardMessageAppService = boardMessageAppService; _projectAppService = projectAppService; }
public async Task <PartialViewResult> CreateOrUpdateTeamMembersModal(long?id = null) { int? impersonatorTenantId; int value; string str; if (this.AbpSession.ImpersonatorTenantId.HasValue) { impersonatorTenantId = this.AbpSession.ImpersonatorTenantId; value = impersonatorTenantId.Value; } else { impersonatorTenantId = this.AbpSession.TenantId; value = impersonatorTenantId.Value; } int num = value; IProjectAppService projectAppService = this._projectAppService; NullableIdInput <long> nullableIdInput = new NullableIdInput <long>() { Id = id }; CreateOrUpdateProjectTeamMembersModalViewModel createOrUpdateProjectTeamMembersModalViewModel = new CreateOrUpdateProjectTeamMembersModalViewModel(await projectAppService.GetProjectTeamMembersForEdit(nullableIdInput)); CreateOrUpdateProjectTeamMembersModalViewModel createOrUpdateProjectTeamMembersModalViewModel1 = createOrUpdateProjectTeamMembersModalViewModel; long value1 = id.Value; createOrUpdateProjectTeamMembersModalViewModel1.ProjectId = long.Parse(value1.ToString()); List <SelectListItem> selectListItems = new List <SelectListItem>(); ListResultDto <UserListDto> teamMembersByTenantId = await this._projectAppService.GetTeamMembersByTenantId(num, true); if (!teamMembersByTenantId.Items.Any <UserListDto>()) { this.ViewData["TeamMembers"] = null; } else { foreach (UserListDto item in teamMembersByTenantId.Items) { string name = item.Name; str = (item.Name.Length > 0 || item.Surname.Length > 0 ? " " : ""); string str1 = string.Concat(name, str, item.Surname); List <SelectListItem> selectListItems1 = selectListItems; SelectListItem selectListItem = new SelectListItem() { Text = str1, Value = item.Id.ToString(), Selected = false }; selectListItems1.Add(selectListItem); } this.ViewData["TeamMembers"] = selectListItems.AsEnumerable <SelectListItem>(); } IProjectAppService projectAppService1 = this._projectAppService; value1 = id.Value; Project project = await projectAppService1.GetProject(long.Parse(value1.ToString())); ((dynamic)this.ViewBag).ProjectName = project.Label; return(this.PartialView("_CreateOrUpdateTeamMembersModal", createOrUpdateProjectTeamMembersModalViewModel)); }
public HardwareController(IHardwareAppService hardwareAppService, IProjectAppService projectAppService, IItemAppService itemAppService, IItemBaseOnHardwareAppService itemBaseOnHardwareAppService) { _hardwareAppService = hardwareAppService; _projectAppService = projectAppService; _itemAppService = itemAppService; _itemBaseOnHardwareAppService = itemBaseOnHardwareAppService; }
public ProjectBoardAppServiceTests() { _projectAppService = GetRequiredService <IProjectAppService>(); _projectBoardAppService = GetRequiredService <IProjectBoardAppService>(); _projectRepository = GetRequiredService <IProjectRepository>(); _userRepository = GetRequiredService <IRepository <AppUser, Guid> >(); }
public IndexModel( IProjectAppService projectAppService, IOptions <DocsUrlOptions> urlOptions) { _projectAppService = projectAppService; _urlOptions = urlOptions.Value; }
public SearchModel(IProjectAppService projectAppService, IDocumentAppService documentAppService, HtmlEncoder encoder) { _projectAppService = projectAppService; _documentAppService = documentAppService; _encoder = encoder; }
public LifeInfosController( ILifeInfoAppService lifeinfoAppService, ILifeInfoTypeAppService lifeinfotypeAppService, IProjectAppService projectAppService) { _lifeinfoAppService = lifeinfoAppService; _lifeinfotypeAppService = lifeinfotypeAppService; _projectAppService = projectAppService; }
public async Task <IActionResult> AddAsync([FromServices] IEnvironmentAppService environmentAppService, [FromServices] IProjectAppService projectAppService, string projectId, [FromBody] Environment environment) { environment.Project = await projectAppService.GetAsync(projectId); await environmentAppService.CreateAsync(environment); return(Created($"{Request.Path}", environment)); }
public TasksController(ITaskAppService taskAppService, IProjectAppService projectAppService, IPersonAppService personAppService, IHttpContextAccessor accessor) { this._taskAppService = taskAppService; this._projectAppService = projectAppService; this._personAppService = personAppService; this._accessor = accessor; Models.SeedData.Initialize(taskAppService); }
public IndexModel( IDocumentAppService documentAppService, IDocumentConverterFactory documentConverterFactory, IProjectAppService projectAppService) { _documentAppService = documentAppService; _documentConverterFactory = documentConverterFactory; _projectAppService = projectAppService; }
public SearchModel(IProjectAppService projectAppService, IDocumentAppService documentAppService, HtmlEncoder encoder, IVersionHelper versionHelper) { _projectAppService = projectAppService; _documentAppService = documentAppService; _encoder = encoder; _versionHelper = versionHelper; }
public ProjectsController(IProjectAppService projectAppService, ISupplierAppService supplierAppService, ICustomerAppService customerAppServer, IBinaryObjectManager binaryObjectManager, IProductAppService productAppService, ITitleAppService titleAppService, IRepository <PaymentSetting, long> paymentSettingRepository, IRepository <TenantPaymentSettings, long> tenantPaymentSettingsRepository) { this._projectAppService = projectAppService; this._supplierAppService = supplierAppService; this._customerAppServer = customerAppServer; this._binaryObjectManager = binaryObjectManager; this._titleAppService = titleAppService; this._tenantPaymentSettingsRepository = tenantPaymentSettingsRepository; this._productAppService = productAppService; this._paymentSettingRepository = paymentSettingRepository; }
public IndexModel( IDocumentAppService documentAppService, IDocumentToHtmlConverterFactory documentToHtmlConverterFactory, IProjectAppService projectAppService, IOptions <DocsUrlOptions> options) { _documentAppService = documentAppService; _documentToHtmlConverterFactory = documentToHtmlConverterFactory; _projectAppService = projectAppService; _options = options.Value; }
public TimesheetPendingController(ITimesheetAppService appService, IProjectAppService projectService, IApproveLogAppService alService, Employee.IEmployeeAppService employeeAppService, IUserSettingAppService usService) { _appService = appService; _projectService = projectService; _alService = alService; _employeeAppService = employeeAppService; _usService = usService; }
public IndexModel( IDocumentAppService documentAppService, IDocumentToHtmlConverterFactory documentToHtmlConverterFactory, IProjectAppService projectAppService, IOptions <DocsUiOptions> options) { ObjectMapperContext = typeof(DocsWebModule); _documentAppService = documentAppService; _documentToHtmlConverterFactory = documentToHtmlConverterFactory; _projectAppService = projectAppService; _uiOptions = options.Value; }
public TimesheetController(ITimesheetAppService appService, IProjectAppService projectService, IApproveLogAppService alService, Holiday.IHolidayAppService holidayService, IUserSettingAppService usService, ITeamAppService teamService) { _appService = appService; _projectService = projectService; _alService = alService; _holidayService = holidayService; _usService = usService; _teamService = teamService; }
public ProjectWorker(IProjectAppService projectAppService, IConfiguration configuration, IObjectMapper objectMapper) { _projectAppService = projectAppService; _objectMapper = objectMapper; JobDetail = JobBuilder.Create <ProjectWorker>().WithIdentity(nameof(ProjectWorker)).Build(); Trigger = TriggerBuilder.Create().WithIdentity(nameof(ProjectWorker)).WithSimpleSchedule(s => s.WithIntervalInMinutes(15).RepeatForever().WithMisfireHandlingInstructionIgnoreMisfires()).Build(); ScheduleJob = async scheduler => { if (!await scheduler.CheckExists(JobDetail.Key)) { await scheduler.ScheduleJob(JobDetail, Trigger); } }; _configuration = configuration; }
public IndexModel( IDocumentAppService documentAppService, IDocumentToHtmlConverterFactory documentToHtmlConverterFactory, IProjectAppService projectAppService, IOptions <DocsUiOptions> options, IDocumentSectionRenderer documentSectionRenderer, IVersionHelper versionHelper) { ObjectMapperContext = typeof(DocsWebModule); _documentAppService = documentAppService; _documentToHtmlConverterFactory = documentToHtmlConverterFactory; _projectAppService = projectAppService; _documentSectionRenderer = documentSectionRenderer; _versionHelper = versionHelper; _uiOptions = options.Value; }
public async Task <PartialViewResult> CreateOrUpdateResourcesModal(long?projectId = null, bool?reloadPartial = null) { PartialViewResult partialViewResult; IProjectAppService projectAppService = this._projectAppService; NullableIdInput <long> nullableIdInput = new NullableIdInput <long>() { Id = projectId }; GetProjectResourceForEditOutput projectResourcesForEdit = await projectAppService.GetProjectResourcesForEdit(nullableIdInput); CreateOrUpdateProjectResourcesModalViewModel createOrUpdateProjectResourcesModalViewModel = new CreateOrUpdateProjectResourcesModalViewModel(projectResourcesForEdit) { ProjectId = projectId.Value }; Project project = await this._projectAppService.GetProject(projectId.Value); ((dynamic)this.ViewBag).ProjectName = project.Label; partialViewResult = (!reloadPartial.HasValue || !bool.Parse(reloadPartial.ToString()) ? this.PartialView("_CreateOrUpdateResourcesModal", createOrUpdateProjectResourcesModalViewModel) : this.PartialView("_ListResourcesView", createOrUpdateProjectResourcesModalViewModel)); return(partialViewResult); }
public HomeController(IProjectAppService projectAppService, IEmployeeAppService employeeAppService, ITeamAppService teamService) { _projectAppService = projectAppService; _employeeAppService = employeeAppService; _teamService = teamService; }
public async Task <IActionResult> GetAsync([FromServices] IProjectAppService projectAppService, string projectId) { return(Ok(await projectAppService.GetAsync(projectId))); }
public async Task <IActionResult> PostAsync([FromServices] IProjectAppService projectAppService, [FromBody] Project project) { await projectAppService.CreateAsync(project); return(Created($"{Request.Path}", project)); }
public IndexModel(IProjectAppService projectAppService) { _projectAppService = projectAppService; }
public ActivitysController(IActivityAppService activityAppService, IProjectAppService projectAppService) { _activityAppService = activityAppService; _projectAppService = projectAppService; }
public ProjectController(IProjectAppService projectAppService, ISdlcSystemAppService sdlcSystemAppService) { _projectAppService = projectAppService; _sdlcSystemAppService = sdlcSystemAppService; }
public ApplicationService_Tests() { _projectAppService = GetRequiredService <IProjectAppService>(); _testData = GetRequiredService <DocsTestData>(); }
public NoticesController(INoticeAppService noticeAppService, IProjectAppService projectAppService) { _noticeAppService = noticeAppService; _projectAppService = projectAppService; }
public DocsProjectController(IProjectAppService projectAppService) { ProjectAppService = projectAppService; }
public ProjectController(IProjectAppService projectAppService) : base(projectAppService) { _projectAppService = projectAppService; }