public List <KeyValuePair <string, object> > GetAvalailabilityListDefaultValue(PriceListModel model) { var unit = TouristUnitRepository.GetTouristUnit(model.SiteCode, model.OfferCode); var list = new List <KeyValuePair <string, object> >(); list.Add(new KeyValuePair <string, object>("FromDate", unit.OpenDate)); list.Add(new KeyValuePair <string, object>("ToDate", unit.CloseDate)); list.Add(new KeyValuePair <string, object>("UnitCount", 99)); return(list); }
public List <KeyValuePair <string, object> > GetPaymentModesListDefaultValue(PriceListModel model) { var unit = TouristUnitRepository.GetTouristUnit(model.SiteCode, model.OfferCode); var list = new List <KeyValuePair <string, object> >(); list.Add(new KeyValuePair <string, object>("BookingFromDate", "12.09.2017")); list.Add(new KeyValuePair <string, object>("BookingToDate", unit.CloseDate)); list.Add(new KeyValuePair <string, object>("CheckInFromDate", unit.OpenDate)); list.Add(new KeyValuePair <string, object>("CheckInToDate", unit.CloseDate)); return(list); }
public List <KeyValuePair <string, object> > GetConditionsListDefaultValue(PriceListModel model) { var unit = TouristUnitRepository.GetTouristUnit(model.SiteCode, model.OfferCode); var list = new List <KeyValuePair <string, object> >(); list.Add(new KeyValuePair <string, object>("FromDate", unit.OpenDate)); list.Add(new KeyValuePair <string, object>("ToDate", unit.CloseDate)); list.Add(new KeyValuePair <string, object>("MinStay", 7)); list.Add(new KeyValuePair <string, object>("ReleaseDays", 7)); list.Add(new KeyValuePair <string, object>("ArrivalActual", 5)); list.Add(new KeyValuePair <string, object>("DepartureActual", 5)); return(list); }
public List <KeyValuePair <string, object> > GetActionsListDefaultValue(PriceListModel model) { var unit = TouristUnitRepository.GetTouristUnit(model.SiteCode, model.OfferCode); var list = new List <KeyValuePair <string, object> >(); list.Add(new KeyValuePair <string, object>("ActionStart", "12.09.2017")); list.Add(new KeyValuePair <string, object>("ActionEnd", unit.CloseDate)); list.Add(new KeyValuePair <string, object>("FromDate", unit.OpenDate)); if (model.ServicesList.Count == 0) { list.Add(new KeyValuePair <string, object>("ActionType", "EarlyBooking")); list.Add(new KeyValuePair <string, object>("DiscountPercent", 10)); } return(list); }
public List <KeyValuePair <string, object> > GetSeasonAndPriceDefaultValue(PriceListModel model) { var unit = TouristUnitRepository.GetTouristUnit(model.SiteCode, model.OfferCode); var ret = new List <KeyValuePair <string, object> >(); ret.Add(new KeyValuePair <string, object>("FromPersons", 1)); ret.Add(new KeyValuePair <string, object>("ToPersons", unit.MaxPersons)); ret.Add(new KeyValuePair <string, object>("PriceType", PriceType.UnitPerNight)); if (model.SeasonPriceList.Count > 0) { ret.Add(new KeyValuePair <string, object>("FromDate", model.SeasonPriceList.Max(r => r.ToDate).AddDays(1))); } else { ret.Add(new KeyValuePair <string, object>("FromDate", unit.OpenDate)); } return(ret); }
public List <KeyValuePair <string, object> > GetServicesListeDefaultValue(PriceListModel model) { var unit = TouristUnitRepository.GetTouristUnit(model.SiteCode, model.OfferCode); var ret = new List <KeyValuePair <string, object> >(); ret.Add(new KeyValuePair <string, object>("FromDate", unit.OpenDate)); ret.Add(new KeyValuePair <string, object>("ToDate", unit.CloseDate)); if (model.ServicesList.Count == 0) { ret.Add(new KeyValuePair <string, object>("ServiceType", ServiceType.RegistrationFee)); ret.Add(new KeyValuePair <string, object>("ServiceInterval", ServiceInterval.PerStay)); ret.Add(new KeyValuePair <string, object>("ServiceUnit", ServiceUnit.PerPerson)); ret.Add(new KeyValuePair <string, object>("PaymentPlace", PaymentPlace.Arrival)); ret.Add(new KeyValuePair <string, object>("Description", "Anmeldegebühr")); ret.Add(new KeyValuePair <string, object>("Eur", 1)); } if (model.ServicesList.Count == 1 || model.ServicesList.Count == 2) { ret.Add(new KeyValuePair <string, object>("ServiceType", ServiceType.Tax)); ret.Add(new KeyValuePair <string, object>("ServiceInterval", ServiceInterval.PerDay)); ret.Add(new KeyValuePair <string, object>("ServiceUnit", ServiceUnit.PerPerson)); ret.Add(new KeyValuePair <string, object>("PaymentPlace", PaymentPlace.Arrival)); ret.Add(new KeyValuePair <string, object>("Description", "Kurtaxe")); if (model.ServicesList.Count == 1) { ret.Add(new KeyValuePair <string, object>("Eur", "0,55")); ret.Add(new KeyValuePair <string, object>("OfOld", 12)); ret.Add(new KeyValuePair <string, object>("ToOld", 18)); } if (model.ServicesList.Count == 2) { ret.Add(new KeyValuePair <string, object>("Eur", "1,10")); ret.Add(new KeyValuePair <string, object>("OfOld", 18)); ret.Add(new KeyValuePair <string, object>("ToOld", 99)); } } return(ret); }
public bool ContainsUnitCode(string unitcode) { return(TouristUnitRepository.TouristUnitContainsCode(unitcode)); }
public TouristUnitViewModel GetTouristUnit(string id) { return(TouristUnitRepository.GetTouristUnitById(id)); }
public List <TouristUnitViewModel> Init() { return(TouristUnitRepository.GetTouristUnitViewModel()); }
public List <UnitOfferViewModel> GetUnitOfferByCode(string sitecode, string unitcode) { return(TouristUnitRepository.GetUnitOfferByCode(sitecode, unitcode)); }
public string GetSiteCode(string unitcode) { return(TouristUnitRepository.GetSiteCodeFromUnit(unitcode)); }
public List <string> GetUnitCodes() { return(TouristUnitRepository.GetUnitCodes()); }
public List <UnitOfferViewModel> Init() { return(TouristUnitRepository.GetUnitOfferViewModel()); }