Uat_Study
			
			
		
		
							parent
							
								
									0aba716ae0
								
							
						
					
					
						commit
						ce4ca4b382
					
				| 
						 | 
				
			
			@ -52,7 +52,7 @@ namespace IRaCIS.Core.API.Controllers.Special
 | 
			
		|||
        [HttpPost, Route("trial/addOrUpdateTrial")]
 | 
			
		||||
        [Authorize(Policy = IRaCISPolicy.PM_APM)]
 | 
			
		||||
 | 
			
		||||
        //[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        public async Task<IResponseOutput<Trial>>  AddOrUpdateTrial(TrialCommand param)
 | 
			
		||||
        {
 | 
			
		||||
            var userId = Guid.Parse(User.FindFirst("id").Value);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -912,7 +912,7 @@ namespace IRaCIS.Core.Application
 | 
			
		|||
        /// <returns></returns>
 | 
			
		||||
        [HttpPut]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "BeforeOngoingCantOpt" })]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        //[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        public async Task<IResponseOutput> ConfigTrialTaskInfo(TrialTaskConfig trialConfig)
 | 
			
		||||
        {
 | 
			
		||||
            var trialInfo = (await _trialRepository.FirstOrDefaultAsync(t => t.Id == trialConfig.TrialId)).IfNullThrowException();
 | 
			
		||||
| 
						 | 
				
			
			@ -930,7 +930,7 @@ namespace IRaCIS.Core.Application
 | 
			
		|||
        /// <returns></returns>
 | 
			
		||||
        [HttpPut]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter),Arguments = new object[] { "BeforeOngoingCantOpt" })]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        //[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        public async Task<IResponseOutput> ConfigTrialReadingTaskViewRule(TrialReadingTaskViewConfig trialConfig)
 | 
			
		||||
        {
 | 
			
		||||
            var trialInfo = (await _trialRepository.FirstOrDefaultAsync(t => t.Id == trialConfig.TrialId)).IfNullThrowException();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -105,7 +105,7 @@ namespace IRaCIS.Application.Services
 | 
			
		|||
        [HttpPost]
 | 
			
		||||
        [Authorize(Policy = IRaCISPolicy.PM_APM)]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "BeforeOngoingCantOpt" })]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        //[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        public async Task<IResponseOutput> AddOrUpdateVisitStage(VisitPlanCommand visitPlan)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -208,7 +208,7 @@ namespace IRaCIS.Application.Services
 | 
			
		|||
        [HttpPost("{trialId:guid}")]
 | 
			
		||||
        [Authorize(Policy = IRaCISPolicy.PM_APM)]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "BeforeOngoingCantOpt" })]
 | 
			
		||||
        [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        //[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
 | 
			
		||||
        public async Task<IResponseOutput> ConfirmTrialVisitPlan(Guid trialId)
 | 
			
		||||
        {
 | 
			
		||||
            if (!await _trialRepository.AnyAsync(t => t.Id == trialId && (t.TrialStatusStr == StaticData.TrialState.TrialInitializing || t.TrialStatusStr == StaticData.TrialState.TrialOngoing)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue