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;
 }
Esempio n. 3
0
        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;
 }
Esempio n. 5
0
 public ProjectBoardAppServiceTests()
 {
     _projectAppService      = GetRequiredService <IProjectAppService>();
     _projectBoardAppService = GetRequiredService <IProjectBoardAppService>();
     _projectRepository      = GetRequiredService <IProjectRepository>();
     _userRepository         = GetRequiredService <IRepository <AppUser, Guid> >();
 }
Esempio n. 6
0
 public IndexModel(
     IProjectAppService projectAppService,
     IOptions <DocsUrlOptions> urlOptions)
 {
     _projectAppService = projectAppService;
     _urlOptions        = urlOptions.Value;
 }
Esempio n. 7
0
 public SearchModel(IProjectAppService projectAppService,
                    IDocumentAppService documentAppService,
                    HtmlEncoder encoder)
 {
     _projectAppService  = projectAppService;
     _documentAppService = documentAppService;
     _encoder            = encoder;
 }
Esempio n. 8
0
 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));
        }
Esempio n. 10
0
        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);
        }
Esempio n. 11
0
 public IndexModel(
     IDocumentAppService documentAppService,
     IDocumentConverterFactory documentConverterFactory,
     IProjectAppService projectAppService)
 {
     _documentAppService       = documentAppService;
     _documentConverterFactory = documentConverterFactory;
     _projectAppService        = projectAppService;
 }
Esempio n. 12
0
 public SearchModel(IProjectAppService projectAppService,
                    IDocumentAppService documentAppService,
                    HtmlEncoder encoder,
                    IVersionHelper versionHelper)
 {
     _projectAppService  = projectAppService;
     _documentAppService = documentAppService;
     _encoder            = encoder;
     _versionHelper      = versionHelper;
 }
Esempio n. 13
0
 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;
 }
Esempio n. 14
0
 public IndexModel(
     IDocumentAppService documentAppService,
     IDocumentToHtmlConverterFactory documentToHtmlConverterFactory,
     IProjectAppService projectAppService,
     IOptions <DocsUrlOptions> options)
 {
     _documentAppService             = documentAppService;
     _documentToHtmlConverterFactory = documentToHtmlConverterFactory;
     _projectAppService = projectAppService;
     _options           = options.Value;
 }
Esempio n. 15
0
 public TimesheetPendingController(ITimesheetAppService appService,
                                   IProjectAppService projectService,
                                   IApproveLogAppService alService,
                                   Employee.IEmployeeAppService employeeAppService,
                                   IUserSettingAppService usService)
 {
     _appService         = appService;
     _projectService     = projectService;
     _alService          = alService;
     _employeeAppService = employeeAppService;
     _usService          = usService;
 }
Esempio n. 16
0
        public IndexModel(
            IDocumentAppService documentAppService,
            IDocumentToHtmlConverterFactory documentToHtmlConverterFactory,
            IProjectAppService projectAppService,
            IOptions <DocsUiOptions> options)
        {
            ObjectMapperContext = typeof(DocsWebModule);

            _documentAppService             = documentAppService;
            _documentToHtmlConverterFactory = documentToHtmlConverterFactory;
            _projectAppService = projectAppService;
            _uiOptions         = options.Value;
        }
Esempio n. 17
0
 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;
 }
Esempio n. 18
0
        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;
        }
Esempio n. 19
0
        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;
        }
Esempio n. 20
0
        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);
        }
Esempio n. 21
0
 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));
        }
Esempio n. 24
0
 public IndexModel(IProjectAppService projectAppService)
 {
     _projectAppService = projectAppService;
 }
Esempio n. 25
0
 public ActivitysController(IActivityAppService activityAppService, IProjectAppService projectAppService)
 {
     _activityAppService = activityAppService;
     _projectAppService  = projectAppService;
 }
Esempio n. 26
0
 public ProjectController(IProjectAppService projectAppService,
                          ISdlcSystemAppService sdlcSystemAppService)
 {
     _projectAppService    = projectAppService;
     _sdlcSystemAppService = sdlcSystemAppService;
 }
 public ApplicationService_Tests()
 {
     _projectAppService = GetRequiredService <IProjectAppService>();
     _testData          = GetRequiredService <DocsTestData>();
 }
Esempio n. 28
0
 public NoticesController(INoticeAppService noticeAppService, IProjectAppService projectAppService)
 {
     _noticeAppService  = noticeAppService;
     _projectAppService = projectAppService;
 }
Esempio n. 29
0
 public DocsProjectController(IProjectAppService projectAppService)
 {
     ProjectAppService = projectAppService;
 }
Esempio n. 30
0
 public ProjectController(IProjectAppService projectAppService)
     : base(projectAppService)
 {
     _projectAppService = projectAppService;
 }