コード例 #1
0
        public fmSearch()
        {
            InitializeComponent();
            postInit();
            _customerSearchpresenter  = new CustomerSearchPresenter(this);
            _tourSearchpresenter      = new TourSearchPresenter(this);
            _tourGroupSearchPresenter = new TourGroupSearchPresenter(this);

            _bus   = new TourCategoryBUS();
            _entry = _bus.getEntries();

            _destinationBus = new DestinationBUS();
            _detinations    = _destinationBus.getEntries();

            _tourPriceBus = new TourPriceBUS();
            _tourPrices   = _tourPriceBus.getEntries();
            _minPrice     = _tourPriceBus.getMinPrice();
            _maxPrice     = _tourPriceBus.getMaxPrice();

            _transportBUS = new TransportBUS();
            _transports   = _transportBUS.getEntries();

            _tourGroupBus  = new TourGroupBUS();
            _minDepartDate = _tourGroupBus.getMinDepartDate();
            _maxReturnDate = _tourGroupBus.getMaxReturnDate();

            tourGroupSearchEngine = new SearchEngine <TourGroup>();
        }
コード例 #2
0
        public fmSearch()
        {
            InitializeComponent();
            postInit();
            _customerSearchpresenter = new CustomerSearchPresenter(this);
            _tourSearchpresenter     = new TourSearchPresenter(this);

            _bus   = new TourCategoryBUS();
            _entry = _bus.getEntries();

            _destinationBus = new DestinationBUS();
            _detinations    = _destinationBus.getEntries();

            _tourPriceBus = new TourPriceBUS();
            _tourPrices   = _tourPriceBus.getEntries();
            _minPrice     = _tourPriceBus.getMinPrice();
            _maxPrice     = _tourPriceBus.getMaxPrice();

            _transportPresenter       = new TransportPresenter(this);
            _tourGroupSearchPresenter = new TourGroupSearchPresenter(this);
        }
コード例 #3
0
 public fmTourManager()
 {
     InitializeComponent();
     postInit();
     _tourBus        = new TourBUS();
     _categoryBus    = new TourCategoryBUS();
     _destinationBus = new DestinationBUS();
     _toursiteBus    = new TourSiteBUS();
     _priceBus       = new TourPriceBUS();
     _tour           = _tourBus.getEntries();
     _category       = _categoryBus.getEntries();
     //_destination = _destinationBus.getEntries();
     _destination          = _tourBus.getAllDestination();
     _isAdd                = true;
     _currentTour          = new Tour();
     _currentTour          = null;
     _minDate              = new DateTime(2000, 1, 1);
     _maxDate              = new DateTime(2100, 1, 1);
     dtpStart_date.MinDate = _minDate;
     dtpStart_date.MaxDate = _maxDate;
     dtpEnd_date.MinDate   = _minDate;
     dtpEnd_date.MaxDate   = _maxDate;
     dtpEnd_date.Value     = DateTime.Now.AddYears(1);
 }
コード例 #4
0
 public void reLoadAll()
 {
     _bus = new DestinationBUS();
     this.loadAllDestinations();
 }
コード例 #5
0
 public DestinationPresenter(IDestinationView view)
 {
     _view         = view;
     _bus          = new DestinationBUS();
     _searchEngine = new SearchEngine <Destination>();
 }
コード例 #6
0
 public void refresh()
 {
     _bus = new DestinationBUS();
 }
コード例 #7
0
 public DestinationSearchEngine()
 {
     _bus   = new DestinationBUS();
     _entry = _bus.getEntries();
 }