Esempio n. 1
0
        public void SaveDepartureLocations(List <ValueRetailExpressData> routes, EventVenueMapping eventVenueMapping)
        {
            var eventVenueMappingTime = _eventVenueMappingTimeRepository.GetAllByEventVenueMappingId(eventVenueMapping.Id).FirstOrDefault();

            if (eventVenueMappingTime == null)
            {
                foreach (var item in routes)
                {
                    eventVenueMappingTime = _eventVenueMappingTimeRepository.Save(new EventVenueMappingTime
                    {
                        EventVenueMappingId = eventVenueMapping.Id,
                        PickupTime          = item.DepartureTime,
                        PickupLocation      = item.DepartureAddress,
                        ReturnTime          = item.ReturnTime,
                        ReturnLocation      = item.ReturnAddress,
                        JourneyType         = item.JourneyType,
                        IsEnabled           = true,
                        CreatedBy           = tempAltId,
                        CreatedUtc          = DateTime.UtcNow,
                        UpdatedBy           = tempAltId,
                        UpdatedUtc          = DateTime.UtcNow,
                        ModifiedBy          = tempAltId
                    });
                }
            }
        }
Esempio n. 2
0
        public EventDetail SaveToEventDetails(ValueRetailExpressData route, EventVenueMapping eventVenueMapping, Event @event)
        {
            var eventDetail = _eventDetailRepository.GetByEventIdAndVenueId(eventVenueMapping.EventId, eventVenueMapping.VenueId).FirstOrDefault();

            if (eventDetail == null)
            {
                eventDetail = _eventDetailRepository.Save(new EventDetail
                {
                    Name                  = @event.Name,
                    EventId               = eventVenueMapping.EventId,
                    VenueId               = eventVenueMapping.VenueId,
                    StartDateTime         = DateTime.UtcNow,
                    EndDateTime           = DateTime.UtcNow.AddYears(2),
                    GroupId               = 1,
                    AltId                 = Guid.NewGuid(),
                    TicketLimit           = 10,
                    ModifiedBy            = tempAltId,
                    IsEnabled             = true,
                    MetaDetails           = "",
                    HideEventDateTime     = false,
                    CustomDateTimeMessage = "",
                    CreatedBy             = tempAltId,
                    CreatedUtc            = DateTime.UtcNow,
                    UpdatedBy             = tempAltId,
                    UpdatedUtc            = DateTime.UtcNow
                });
            }

            var eventDeliveryType = _eventDeliveryTypeDetailRepository.GetByEventDetailId(eventDetail.Id).FirstOrDefault();

            if (eventDeliveryType == null)
            {
                _eventDeliveryTypeDetailRepository.Save(new EventDeliveryTypeDetail
                {
                    EventDetailId  = eventDetail.Id,
                    DeliveryTypeId = DeliveryTypes.MTicket,
                    Notes          = "<table><tr><td valign=''top''>1.&nbsp;</td><td valign=''top''>Ticket pickup location and timing will be announced in the “Customer Update” sectionof our website closer to the event. Please check that regularly.</td></tr><tr><td valign=''top''>2.&nbsp;</td><td valign=''top''>The following documents are compulsory for ticket pickup:<br /><table><tr>  <td valign=''top''>  a.&nbsp;  </td>  <td colspan=''2'' valign=''top''>  The card / bank account owner’s original Govt. issued photo ID, along with a clean,  fully legible, photocopy of the same ID  </td></tr><tr>  <td valign=''top''>  b.&nbsp;  </td>  <td colspan=''2'' valign=''top''>  When a debit or credit card has been used for purchase, we also need the original  debit/credit card, along with a clean, fully legible, photocopy of the same card  </td></tr><tr>  <td valign=''top''>  c.&nbsp;  </td>  <td colspan=''2'' valign=''top''>  If sending someone else on behalf of the card holder / bank account owner, then  we need numbers 2.a. and 2.b above (originals and photocopies as mentioned) along  with the following below. This is required even if the representative’s name has  been entered into the system when buying:  </td></tr><tr>  <td valign=''top''>  </td>  <td valign=''top''>  i.&nbsp;  </td>  <td>  An authorization letter with the name of the representative, signed by the card  holder/bank account owner  </td></tr><tr>  <td valign=''top''>  </td>  <td valign=''top''>  ii.&nbsp;  </td>  <td>  A Govt issued photo ID of the representative, along with a clean and legible photocopy  of the same photo identification  </td></tr></table></td></tr><tr><td valign=''top''>3.&nbsp;</td><td valign=''top''>Please note, absence of any one of the documents above can result in the ticketsbeing refused at the ticket pickup window</td></tr>  </table>",
                    RefundPolicy   = 1,
                    EndDate        = DateTime.UtcNow.AddYears(1),
                    ModifiedBy     = tempAltId,
                    IsEnabled      = true,
                    CreatedBy      = tempAltId,
                    CreatedUtc     = DateTime.UtcNow,
                    UpdatedUtc     = DateTime.UtcNow,
                    UpdatedBy      = tempAltId
                });
            }
            return(eventDetail);
        }
Esempio n. 3
0
        public void SaveDepartureLocations(ChauffeurRoute route, EventVenueMapping eventVenueMapping)
        {
            try
            {
                var eventVenueMappingTime = _eventVenueMappingTimeRepository.GetAllByEventVenueMappingId(eventVenueMapping.Id).FirstOrDefault();
                if (eventVenueMappingTime == null)
                {
                    eventVenueMappingTime = _eventVenueMappingTimeRepository.Save(new EventVenueMappingTime
                    {
                        EventVenueMappingId = eventVenueMapping.Id,
                        PickupTime          = null,
                        PickupLocation      = route.PickupLocation,
                        ReturnTime          = null,
                        ReturnLocation      = null,
                        JourneyType         = 1,
                        IsEnabled           = true,
                        CreatedBy           = Guid.NewGuid(),
                        CreatedUtc          = DateTime.UtcNow,
                        UpdatedBy           = null,
                        UpdatedUtc          = null,
                        ModifiedBy          = Guid.NewGuid()
                    });

                    eventVenueMappingTime = _eventVenueMappingTimeRepository.Save(new EventVenueMappingTime
                    {
                        EventVenueMappingId = eventVenueMapping.Id,
                        PickupTime          = null,
                        PickupLocation      = route.PickupLocation,
                        ReturnTime          = null,
                        ReturnLocation      = null,
                        JourneyType         = 2,
                        IsEnabled           = true,
                        CreatedBy           = Guid.NewGuid(),
                        CreatedUtc          = DateTime.UtcNow,
                        UpdatedBy           = null,
                        UpdatedUtc          = null,
                        ModifiedBy          = Guid.NewGuid()
                    });
                }
            }
            catch (Exception ex)
            {
                _logger.Log(LogCategory.Error, ex);
            }
        }
Esempio n. 4
0
        public void SaveDepartureLocations(ShoppingPackageRouteDetail shoppingPackageRouteDetail, EventVenueMapping eventVenueMapping)
        {
            var departureTimelist = ValueRetailRouteFilter(shoppingPackageRouteDetail);

            try
            {
                var eventVenueMappingTime = _eventVenueMappingTimeRepository.GetAllByEventVenueMappingId(eventVenueMapping.Id).FirstOrDefault();
                if (eventVenueMappingTime == null)
                {
                    foreach (var timelist in departureTimelist)
                    {
                        eventVenueMappingTime = _eventVenueMappingTimeRepository.Save(new EventVenueMappingTime
                        {
                            EventVenueMappingId = eventVenueMapping.Id,
                            PickupTime          = timelist.DepartureTime,
                            PickupLocation      = timelist.DepartureAddress,
                            ReturnTime          = timelist.ReturnTime,
                            ReturnLocation      = timelist.DepartureAddress,
                            JourneyType         = timelist.JourneyType,
                            IsEnabled           = true,
                            CreatedBy           = Guid.NewGuid(),
                            CreatedUtc          = DateTime.UtcNow,
                            UpdatedBy           = null,
                            UpdatedUtc          = null,
                            ModifiedBy          = Guid.NewGuid()
                        });
                    }
                }
            }
            catch (Exception ex)
            {
                _logger.Log(Logging.Enums.LogCategory.Error, ex);
            }
        }