Exemple #1
0
        public async Task <GetProjectAuditResultBaseOutput> GetMemberResultForEditAsync(GetProjectResultForEditInput input)
        {
            var ret     = new GetProjectLeaderResultOutput();
            var service = Abp.AbpBootstrapper.Create <Abp.Modules.AbpModule>()
                          .IocManager.IocContainer.Resolve <IProjectAppService>();
            var projectBase = await service.GetProjectBudgetForEdit(new GetProjectForEditInput()
            {
                AppraisalTypeId = 8, Id = input.ProjectBaseId
            });

            ret.ProjectInfo   = projectBase;
            ret.ProjectBaseId = input.ProjectBaseId;
            ret.AuditRoleId   = input.AuditRoleId;
            ret.Result        = await GetAuditMemberResult(input.ProjectBaseId, input.AuditRoleId, AbpSession.UserId.Value);

            return(ret);
        }
Exemple #2
0
        public async Task <GetProjectLeaderResultOutput> GetLeaderAuditAsync(GetProjectResultForEditInput input)
        {
            var ret     = new GetProjectLeaderResultOutput();
            var service = Abp.AbpBootstrapper.Create <Abp.Modules.AbpModule>()
                          .IocManager.IocContainer.Resolve <IProjectAppService>();
            var projectBase = await service.GetSingleProject(new GetSingleProjectInput()
            {
                Id = input.ProjectBaseId
            });

            ret.ProjectInfo   = projectBase;
            ret.ProjectBaseId = input.ProjectBaseId;
            ret.Result        = await GetAuditMemberResult(input.ProjectBaseId, (int)AuditRoleEnum.项目负责人);

            ret.Finishs = await GetFinishResult(input.ProjectBaseId, (int)AuditRoleEnum.项目负责人);

            return(ret);
        }