public ShowPlaces() { proxy = new AgensyServiceClient(); list_showPlace = new List<ShowPlaceInfo>(); var t = from i in proxy.GetAllImagesShowPlace() join sp in proxy.GetAllShowPlace() on i.Id equals sp.Id join ct in proxy.GetAllCitys() on sp.CityId equals ct.Id join c in proxy.GetAllCountry() on ct.CountryId equals c.Id select new { i.ImageURL, sp.ShowPlaceName, ct.CityName, c.CountryName }; spi_list = new List<ShowPlaceInfo>(); countries = proxy.GetAllCountry(); cities = proxy.GetAllCitys(); CB_COUNTRY_LIST = new List<string>(); CB_COUNTRY_LIST.Add("Всі країни"); SelectCountry = "Всі країни"; foreach (var item in countries) { CB_COUNTRY_LIST.Add(item.CountryName); } foreach (var item in t) { spi_list.Add(new ShowPlaceInfo { IMG = item.ImageURL, NAME = item.ShowPlaceName, CITY = item.CityName, COUNTRY = item.CountryName }); } list_showPlace = spi_list; }
public ShowHotel() { proxy = new AgensyServiceClient(); list_showHotel = new List <HotelInfo>(); var t = from i in proxy.GetAllImagesHotels() join h in proxy.GetAllHotels() on i.Id equals h.Id join ct in proxy.GetAllCitys() on h.CityId equals ct.Id join c in proxy.GetAllCountry() on ct.CountryId equals c.Id select new { i.ImageURL, h.HotelsName, ct.CityName, c.CountryName }; hotel_list = new List <HotelInfo>(); countries = proxy.GetAllCountry(); cities = proxy.GetAllCitys(); CB_COUNTRY_LIST = new List <string>(); CB_COUNTRY_LIST.Add("Всі країни"); SelectCountry = "Всі країни"; foreach (var item in countries) { CB_COUNTRY_LIST.Add(item.CountryName); } foreach (var item in t) { hotel_list.Add(new HotelInfo { IMG = item.ImageURL, NAME = item.HotelsName, CITY = item.CityName, COUNTRY = item.CountryName }); } list_showHotel = hotel_list; }
public LogIn() { proxy = new AgensyServiceClient(); ButtonLogin = new BtnLogIn(this); ButtonRegistr = new BtnRegistration(this); }
public Workers() { proxy = new AgensyServiceClient(); getWorkers(); ButtonAddWork = new BtnAddWorker(this); }
public NextTours(PersonDTO pers) { proxy = new AgensyServiceClient(); person = pers; ButtonAddMyTours = new BtnAddMyTours(this); toursBR = new ToursDTO(); getTour(); }
public ClientsAgency() { proxy = new AgensyServiceClient(); selectClient = new PersonDTO(); getClients(); ButtonClick = new ButtonOpenRedagCl(this); ButtonOk = new ButtonOkRedag(this); ButtonCen = new ButtonCencelRedag(this); }
public ProfilClient(PersonDTO pers) { proxy = new AgensyServiceClient(); Person = pers; LastName = pers.LastName; FirstName = pers.FirstName; SurName = pers.SurName; Email = pers.Email; BirtDay = pers.DateOfBirth; Phone = pers.PhoneNumber; ButtonRedagInfoCl = new BtnRedagInfoClient(this); }
public ProfilWorker(PersonDTO pers) { proxy = new AgensyServiceClient(); Person = pers; LastName = pers.LastName; FirstName = pers.FirstName; SurName = pers.SurName; Email = pers.Email; BirtDay = pers.DateOfBirth; Phone = pers.PhoneNumber; PersonStatus = pers.PersonStatus; DateOfRec = pers.DateOfCreateAccount; ButtonRedagInfoW = new BtnRedagInfoWorker(this); }
public AddWorker() { proxy = new AgensyServiceClient(); PersonStatus = "manager"; birtDay = new DateTime(); birtDay = DateTime.Now; Login = ""; LastName = ""; FirstName = ""; SurName = ""; Email = ""; Phone = ""; Password = ""; ButtonOk = new BtnOk(this); ButtonCencel = new BtnCencel(this); }
static void Main(string[] args) { AgensyServiceClient client = new AgensyServiceClient(); //var temp = client.GetAllTours(); //ToursDTO toursdto = temp.First(x => x.Id == 6); //toursdto.MaxTourists = 15; //client.UpdateTours(toursdto); //var tempTours = client.getActualTour(); //foreach (var item in tempTours) //{ // Console.Write(item.Id); // Console.Write(" "); // Console.Write(item.TourName); // Console.Write(" "); // Console.Write(item.StartDate); // Console.Write(" "); // Console.Write(item.MaxTourists); // Console.WriteLine(); //} var tempPersons = client.GetAllPerson(); foreach (var item in tempPersons) { Console.Write(item.Id + " "); Console.Write(item.FirstName + " " + item.LastName + " " + item.SurName); Console.WriteLine(); foreach (var i in client.getMyTour(item)) { Console.Write("---"); Console.Write(i.Id + " "); Console.Write(i.TourName + " " + i.Price + " " + i.MaxTourists); Console.WriteLine(); } } Console.WriteLine("End"); }
public EndedTours() { proxy = new AgensyServiceClient(); getTour(); }
public MyTours(PersonDTO pers) { proxy = new AgensyServiceClient(); person = pers; getTour(); }