Beispiel #1
0
        /// <summary>
        /// Creates the Gpra interview.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A GpraInterview.</returns>
        public GpraInterview CreateGpraInterview(Visit visit)
        {
            var activityType  = _lookupValueRepository.GetLookupByWellKnownName <ActivityType>(WellKnownNames.VisitModule.ActivityType.GpraInterview);
            var gpraInterview = new GpraInterview(visit, activityType);

            _gpraInterviewRepository.MakePersistent(gpraInterview);

            return(gpraInterview);
        }
Beispiel #2
0
        /// <summary>
        /// Destroys the Gpra interview.
        /// </summary>
        /// <param name="gpraInterview">The Gpra interview.</param>
        public void DestroyGpraInterview(GpraInterview gpraInterview)
        {
            Check.IsNotNull(gpraInterview, "GpraInterview is required.");

            _gpraInterviewRepository.MakeTransient(gpraInterview);
        }
        /// <summary>
        /// Destroys the Gpra interview.
        /// </summary>
        /// <param name="gpraInterview">The Gpra interview.</param>
        public void DestroyGpraInterview(GpraInterview gpraInterview)
        {
            Check.IsNotNull(gpraInterview, "GpraInterview is required.");

            _gpraInterviewRepository.MakeTransient(gpraInterview);
        }
        /// <summary>
        /// Creates the Gpra interview.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A GpraInterview.</returns>
        public GpraInterview CreateGpraInterview(Visit visit )
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName<ActivityType>(WellKnownNames.VisitModule.ActivityType.GpraInterview);
            var gpraInterview = new GpraInterview ( visit, activityType );

            _gpraInterviewRepository.MakePersistent ( gpraInterview );

            return gpraInterview;
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraInterviewSectionAggregateNodeBase"/> class.
 /// </summary>
 /// <param name="gpraInterview">The gpra interview.</param>
 protected GpraInterviewSectionAggregateNodeBase(GpraInterview gpraInterview)
 {
     GpraInterview = gpraInterview;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraInterviewSectionAggregateNodeBase"/> class.
 /// </summary>
 /// <param name="gpraInterview">The gpra interview.</param>
 protected GpraInterviewSectionAggregateNodeBase(GpraInterview gpraInterview)
 {
     GpraInterview = gpraInterview;
 }