/// <summary>
 /// Initializes a new instance of the <see cref="LinksAndTopCountService"/> class.
 /// </summary>
 public LinksAndTopCountService(Miaow.Domain.Repository.ILinkInfoRepository linkInfo,
       Miaow.Domain.Repository.ISightInfoRepository sightInfo,
       Miaow.Domain.Repository.ITourPlanRepository tourPlan,
       Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo
     )
 {
     if (linkInfo == null)
     {
         throw new ArgumentNullException("linkInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     linkInfoRepository = linkInfo;
     sightInfoRepository = sightInfo;
     tourPlanRepository = tourPlan;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
 public TourDetailController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Domain.Repository.ITourClassRepository tourClass,
     Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
     Miaow.Domain.Repository.ITourPlanRepository tourPlan,
     Miaow.Domain.Repository.ISightInfoRepository sightInfo,
     Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo)
     : base(work)
 {
     if (tourClass == null)
     {
         throw new ArgumentNullException("tourClassRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelPropertyInfoRepository is null");
     }
     tourClassRepository = tourClass;
     tourPlanDetailRepository = tourPlanDetail;
     tourPlanRepository = tourPlan;
     sightInfoRepository = sightInfo;
     hotelPropertyInfoRepository = hotelPropertyInfo;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArticleService"/> class.
 /// </summary>
 /// <param name="articleInfo">The article info.</param>
 public ArticleService(Miaow.Domain.Repository.IArticleInfoRepository articleInfo,
      Miaow.Domain.Repository.ISightInfoRepository sightInfo,
     Miaow.Domain.Repository.IArticleCommRepository articleComm,
     Miaow.Domain.Repository.IArticleClassRepository articleClass,
     Miaow.Application.jq.Service.ISightInfoService sis
     )
 {
     if (articleInfo == null)
     {
         throw new ArgumentNullException("articleInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleclassrepository is null");
     }
     if (articleClass == null)
     {
         throw new ArgumentNullException("articlecommrepository is null");
     }
     if (sis == null)
     {
         throw new ArgumentNullException("sightinfoservice is null");
     }
     articleInfoRepository = articleInfo;
     sightInfoRepository = sightInfo;
     articleCommRepository = articleComm;
     articleClassRepository = articleClass;
     sightInfoService = sis;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HotelTrafficService"/> class.
 /// </summary>
 /// <param name="hiService">The hi service.</param>
 /// <param name="ciService">The ci service.</param>
 public HotelTrafficService(IHotelInfoService hiService,
     ICityService ciService,
     Miaow.Domain.Repository.ICityAreaCodeRepository cityAreaCode,
     IHotelAroundHotelService hahService,
     Miaow.Domain.Repository.ISightInfoRepository sightInfo)
 {
     if (hiService == null)
     {
         throw new ArgumentNullException("ihotelinfoservice is null");
     }
     if (ciService == null)
     {
         throw new ArgumentNullException("cityservice is null");
     }
     if (cityAreaCode == null)
     {
         throw new ArgumentNullException("cityareacoderepository is null");
     }
     if (hahService == null)
     {
         throw new ArgumentNullException("hotelaroundhotelservice is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     hotelInfoService = hiService;
     cityService = ciService;
     cityAreaCodeRepository = cityAreaCode;
     hotelAroundHotelService = hahService;
     sightInfoRepository = sightInfo;
     Take = 10;
 }
Beispiel #5
0
 public SightInfoService( Miaow.Domain.Repository.ISightInfoRepository sightInfo)
 {
     if (sightInfo == null)
         {
             throw new ArgumentNullException(" sightInfoRepository   is null");
         }
         sightInfoRepository = sightInfo;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HeadVouchDataService"/> class.
 /// </summary>
 public HeadVouchDataService(Miaow.Domain.Repository.ISightInfoRepository sight, Miaow.Domain.Repository.ILinkInfoRepository link)
 {
     if (sight == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (link == null)
     {
         throw new ArgumentNullException("linkinforepository is null");
     }
     sightInfoRepository = sight;
     linkInfoRepository = link;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TopClassService"/> class.
 /// </summary>
 /// <param name="sightInfo">The sight info.</param>
 /// <param name="sightClass">The sight class.</param>
 public TicketService(Miaow.Domain.Repository.ISightInfoRepository sightInfo,
     Miaow.Domain.Repository.ISightClassRepository sightClass)
 {
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (sightClass == null)
     {
         throw new ArgumentNullException("sightclassrepository is null");
     }
     sightInfoRepository = sightInfo;
     sightClassRepository = sightClass;
 }
 public TourPlanDetailService(Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
     Miaow.Domain.Repository.ISightInfoRepository sightInfoRep)
 {
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     if (sightInfoRep == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     tourPlanDetailRepository = tourPlanDetail;
     sightInoRepository = sightInfoRep;
 }
Beispiel #9
0
 public SearchController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Application.jq.Service.ISearchService MiaowSearch,
     Miaow.Domain.Repository.ISightInfoRepository sightInfo)
     : base(work)
 {
     if (MiaowSearch == null)
     {
         throw new ArgumentNullException("searchService is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     searchService = MiaowSearch;
     sightInfoRepository = sightInfo;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListService"/> class.
 /// </summary>
 /// <param name="sightInfo">The sight info.</param>
 /// <param name="tourPlan">The tour plan.</param>
 /// <param name="tourPlanDetail">The tour plan detail.</param>
 public ListService(Miaow.Domain.Repository.ISightInfoRepository sightInfo,
      Miaow.Domain.Repository.ITourPlanRepository tourPlan,
      Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail
     )
 {
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightInfoRepository is null");
     }
     if (tourPlan == null)
     {
         throw new ArgumentNullException("tourPlanRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository is null");
     }
     sightInfoRepository = sightInfo;
     tourPlanRepository = tourPlan;
     tourPlanDetailRepository = tourPlanDetail;
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AddSortService"/> class.
 /// </summary>
 /// <param name="sightInfo">The sight info.</param>
 public AddSortService(Miaow.Domain.Repository.ISightInfoRepository sightInfo,
     Miaow.Domain.Repository.ISightCommRepository sightComm,
     Miaow.Domain.Repository.ISightClassRepository sightClass,
     Miaow.Domain.Repository.IPicInfoRepository picInfo,
     Miaow.Domain.Repository.ICityInfoRepository cityInfo,
     Miaow.Domain.Repository.ISightInfoSortRepository sightInfoSort)
 {
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (sightComm == null)
     {
         throw new ArgumentNullException("sightCommRepository is null");
     }
     if (sightClass == null)
     {
         throw new ArgumentNullException("sightClassRepository is null");
     }
     if (picInfo == null)
     {
         throw new ArgumentNullException("picInfoRepository is null");
     }
     if (cityInfo == null)
     {
         throw new ArgumentNullException("cityInfoRepository is null");
     }
     if (sightInfoSort == null)
     {
         throw new ArgumentNullException("sightInfoSortRepository is null");
     }
     sightInfoRepository = sightInfo;
     sightCommRepository = sightComm;
     sightClassRepository = sightClass;
     picInfoRepository = picInfo;
     cityInfoRepository = cityInfo;
     sightInfoSortRepository = sightInfoSort;
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SightInfoService"/> class.
 /// </summary>
 public SightInfoService(Miaow.Domain.Repository.ISightVouchItemRepository sightVouch,
      Miaow.Domain.Repository.ISightTicketRepository sightTicket,
      Miaow.Domain.Repository.ISightClassRepository sightClass,
      Miaow.Domain.Repository.ISightInfoRepository sightInfo,
      Miaow.Domain.Repository.IPicInfoRepository picInfo,
      Miaow.Domain.Repository.ISightCommRepository sightComm,
      Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo,
      Miaow.Domain.Repository.ICityInfoRepository cityInfo,
      Miaow.Application.jq.Service.IAddSortService addSort,
      Miaow.Application.jq.Service.ITopClassService topClass,
      Miaow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService ciService,
      Miaow.Domain.Repository.ISightInfoSortRepository sightInfoSort,
      Miaow.Domain.Repository.ISightInfoCirHotelRepository sightInfoCirHotel,
      Miaow.Domain.Repository.ISightInfoCirSightRepository sightInfoCirSight,
      Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail)
 {
     if (sightVouch == null)
     {
         throw new ArgumentNullException("sightvouchitem is null");
     }
     if (sightTicket == null)
     {
         throw new ArgumentNullException("sightticketrepository is null");
     }
     if (sightClass == null)
     {
         throw new ArgumentNullException("sightclassrepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (picInfo == null)
     {
         throw new ArgumentNullException("picinforepository is null");
     }
     if (sightComm == null)
     {
         throw new ArgumentNullException("sightCommRepository is null");
     }
     if (hotelPropertyInfo == null)
     {
         throw new ArgumentNullException("hotelpropertyinforepository is null");
     }
     if (cityInfo == null)
     {
         throw new ArgumentNullException("cityinforepository is null");
     }
     if (addSort == null)
     {
         throw new ArgumentNullException("addsortservice is null");
     }
     if (topClass == null)
     {
         throw new ArgumentNullException("topclassservice is null");
     }
     if (ciService == null)
     {
         throw new ArgumentNullException("cityinfoservice is null");
     }
     if (sightInfoSort == null)
     {
         throw new ArgumentNullException("sightInfoSortRepository is null");
     }
     if (sightInfoCirHotel == null)
     {
         throw new ArgumentNullException("sightInfoSortRepository is null");
     }
     if (sightInfoCirSight == null)
     {
         throw new ArgumentNullException("sightInfoSortRepository is null");
     }
     if (tourPlanDetail == null)
     {
         throw new ArgumentNullException("tourPlanDetailRepository in null");
     }
     sightVouchItemRepository = sightVouch;
     sightTicketRepository = sightTicket;
     sightClassRepository = sightClass;
     sightInfoRepository = sightInfo;
     picInfoRepository = picInfo;
     sightCommRepository = sightComm;
     hotelPropertyInfoRepository = hotelPropertyInfo;
     cityInfoRepository = cityInfo;
     addSortService = addSort;
     topClassService = topClass;
     cityInfoService = ciService;
     sightInfoSortRepository = sightInfoSort;
     sightInfoCirHotelRepository = sightInfoCirHotel;
     sightInfoCirSightRepository = sightInfoCirSight;
     tourPlanDetailRepository = tourPlanDetail;
 }
Beispiel #13
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TourPlanService"/> class.
        /// </summary>
        /// <param name="tourPlan">The tour plan.</param>
        /// <param name="tourPlanDetail">The tour plan detail.</param>
        /// <param name="tourClass">The tour class.</param>
        /// <param name="sightInfo">The sight info.</param>
        /// <param name="sightClass">The sight class.</param>
        /// <param name="hotelComm">The hotel comm.</param>
        /// <param name="hotelPropertyInfo">The hotel property info.</param>
        /// <param name="hotelPic">The hotel pic.</param>
        /// <param name="sightComm">The sight comm.</param>
        /// <param name="picInfo">The pic info.</param>
        /// <param name="siService">The si service.</param>
        /// <param name="ucityService">The ucity service.</param>
        /// <param name="hlmService">The HLM service.</param>
        public TourPlanService(Miaow.Domain.Repository.ITourPlanRepository tourPlan,
            Miaow.Domain.Repository.ITourPlanDetailRepository tourPlanDetail,
            Miaow.Domain.Repository.ITourClassRepository tourClass,
            Miaow.Domain.Repository.ISightInfoRepository sightInfo,
            Miaow.Domain.Repository.ISightClassRepository sightClass,
            Miaow.Domain.Repository.IHotelCommRepository hotelComm,
            Miaow.Domain.Repository.IHotelPropertyInfoRepository hotelPropertyInfo,
            Miaow.Domain.Repository.IHotelPicRepository hotelPic,
            Miaow.Domain.Repository.ISightCommRepository sightComm,
            Miaow.Domain.Repository.IPicInfoRepository picInfo,
            Miaow.Application.jq.Service.ISightInfoService siService,
            Miaow.Service.Union.Service.ICityService ucityService,
            Miaow.Service.Union.Service.IHotelLeftMidService hlmService
                 )
        {
            if (tourPlan == null)
            {
                throw new ArgumentNullException("tourPlanRepository is null");
            }
            if (tourPlanDetail == null)
            {
                throw new ArgumentNullException("tourPlanDetailRepository is null");
            }
            if (tourClass == null)
            {
                throw new ArgumentNullException("tourclassrepository is null");
            }
            if (sightInfo == null)
            {
                throw new ArgumentNullException("sightinforepository is null");
            }
            if (sightClass == null)
            {
                throw new ArgumentNullException("sightclassrepository is null");
            }

            if (hotelComm == null)
            {
                throw new ArgumentNullException("hotelcommrepository is null");
            }
            if (hotelPropertyInfo == null)
            {
                throw new ArgumentNullException("hotelpropertyinforepository is null");
            }
            if (hotelPic == null)
            {
                throw new ArgumentNullException("hotelpicrepository is null");
            }

            if (sightComm == null)
            {
                throw new ArgumentNullException("sightcommrepository is null");
            }
            if (picInfo == null)
            {
                throw new ArgumentNullException("picinforepository is null");
            }
            if (siService == null)
            {
                throw new ArgumentNullException("sightinfoservice is null");
            }
            if (ucityService == null)
            {
                throw new ArgumentNullException("unionCityService is null");
            }
            if (ucityService == null)
            {
                throw new ArgumentNullException("hotelleftmidservice is null");
            }
            tourPlanRepository = tourPlan;
            tourPlanDetailRepository = tourPlanDetail;
            tourClassRepository = tourClass;
            sightInfoRepository = sightInfo;
            sightClassRepository = sightClass;
            hotelCommRepository = hotelComm;
            hotelPropertyInfoRepository = hotelPropertyInfo;
            hotelPicRepository = hotelPic;
            sightCommRepository = sightComm;
            picInfoRepository = picInfo;
            sightInfoService = siService;
            unionCityService = ucityService;
            hotelLeftMidService = hlmService;
        }