Exemplo n.º 1
0
 //Main Guest Details
 public async void DisplayMainGuestDetails(MainGuestDetails mainGuestDetails)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         ReservationIDText.Text  = Constants._reservation_id;
         ClientNameText.Text     = mainGuestDetails.ClientName;
         HotelNameText.Text      = mainGuestDetails.HotelName;
         titleName.Text          = mainGuestDetails.Title;
         titleName.TextColor     = serviceDataValidation.validationColor(mainGuestDetails.Title);
         fname.Text              = mainGuestDetails.FirstName;
         fname.TextColor         = serviceDataValidation.validationColor(mainGuestDetails.FirstName);
         lname.Text              = mainGuestDetails.LastName;
         lname.TextColor         = serviceDataValidation.validationColor(mainGuestDetails.LastName);
         emailaddress.Text       = mainGuestDetails.Email;
         emailaddress.TextColor  = serviceDataValidation.validationColor(mainGuestDetails.Email);
         guestEmail              = mainGuestDetails.Email;
         ContactNumber.Text      = mainGuestDetails.ContactNumber;
         ContactNumber.TextColor = serviceDataValidation.validationColor(mainGuestDetails.ContactNumber);
         dob.Text              = mainGuestDetails.DateOfBirth;
         dob.TextColor         = serviceDataValidation.validationColor(mainGuestDetails.DateOfBirth);
         NICPASS.Text          = mainGuestDetails.NicPassNumber;
         NICPASS.TextColor     = serviceDataValidation.validationColor(mainGuestDetails.NicPassNumber);
         houseno.Text          = mainGuestDetails.HouseNumber;
         houseno.TextColor     = serviceDataValidation.validationColor(mainGuestDetails.HouseNumber);
         street.Text           = mainGuestDetails.Street;
         street.TextColor      = serviceDataValidation.validationColor(mainGuestDetails.Street);
         city.Text             = mainGuestDetails.City;
         city.TextColor        = serviceDataValidation.validationColor(mainGuestDetails.City);
         country.Text          = mainGuestDetails.Country;
         country.TextColor     = serviceDataValidation.validationColor(mainGuestDetails.Country);
         nationality.Text      = mainGuestDetails.Nationality;
         nationality.TextColor = serviceDataValidation.validationColor(mainGuestDetails.Nationality);
     });
     getReservationDetails();
 }
Exemplo n.º 2
0
        async void getMainGuestDetails()
        {
            pageLoading();

            MainGuestDetails mainGuestDetails = await mainGuestInformation.mainGuestInformation(Constants._reservation_id);

            if (mainGuestDetails != null)
            {
                DisplayMainGuestDetails(mainGuestDetails);
            }
        }
Exemplo n.º 3
0
        async void getGuestDetails()
        {
            pageLoading();
            MainGuestDetails mainGuestResult = null;

            mainGuestResult = await mainGuestInformation.mainGuestInformation(Constants._reservation_id);

            if (mainGuestResult != null)
            {
                Constants.result = await mainGuestInformation.reservationInformation();

                if (Constants.resultMain == null || Constants.resultMain == "Error")
                {
                }
                else
                {
                    DisplayReservationDetails();
                    MessagingCenter.Send <ReservationInfo, string>(this, Constants._loadGuestInformation, "");
                    MessagingCenter.Send <ReservationInfo, string>(this, Constants._loadRemarksInformation, "");
                }
            }
        }