コード例 #1
0
ファイル: GpraInterviewFactory.cs プロジェクト: girish66/REM
        /// <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);
        }
コード例 #2
0
ファイル: GpraInterviewFactory.cs プロジェクト: girish66/REM
        /// <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);
        }
コード例 #3
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);
        }
コード例 #4
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;
        }
コード例 #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;
 }
コード例 #6
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;
 }