public Control ServiceFindControl(object item)
        {
            ITourService service =
                (ITourService)item;

            return(FindInClients(service));
        }
Beispiel #2
0
 public CityController(IMenuService valMenurService, IGeneralSearchService valGeneralService, ICityService valCityService, ITourService valTourService)
 {
     _vMenuService    = valMenurService;
     _vCityService    = valCityService;
     _vTourService    = valTourService;
     _vGeneralService = valGeneralService;
 }
Beispiel #3
0
        public bool Delete(ITourService service)
        {
            bool res = false;

            try
            {
                this.query.Parameters.Clear();
                this.query.Parameters.Add(new SqlParameter("@GroupServiceId", service.Id));


                int affected;
                res = this.query.ExecuteUpdateProc("TourGroupServiceDeleteById", out affected);
            }
            catch (Exception ex)
            {
                try
                {
                    DomainModel.Application.Status.Update(
                        StatusController.Abstract.StatusTypes.Error,
                        "",
                        ex.Message);
                }
                catch { }
            }

            return(res);
        }
Beispiel #4
0
        public NotifiFeedbackViewModel()
        {
            try
            {
                _commonFun        = Resolver.Resolve <ICommonFun>();
                _commonHelper     = Resolver.Resolve <CommonHelper>();
                _notifiMngService = Resolver.Resolve <INotifiMngService>();
                _tourService      = Resolver.Resolve <ITourService>();

                //Device.BeginInvokeOnMainThread(() =>
                //{
                //    GetNoticeApproalDetail(NotifiContentItem.NoticeReaderId);

                //});


                MessagingCenter.Unsubscribe <List <RequestParameter> >(this, MessageConst.CASEATTACH_DELETE);

                MessagingCenter.Subscribe <string>(
                    this,
                    MessageConst.CASEATTACH_DELETE,
                    (SeqNo) =>
                {
                    DeleteCaseAttach(SeqNo);
                });
            }
            catch (Exception)
            {
                _commonFun.AlertLongText("操作异常,请重试。-->NotifiFeedbackViewModel");
                return;
            }
        }
 public TourController(ITourService services, IMapper mapper, ISystemAuditService systemAuditService, IHttpContextAccessor accessor)
 {
     _services           = services;
     _mapper             = mapper;
     _systemAuditService = systemAuditService;
     _accessor           = accessor;
 }
Beispiel #6
0
 public Directories(IAccountService accountService,
                    ISubdivisionsService subdivisionsService,
                    IPositionService positionService,
                    IDormitoryService dormitoryService,
                    IDepartmentalService departmentalService,
                    IQualificationService scientificService,
                    ISocialActivityService socialActivity,
                    IPrivilegesService privilegesService,
                    IHobbyService hobbyService,
                    ITravelService travelService,
                    IWellnessService wellnessService,
                    ITourService tourService,
                    ICulturalService culturalService,
                    IActivitiesService activitiesService,
                    IAwardService awardService,
                    IMaterialAidService materialAidService)
 {
     _accountService      = accountService;
     _subdivisionsService = subdivisionsService;
     _positionService     = positionService;
     _dormitoryService    = dormitoryService;
     _departmentalService = departmentalService;
     _scientificService   = scientificService;
     _socialActivity      = socialActivity;
     _privilegesService   = privilegesService;
     _hobbyService        = hobbyService;
     _travelService       = travelService;
     _wellnessService     = wellnessService;
     _tourService         = tourService;
     _culturalService     = culturalService;
     _activitiesService   = activitiesService;
     _awardService        = awardService;
     _materialAidService  = materialAidService;
 }
 public Startup
 (
     IConfiguration configuration,
     IDeplacementService DeplacementService,
     IPartieService PartieService,
     IPersonnageJoueurService PersonnageJoueurService,
     IAttaqueService AttaqueService,
     IParametrageService ParametrageService,
     IPositionService PositionService,
     IJoueurService JoueurService,
     IPNJService PNJService,
     ITourService TourService
 )
 {
     Configuration       = configuration;
     _deplacementService = DeplacementService;
     _partieService      = PartieService;
     _personnageService  = PersonnageJoueurService;
     _attaqueService     = AttaqueService;
     _parametrageService = ParametrageService;
     _positionService    = PositionService;
     _joueurService      = JoueurService;
     _pNJService         = PNJService;
     _tourService        = TourService;
 }
        public LocalRegistScoreViewModel()
        {
            try
            {
                _tourService       = Resolver.Resolve <ITourService>();
                _commonFun         = Resolver.Resolve <ICommonFun>();
                _commonHelper      = Resolver.Resolve <CommonHelper>();
                _localScoreService = Resolver.Resolve <ILocalScoreService>();
                _remoteService     = Resolver.Resolve <IRemoteService>();

                _tapCommand = new Command(ImageTaped);

                MessagingCenter.Subscribe <LocalRegistScorePage>(this, "CheckBoxChanged", (obj) =>
                {
                    if (CSList.Any(p => p.IsCheck == true))
                    {
                        CurrentScore        = "0";
                        CurrentSystem.Score = 0;
                    }
                    else
                    {
                        CurrentScore        = "1";
                        CurrentSystem.Score = 1;
                    }
                });

                MessagingCenter.Subscribe <StandardPic>(this, "DeleteLossImage", (obj) =>
                {
                    //删除失分照片
                    DeleteImage(obj);
                });

                MessagingCenter.Subscribe <PictureStandard>(this, "RegistScoreItemTapped", (obj) =>
                {
                    UploadStandPic(obj.StandardPicId);
                });

                MessagingCenter.Subscribe <PictureStandard>(this, "PreviewPlanAttechment", (obj) =>
                {
                    if (!string.IsNullOrEmpty(obj.Url))
                    {
                        PreviewStanderImage(obj.Url);
                    }
                });

                MessagingCenter.Subscribe <PictureStandard>(this, "DeletePlanAttechment", (obj) =>
                {
                    if (!string.IsNullOrEmpty(obj.Url))
                    {
                        DeleteStanderImage(obj);
                    }
                });
            }
            catch (Exception)
            {
                _commonFun.AlertLongText("操作异常,请重试。-->CustImproveViewModel");
                return;
            }
        }
Beispiel #9
0
 public OrderController(IOrderService orderService,
                        ITourService tourService,
                        IUserService userService)
 {
     this.orderService = orderService;
     this.tourService  = tourService;
     this.userService  = userService;
 }
Beispiel #10
0
 public OrderController(IOrderService orderService, IUserService userService,
                        ITourService tourService, IMapper mapper)
 {
     _orderService = orderService;
     _userService  = userService;
     _tourService  = tourService;
     _mapper       = mapper;
 }
Beispiel #11
0
 public ToursQuery(ITourService tourServices)
 {
     Name = "Query";
     Field <ListGraphType <TourType> >(
         "tours",
         resolve: context => tourServices.GetAllToursAsync()
         );
 }
 public AdminController(ITourInfoService tourInfoService, IUserService userService, IFriendService friendService,
                        ITourService tourService)
 {
     _tourInfoService = tourInfoService;
     _userService     = userService;
     _friendService   = friendService;
     _tourService     = tourService;
 }
Beispiel #13
0
 public OrderService(IOrderRepository orderRepository,
                     ITourService tourService,
                     IUserService userService)
 {
     this.orderRepository = orderRepository;
     this.tourService     = tourService;
     this.userService     = userService;
 }
Beispiel #14
0
 public TourController(ITourService tourService,
                       ITypeService typeService,
                       IUserService userService)
 {
     this.tourService = tourService;
     this.typeService = typeService;
     this.userService = userService;
 }
 public TourManagementController(ITourService tourService, ICityService cityService, IHotelService hotelService)
 {
     this.tourService = tourService;
     this.cityService = cityService;
     this.hotelService = hotelService;
     Mapper.CreateMap<TourViewModel, TourDto>();
     Mapper.CreateMap<TourDto, TourViewModel>();
 }
Beispiel #16
0
 public ToursController(IErrorService errorService
                        , ITourService tourService
                        , ITourAttributeValueService tourAttributeValueService
                        , IUnitOfWork uow) : base(errorService)
 {
     _tourService = tourService;
     _tourAttributeValueService = tourAttributeValueService;
     _uow = uow;
 }
Beispiel #17
0
 /// <summary>
 /// Creating constructor for users controller for accessing
 /// </summary>
 /// <param name="userService">userService</param>
 /// <param name="tourService">tourService</param>
 /// <param name="actionService">actionService</param>
 /// <param name="cachingService">cachingService</param>
 public UserController(IUserService userService, ITourService tourService,
                       IActionService actionService, ICachingService cachingService, ICampaignService campaignService)
 {
     this.userService     = userService;
     this.tourService     = tourService;
     this.actionService   = actionService;
     this.cachingService  = cachingService;
     this.campaignService = campaignService;
 }
Beispiel #18
0
 public TourServiceController(ITourInfoService tourInfoService, IUserService userService,
                              IFriendService friendService, ITourService tourService, IServiceService serviceService)
 {
     _tourInfoService = tourInfoService;
     _userService     = userService;
     _friendService   = friendService;
     _tourService     = tourService;
     _serviceService  = serviceService;
 }
Beispiel #19
0
 /// <summary>
 /// Creating constructor for Dashboards controller for accessing
 /// </summary>
 /// <param name="userService"></param>
 /// <param name="tourService"></param>
 /// <param name="contactService"></param>
 /// <param name="cachingService"></param>
 /// <param name="reportService"></param>
 /// <param name="actionService"></param>
 public DashboardsController(IUserService userService, ITourService tourService, IContactService contactService,
                             ICachingService cachingService, IReportService reportService, IActionService actionService)
 {
     this.userService    = userService;
     this.tourService    = tourService;
     this.contactService = contactService;
     this.cachingService = cachingService;
     this.reportService  = reportService;
     this.actionService  = actionService;
 }
 public TourAndDetailsService(IUnitOfWork data)
 {
     Database = data;
     tour     = new TourService(data);
     type     = new TourTypeService(data);
     info     = new TourInfoService(data);
     list     = new ListOfCountryService(data);
     country  = new CountryService(data);
     region   = new RegionService(data);
 }
Beispiel #21
0
 public TourServiceTests()
 {
     _userAppService      = Resolve <IUserAppService>();
     _mindfightService    = Resolve <IMindfightService>();
     _mindfightRepository = Resolve <IRepository <Models.Mindfight, long> >();
     _teamService         = Resolve <ITeamService>();
     _teamRepository      = Resolve <IRepository <Models.Team, long> >();
     _registrationService = Resolve <IRegistrationService>();
     _tourService         = Resolve <ITourService>();
     _tourRepository      = Resolve <IRepository <Models.Tour, long> >();
 }
Beispiel #22
0
        public SystemListViewModel()
        {
            try
            {
                _tourService = Resolver.Resolve <ITourService>();
                _commonFun   = Resolver.Resolve <ICommonFun>();

                if (CommonContext.Account.UserType == "S" || CommonContext.Account.UserType == "D")
                {
                    //cannot display the set button
                    IsSetVisible = false;
                }
                else
                {
                    IsSetVisible = true;
                }

                MessagingCenter.Subscribe <List <ItemOfTaskDto> >(this, "SendSystemList", (obj) =>
                {
                    _taskId = obj.FirstOrDefault().TPId.ToString();
                    Init(obj);
                });

                MessagingCenter.Subscribe <CommonMessage>(this, "ResetTaskID", (obj) =>
                {
                    if (obj.TaskID == "-1")
                    {
                        _refresh = false;
                    }
                    else
                    {
                        _refresh = true;
                    }
                });

                MessagingCenter.Subscribe <SystemListPage>(this, "RefreshSystem", (obj) =>
                {
                    if (_refresh)
                    {
                        RefreshPage(TaskId);
                    }
                });

                MessagingCenter.Subscribe <ItemOfTaskDto>(this, "GoRegisterPage", (obj) =>
                {
                    GoRegistScore(obj);
                });
            }
            catch (Exception)
            {
                _commonFun.AlertLongText("操作异常,请重试。-->SystemListViewModel");
                return;
            }
        }
        public CaseRegViewModel()
        {
            _tourService  = Resolver.Resolve <ITourService>();
            _commonFun    = Resolver.Resolve <ICommonFun>();
            _commonHelper = Resolver.Resolve <CommonHelper>();
            _caseService  = Resolver.Resolve <ICaseService>();
            IsLoading     = false;
            CaseType      = "请选择";

            MessagingCenter.Unsubscribe <List <RequestParameter> >(this, MessageConst.CASEATTACH_DELETE);

            MessagingCenter.Subscribe <string>(
                this,
                MessageConst.CASEATTACH_DELETE,
                (SeqNo) =>
            {
                DeleteCaseAttach(SeqNo);
            });

            MessagingCenter.Subscribe <List <RequestParameter> >(this, "GetCaseInfoDetail", (param) =>
            {
                if (param != null && param.Count > 0)
                {
                    paramList     = param;
                    string caseId = param.Find(p => p.Name == "caseId").Value;
                    GetCaseInfoDetail(caseId);
                }
            });

            MessagingCenter.Subscribe <string>(this, "InitCaseRegPage", (param) =>
            {
                Init(0);
            });

            Device.BeginInvokeOnMainThread(async() =>
            {
                var result = await _caseService.GetTypeFromHiddenCode("12");
                if (null != result && result.ResultCode == Module.ResultType.Success)
                {
                    var caseTypeList = JsonConvert.DeserializeObject <List <NameValueObject> >(result.Body);

                    if (caseTypeList != null && caseTypeList.Count > 0)
                    {
                        foreach (var item in caseTypeList)
                        {
                            _dIcCaseType.Add(item.Value, item.Name);
                        }
                    }
                    else
                    {
                    }
                }
            });
        }
Beispiel #24
0
 public UsersController(ITourInfoService tourInfoService, IUserService userService,
                        IFriendService friendService, ITourService tourService, IServiceService serviceService,
                        IPostService postService)
 {
     _tourInfoService = tourInfoService;
     _userService     = userService;
     _friendService   = friendService;
     _tourService     = tourService;
     _serviceService  = serviceService;
     _postService     = postService;
 }
Beispiel #25
0
 public ServiceInject(ITourService tours,
                      IClientService clients,
                      IExcursionService excursions,
                      IExcursionSightService excursionSights,
                      IUserService users)
 {
     Tours           = tours;
     Clients         = clients;
     Excursions      = excursions;
     ExcursionSights = excursionSights;
     Users           = users;
 }
Beispiel #26
0
 public UpdatePopViewModel()
 {
     try
     {
         _tourService = Resolver.Resolve <ITourService>();
         _commonFun   = Resolver.Resolve <ICommonFun>();
     }
     catch (Exception)
     {
         _commonFun.AlertLongText("操作异常,请重试。-->UpdatePopViewModel");
         return;
     }
 }
Beispiel #27
0
        public void CopyTo(ITourService service)
        {
            service.Id = this.id;

            this.costDetails.CopyTo(service.CostDetails);
            this.payments.CopyTo(service.Payments);
            this.Bill.CopyTo(service.Bill);
            this.serviceType.CopyTo(service.Detail);

            this.DeletedPayments.CopyTo(service.DeletedPayments);

            service.IsDirty = this.IsDirty;
        }
Beispiel #28
0
 public BulkOperationProcessor(CronJobDb cronJob, JobService jobService, string bulkOperationCacheName)
     : base(cronJob, jobService, bulkOperationCacheName)
 {
     this.accountService        = IoC.Container.GetInstance <IAccountService>();
     this.contactService        = IoC.Container.GetInstance <IContactService>();
     this.advancedSearchService = IoC.Container.GetInstance <IAdvancedSearchService>();
     this.actionService         = IoC.Container.GetInstance <IActionService>();
     this.noteService           = IoC.Container.GetInstance <INoteService>();
     this.tourService           = IoC.Container.GetInstance <ITourService>();
     this.tagService            = IoC.Container.GetInstance <ITagService>();
     this.communicationService  = IoC.Container.GetInstance <ICommunicationService>();
     this.userService           = IoC.Container.GetInstance <IUserService>();
 }
Beispiel #29
0
        public TourType(ITourService tour)
        {
            this.Name        = nameof(TourDto);
            this.Description = "Touristic tours for adventure";

            Field(c => c.Name);

            Field(c => c.Description);

            Field(c => c.Notes);

            Field(c => c.Price);
        }
Beispiel #30
0
        private Image GetServiceImage(ITourService service)
        {
            switch (service.Detail.ServiceType.Id)
            {
            case 19:     // Visit
                return(this.images["visit"]);

            case 20:     // Drink
                return(this.images["drink"]);
            }

            return(null);
        }
Beispiel #31
0
 public TicketController(
     IContinentService continentService,
     ICountryRegionService countryRegionService,
     IStateProvinceService stateProvinceService,
     IAreaService areaService,
     ITourService tourService
     )
 {
     _continentService     = continentService;
     _countryRegionService = countryRegionService;
     _stateProvinceService = stateProvinceService;
     _areaService          = areaService;
     _tourService          = tourService;
 }
 public ToursController(ITourService tourService, IExperienceQueryService experienceQueryService, IShoppingCartService shoppingCartService, IOrderService orderService, IRegistrationService registrationService, IUserService userService, ILogger logger, IDiscountCodeValidator discountCodeValidator, IUserMailer userMailer, IOrderConfirmationMailer orderConfirmationMailer, ICategoryService categoryService, IPerspectiveService perspectiveService, ISEOToolStaticPageQueryService seoToolStaticPageQueryService, IStudentInquiryMailer mailer)
 {
     _tourService = tourService;
     _experienceQueryService = experienceQueryService;
     _shoppingCartService = shoppingCartService;
     _orderService = orderService;
     _registrationService = registrationService;
     _userService = userService;
     _userMailer = userMailer;
     _orderConfirmationMailer = orderConfirmationMailer;
     _logger = logger;
     _discountCodeValidator = discountCodeValidator;
     _categoryQueryService = categoryService;
     _perspectiveService = perspectiveService;
     _seoToolStaticPageQueryService = seoToolStaticPageQueryService;
     _mailer = mailer;
 }
 public SearchController(ITourService county)
 {
     this.county = county;
 }
 public StudentInquiriesController(ITourService tourService, IStudentInquiryMailer mailer)
 {
     _tourService = tourService;
       _mailer = mailer;
 }
Beispiel #35
0
 public BookingController(ITourService tourService, IUserService userService)
 {
     this.tourService = tourService;
     this.userService = userService;
     this.user = this.userService.GetUser(this.User.Identity.Name);
 }
Beispiel #36
0
 public HomeController(ITourService tourService)
 {
     this.tourService = tourService;
     Mapper.CreateMap<TourDto, TourViewModel>();
     Mapper.CreateMap<TourDto, TourPreviewViewModel>();
 }
 public ToursController(ITourService tourService)
 {
     _tourService = tourService;
 }