Esempio n. 1
0
        /// <summary>
        /// Populatrs the list.
        /// </summary>
        private void PopulateList()
        {
            IsPageInitialize = true;

            RequestModel requestModel = new RequestModel()
            {
                IsAdminUser              = (CurrentUserType == WellKnownUserType.AdminUser ? true : false),
                SearchRequest            = SearchRequest,
                TranscriptionSearchModel = TranscriptionSearchModel,
                SearchWord = SearchWordTextBox.Text.Trim()
            };

            ResponseModel response = App.BaseUserControl.InternalService.GetTranscriptionsForBrowse(requestModel);

            if (response.IsOperationSuccess)
            {
                BrowseListView.ItemsSource = response.Transcriptions;

                PopulateIntializeView(response.BrowseFormModel);

                response.SetTranscriptionIds();

                CurrentIdList = response.TranscriptionIds;

                if (response.Transcriptions.Count == 0)
                {
                    SetZeroListMessage();
                }
                else
                {
                    SetPagination(response.PaginationInfo);
                }
            }
            else
            {
                App.ShowMessage(false, response.ErrorMessage);
            }
        }