/// <summary> /// Gets workflowTypes from QueryService /// </summary> /// <param name="client"></param> private void GetWorkflowTypes(IWorkflowsQueryService client) { WorkflowTypeSearchReply replyDC = null; WorkflowTypeSearchRequest request = new WorkflowTypeSearchRequest(); request.SearchText = this.SearchText; request.PageSize = pageSize; request.PageNumber = this.DataPagingVM.ResetPageIndex ? 1 : this.DataPagingVM.PageIndex; request.SortColumn = DefaultSortColumn; request.SortAscending = this.SortByAsceinding; replyDC = client.SearchWorkflowTypes(request); if (null != replyDC && null != replyDC.StatusReply && 0 == replyDC.StatusReply.Errorcode) { this.WorkflowTypes = new ObservableCollection<WorkflowTypeSearchDC>(replyDC.SearchResults); DataPagingVM.ResultsLength = replyDC.ServerResultsLength; } else { this.WorkflowTypes = new ObservableCollection<WorkflowTypeSearchDC>(); DataPagingVM.ResultsLength = 0; } }