/// <summary>
        /// Creates the gain short screener.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A GainShortScreener.</returns>
        public GainShortScreener CreateGainShortScreener( Visit visit )
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName<ActivityType> ( WellKnownNames.VisitModule.ActivityType.GainShortScreener );
            var gainShortScreener = new GainShortScreener ( visit, activityType );

            _gainShortScreenerRepository.MakePersistent ( gainShortScreener );
            return gainShortScreener;
        }
Example #2
0
        /// <summary>
        /// Creates the gain short screener.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A GainShortScreener.</returns>
        public GainShortScreener CreateGainShortScreener(Visit visit)
        {
            var activityType      = _lookupValueRepository.GetLookupByWellKnownName <ActivityType> (WellKnownNames.VisitModule.ActivityType.GainShortScreener);
            var gainShortScreener = new GainShortScreener(visit, activityType);

            _gainShortScreenerRepository.MakePersistent(gainShortScreener);
            return(gainShortScreener);
        }
Example #3
0
 /// <summary>
 /// Destroys the GainShortScreener.
 /// </summary>
 /// <param name="gainShortScreener">The gain short screener.</param>
 public void DestroyGainShortScreener(GainShortScreener gainShortScreener)
 {
     _gainShortScreenerRepository.MakeTransient(gainShortScreener);
 }
 /// <summary>
 /// Destroys the GainShortScreener.
 /// </summary>
 /// <param name="gainShortScreener">The gain short screener.</param>
 public void DestroyGainShortScreener( GainShortScreener gainShortScreener )
 {
     _gainShortScreenerRepository.MakeTransient ( gainShortScreener );
 }