コード例 #1
0
        public ReservationVM(VReservationListModel reservation)
        {
            if (reservation != null)
            {
                var ReservationData = reservation.ReservationList;
                Id                        = ReservationData?.Id;
                ReservationNum            = reservation.ReservationNo;
                AssignedToName            = reservation.IsAssigned ? reservation.AssignmentModel?.AssignToName : string.Empty;
                NextStep                  = reservation.NextStep ?? string.Empty;
                NeedToAssign              = reservation.IsNeedToAssign;
                NeedToAssignTCCAgent      = reservation.IsNeedToAssignToCCAgent;
                NeedToAssignToBranchAgent = reservation.IsNeedToAssignToBM;
                ////// date from grouping
                BookingDate                 = ReservationData?.BookingDate?.ToShortDateString();
                PickUpDate                  = ReservationData?.PickUpDate?.ToShortDateString();
                PickUpBranchName            = ReservationData?.PickUpBranchName ?? string.Empty;
                CancelledBeforePickUpInDays = ReservationData?.CancelledBeforeBickUpInDays?.ToString();
                DropOffDate                 = ReservationData?.DropOffDate?.ToShortDateString();
                CancelledDate               = ReservationData?.CancelledDate?.ToShortDateString();
                ReservationStatusId         = ReservationData?.ReservationStatusId;
                ReservationStatus           = ReservationData?.ReservationStatus;
                NoShowDate                  = ReservationData?.NoShowDate?.ToShortDateString();
                CustomerName                = ReservationData?.CustomerName?.ToString();
                CancelledAfterBookingInDays = ReservationData?.CancelledAfterBookingInDays.ToString();
                RentalDays                  = ReservationData?.RentalDays;

                // DriverName = ReservationData?.DriverName;
                VehicleAcriss = ReservationData?.VehicleAcriss;
                //  CustomerId = ReservationData?.CustomerId;
                // UploadId = ReservationData?.UploadId;
                CreationDate = ReservationData?.CreationDate?.ToShortDateString();
                IsCompleted  = ReservationData?.IsCompleted;
            }
        }
コード例 #2
0
        public VReservationListVM(VReservationListModel reservation)
        {
            if (reservation != null)
            {
                var ReservationData = reservation.ReservationList;
                Id = ReservationData?.Id;
                NumberOfReservations        = ReservationData?.NumberOfReservations;
                ReservationNum              = reservation.ReservationNo;
                AssignedToName              = reservation.IsAssigned ? reservation.AssignmentModel?.AssignToName : string.Empty;
                NextStep                    = reservation.NextStep;
                ReservationHour             = ReservationData?.ReservationHour ?? 0;
                ReservationPointOfSale      = ReservationData?.ReservationPointOfSale;
                PickUpweekDay               = ReservationData?.PickUpweekDay.ToString();
                PickUpHour                  = ReservationData?.PickUpHour;
                RevenueEur                  = ReservationData?.RevenueEur;
                RevenuePerDayEur            = ReservationData?.RevenuePerDayEur;
                LeadTimeInDays              = ReservationData?.LeadTimeInDays;
                CancelledAfterBookingInDays = ReservationData?.CancelledAfterBookingInDays;
                CancelledBeforeBickUpInDays = ReservationData?.CancelledBeforeBickUpInDays;
                DropOffHour                 = ReservationData?.DropOffHour;
                DropOffweekDay              = ReservationData?.DropOffweekDay;
                ReservationSourceChannel1   = ReservationData?.ReservationSourceChannel1.ToString();
                ReservationSourceChannel2   = ReservationData?.ReservationSourceChannel2.ToString();
                ReservationSourceChannel3   = ReservationData?.ReservationSourceChannel3.ToString();
                BusinessSegmentText         = ReservationData?.BusinessSegmentText.ToString();
                RateSegmentSubCategory      = ReservationData?.RateSegmentSubCategory ?? string.Empty;
                OneWayReservation           = ReservationData?.OneWayReservation;
                OnRequest                   = ReservationData?.OnRequest;
                RequestLevel                = ReservationData?.RequestLevel.ToString();
                ReservationAgent            = ReservationData?.ReservationAgent ?? string.Empty;
                CancelledDate               = ReservationData?.CancelledDate?.ToLongDateString();
                RentalAgreementNumber       = ReservationData?.RentalAgreementNumber;
                Prepaid               = ReservationData?.Prepaid;
                ConvertedToRental     = ReservationData?.ConvertedToRental;
                NoShowDate            = ReservationData?.NoShowDate?.ToShortDateString();
                Cdnumber              = ReservationData?.Cdnumber;
                DriverName            = ReservationData?.DriverName ?? string.Empty;
                DriverCountry         = ReservationData?.DriverCountry.ToString();
                CustomerCardIndicator = ReservationData?.CustomerCardIndicator.ToString();
                AgencyCountry         = ReservationData?.AgencyCountry ?? string.Empty;
                AgencySubsidiaryName  = ReservationData?.AgencySubsidiaryName ?? string.Empty;
                AgencyParentName      = ReservationData?.AgencyParentName ?? string.Empty;

                PickUpBranchName        = ReservationData?.PickUpBranchName;
                ReservationStatus       = ReservationData?.ReservationStatus;
                AssignCreationDate      = ReservationData?.AssignCreationDate?.ToLongDateString();
                StepName                = ReservationData?.StepName;
                RateSegmentCategoryName = ReservationData?.RateSegmentCategoryName;
                RateSegmentName         = ReservationData?.RateSegmentName;


                ////// date from grouping
                BookingDate                 = ReservationData?.BookingDate?.ToShortDateString();
                PickUpDate                  = ReservationData?.PickUpDate?.ToShortDateString();
                PickUpBranchName            = ReservationData?.PickUpBranchName;
                CancelledBeforePickUpInDays = ReservationData?.CancelledBeforeBickUpInDays?.ToString();
                DropOffDate                 = ReservationData?.DropOffDate?.ToShortDateString();

                CustomerName = ReservationData?.CustomerName?.ToString();
                RentalDays   = ReservationData?.RentalDays;

                DriverName    = ReservationData?.DriverName;
                VehicleAcriss = ReservationData?.VehicleAcriss;
                CreationDate  = ReservationData?.CreationDate?.ToShortDateString();
            }
        }
コード例 #3
0
        public ReservationExport(VReservationListModel reservation)
        {
            if (reservation != null)
            {
                var ReservationData = reservation.ReservationList;
                ReservationNum     = reservation.ReservationNo;
                AssignedToName     = reservation.IsAssigned ? reservation.AssignmentModel?.AssignToName : string.Empty;
                NextStep           = reservation.NextStep;
                AssignFromUser     = reservation.IsAssigned ? reservation.AssignmentModel?.AssignFromName : string.Empty;
                AssignToUser       = reservation.IsAssigned ? reservation.AssignmentModel?.AssignToName : string.Empty;
                AssignCreationDate = reservation.IsAssigned ? reservation.AssignmentModel?.AssignmentDate : string.Empty;
                //
                FormSubmitedBy     = reservation.IsFormSubmitted ? reservation.FormSumbitModel?.FormSubmitedBy : string.Empty;
                FormSubmissionDate = reservation.IsFormSubmitted ? reservation.FormSumbitModel?.FormSubmitionDate : string.Empty;
                AnswerStatus       = reservation.IsFormSubmitted ? reservation.FormSumbitModel?.ReasonStatus : string.Empty;
                FormSubmitReason   = reservation.IsFormSubmitted ? reservation.FormSumbitModel?.ReasonText : string.Empty;
                FormSubmitComment  = reservation.IsFormSubmitted ? reservation.FormSumbitModel?.FormSubmitedComment : string.Empty;
                //

                BookingDate = ReservationData?.BookingDate?.ToShortDateString();
                PickUpDate  = ReservationData?.PickUpDate?.ToShortDateString();
                CancelledBeforePickUpInDays = ReservationData?.CancelledBeforeBickUpInDays?.ToString();
                CancelledAfterBookingInDays = ReservationData?.CancelledAfterBookingInDays?.ToString();
                DropOffDate       = ReservationData?.DropOffDate?.ToShortDateString();
                CancelledDate     = ReservationData?.CancelledDate?.ToShortDateString();
                ReservationStatus = ReservationData?.ReservationStatus;
                NoShowDate        = ReservationData?.NoShowDate?.ToShortDateString();
                PickUpBranchName  = ReservationData?.PickUpBranchName?.ToString();
                VehicleAcriss     = ReservationData?.VehicleAcriss;
                CreationDate      = ReservationData?.CreationDate?.ToShortDateString();

                RentalDays                = ReservationData?.RentalDays;
                NumberOfReservation       = ReservationData?.NumberOfReservations;
                ReservationHour           = ReservationData?.ReservationHour;
                PickUpHour                = ReservationData?.PickUpHour;
                PickUpWeekDay             = ReservationData?.PickUpweekDay;
                RevenueEUR                = ReservationData?.RevenueEur;
                RevenuePerDayEUR          = ReservationData?.RevenuePerDayEur;
                LeadTimeInDays            = ReservationData?.LeadTimeInDays;
                DropOffHour               = ReservationData?.DropOffHour;
                DropOffWeekDay            = ReservationData?.DropOffweekDay;
                ReservationSourceChannel1 = ReservationData?.ReservationSourceChannel1;
                ReservationSourceChannel2 = ReservationData?.ReservationSourceChannel2;
                ReservationSourceChannel3 = ReservationData?.ReservationSourceChannel3;
                OneWayReservation         = ReservationData?.OneWayReservation;
                OnRequest             = ReservationData?.OnRequest;
                RequestLevel          = ReservationData?.RequestLevel;
                ReservationAgent      = ReservationData?.ReservationAgent;
                RentalAgreementNumber = ReservationData?.RentalAgreementNumber;
                ConvertedToRental     = ReservationData?.ConvertedToRental;
                CDNumber                = ReservationData?.Cdnumber;
                CustomerName            = ReservationData?.CustomerName?.ToString();
                DriverName              = ReservationData?.DriverName?.ToString();
                DriverCountry           = ReservationData?.DriverCountry?.ToString();
                CustomerCardIndicator   = ReservationData?.CustomerCardIndicator;
                AgencyParentName        = ReservationData?.AgencyParentName?.ToString();
                AgencySubsidiaryName    = ReservationData?.AgencySubsidiaryName?.ToString();
                AgencyCountry           = ReservationData?.AgencyCountry?.ToString();
                BusinessSegmentText     = ReservationData?.BusinessSegmentText?.ToString();
                UploadCreationDate      = ReservationData?.LogCreationDate;
                RateSegmentCategoryName = ReservationData?.RateSegmentCategoryName;
                RateSegmentName         = ReservationData?.RateSegmentName;
            }
        }