Beispiel #1
0
        public IEnumerable <IntSync.UnitPriceBulkCopyItem> GetUnitPriceSearchList(string tourOperatorId, string facilityCode, string unitCode, string offerCode)
        {
            IntOffice.PriceList priceList = new IdomOffice.PlugIn.BackOffice.PriceLists.PriceListManager().GetPriceList(tourOperatorId, facilityCode, offerCode, Interface.BackOffice.PriceLists.PriceListType.RetailPrice);
            MasterDataManager   mda       = new MasterDataManager();
            var unit = mda.GetTouristUnit(facilityCode, offerCode);

            //var offer = mda.GetUnitOffer(arg.TourOperatorCode, arg.TouristSiteCode, arg.OfferCode);
            CalculatorPriceList cpl = ConvertToCalculatorPriceList(priceList, unit.UnitStopBooking);
            var bulkInfo            = new QTouristik.Interface.Sync.BulkUnitInfo();

            bulkInfo.OpenDate   = unit.OpenDate.Date;
            bulkInfo.CloseDate  = unit.CloseDate.Date;
            bulkInfo.MaxPersons = unit.MaxPersons;
            return(new QTouristik.Utility.PriceCalculator.Helper.PriceBulkCopyHelper().GetUnitPriceSearchList(offerCode, bulkInfo, cpl, facilityCode));
        }
Beispiel #2
0
 public IntSync.Price GetPrice(IntSync.PriceArg arg)
 {
     IntSync.Price       price = new IntSync.Price();
     IntOffice.PriceList pr    = new PlugInPriceLists.PriceListManager().GetPriceList("IDOM", arg.TouristSiteCode, arg.OfferCode, IntOffice.PriceListType.RetailPrice);
     return(GetPrice(arg, pr));
 }