Ejemplo n.º 1
0
        //remark details
        public void DisplayRemarkDetails(RemarkDetails remarkResult)
        {
            //mainRemark.Text = remarkResult.MainRemark;
            //generalRemark.Text = remarkResult.SubRemark;

            //if (remarkResult.MainRemark == "" && (remarkResult.SubRemark == "" || remarkResult.SubRemark == null))
            //{
            //	remarksUnavailabilityIndicator.IsVisible = true;
            //}
            //else {
            //	//Main Remark not Available
            //	if (remarkResult.MainRemark == "")
            //	{
            //		mainRemarkName.IsVisible = false;
            //		remarksGrid.IsVisible = true;
            //		mainRemark.IsVisible = false;
            //	}

            //	//Sub Remark not Available
            //	if (remarkResult.SubRemark == "" || remarkResult.SubRemark == null)
            //	{
            //		generalRemarkName.IsVisible = false;
            //		remarksGrid.IsVisible = true;
            //		generalRemark.IsVisible = false;
            //	}
            //	else {
            //		mainRemarkName.IsVisible = true;
            //		generalRemarkName.IsVisible = true;
            //		remarksGrid.IsVisible = true;
            //		mainRemark.IsVisible = true;
            //		generalRemark.IsVisible = true;
            //	}
            //}
        }
Ejemplo n.º 2
0
        public async void RemarkDetails()
        {
            MainGuestInformation mainGuestInformation = new MainGuestInformation();

            var resRemList = await GetResRemarksList();

            remarksList = resRemList;


            RemarkDetails remarkDetails = await mainGuestInformation.remarkInformation();

            ReservationIDText.Text = Constants._reservation_id;
            ClientNameText.Text    = Constants._clientName;

            if (string.IsNullOrEmpty(remarkDetails.MainRemark))
            {
                //remarksUnavailabilityIndicator.IsVisible = true;
            }
            else
            {
                remarksList.Insert(0, new RemarksModel("", "", "", Constants._hotel_code, Constants._reservation_id, "Main", remarkDetails.MainRemark, ""));
            }

            if (resRemList.Count <= 0)
            {
                remarksUnavailabilityIndicator.IsVisible = true;
                AddNreRemark.HorizontalOptions           = LayoutOptions.Center;
                AddNreRemark.VerticalOptions             = LayoutOptions.Center;
            }

            RemarkDetailsListView.ItemsSource = remarksList;

            stopLoading();
        }
Ejemplo n.º 3
0
        async void getRemarksDetails()
        {
            RemarkDetails remarkResult = await mainGuestInformation.remarkInformation();

            if (remarkResult != null)
            {
                DisplayRemarkDetails(remarkResult);
            }
        }