private SearchTicketsResponse GetResponse(bool isPageModel, string projectID) { SearchTicketsRequest request = new SearchTicketsRequest( SearchTicketsType.TicketsForReport, string.Format(" {0} {1} ", hidOrderBy.Value, hidOrderDirection.Value), isPageModel); request.CurrentPage = anpTicketReport.CurrentPageIndex; request.PageCount = anpTicketReport.PageSize; request.Keyword = txtKeywords.Text.Trim().NoHTML(); if (UserInfo.Role == RolesEnum.CLIENT) { request.CompanyID = UserInfo.CompanyID; request.UserID = UserInfo.UserID; } else { request.CompanyID = 0; } if (int.Parse(ddlStatus.SelectedValue) == (int)ClientTicketState.Waiting_Feedback) { request.SearchTicketID = true; request.TicketIDS = fbmHandler.FeedBackRequiredTicketIDs; } request.TicketType = ddlTicketType.SelectedItem.Text.Trim(); request.ProjectID = int.Parse(projectID); request.Status = fbmHandler.GetSearchTicketStatuses(int.Parse(ddlStatus.SelectedValue)); SearchTicketsResponse response = tickApp.SearchTickets(request); return(response); }
private int GetTicketReportCount() { SearchTicketsRequest request = new SearchTicketsRequest( SearchTicketsType.TicketsForReport, string.Format(" {0} {1} ", "ModifiedOn", "desc"), true); request.CurrentPage = 1; request.PageCount = 0; if (UserInfo.Role == RolesEnum.CLIENT) { request.CompanyID = UserInfo.CompanyID; request.UserID = UserInfo.UserID; } else { request.CompanyID = 0; } request.TicketType = "ALL"; request.Status = fbmHandler.GetSearchTicketStatuses(-1); request.Keyword = string.Empty; SearchTicketsResponse response = ticketAPP.SearchTickets(request); return(response.ResultCount); }
private string GetStatusBySelValue(int ddlClientStatu) { if (ddlClientStatu == (int)ClientTicketState.Waiting_Feedback) { dto.FeedBackTicketsList = fbmHandler.FeedBackRequiredTicketIDs; } List <TicketsState> list = fbmHandler.GetSearchTicketStatuses(ddlClientStatu); StringBuilder statuses = new StringBuilder(); foreach (TicketsState tstatus in list) { statuses.Append((int)tstatus); statuses.Append(","); } return(statuses.ToString().TrimEnd(",".ToCharArray())); }