Beispiel #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>();
        }
        public frmTourGroupManager()
        {
            InitializeComponent();

            _tourGroupBus = new TourGroupBUS();

            _tourBus = new TourBUS();

            _passengerBus = new PassengerBUS();

            _customerBus = new CustomerBUS();

            _employeeTourGroupBus = new EmployeeTourGroupBUS();

            _transportTourGroupBus = new TransportTourGroupBUS();

            _transportBus = new TransportBUS();

            _employeeBus = new EmployeeBUS();

            _transportPresenter = new TransportPresenter(this);

            _tourGroupSearchPresenter = new TourGroupSearchPresenter(this);

            init();
        }
        public TourGroupSearchPresenter(ITourGroupSearchView view)
        {
            _view = view;

            _tourGrourSearch = new SearchEngine <TourGroup>();

            _bus = new TourGroupBUS();
        }
        private void init(int tourGroupId)
        {
            _tourGroupBus         = new TourGroupBUS();
            _tourGrouptab3        = _tourGroupBus.getTourGroupById(tourGroupId);
            _tourGroupNameLb.Text = _tourGrouptab3.name;
            _tourNameLb.Text      = _tourGrouptab3.Tour.name;
            _departDateLb.Text    = _tourGrouptab3.depart_date.ToString();
            _returnDateLb.Text    = _tourGrouptab3.return_date.ToString();

            _passengerBs.DataSource = _tourGroupBus.getCustomerInTourGroup(tourGroupId);
            _employeeBs.DataSource  = _tourGroupBus.getEmployeeInTourGroup(tourGroupId);
            _transportBs.DataSource = _tourGroupBus.getTransportInTourGroup(tourGroupId);
        }
 public void refresh()
 {
     _bus = new TourGroupBUS();
 }
 public TourGroupSearchEngine()
 {
     _bus   = new TourGroupBUS();
     _entry = _bus.getEntries();
 }