/// <summary> /// Shows the more summary. /// </summary> /// <param name="presenter">The presenter.</param> /// <param name="projectPortalId">The project portal id.</param> /// <returns>show more summary rows</returns> public ActionResult ShowMoreSummary(ProjectDashboardPresenter presenter, string projectPortalId) { if (presenter != null) { presenter.AssignProjectPortalProjectSummaryList(this.projectService.RetrieveProjectPortalProjectSummaryList(Convert.ToInt32(projectPortalId, CultureInfo.CurrentCulture), null, null, presenter.SummaryOffset, ProjectDashboardPresenter.SummaryNumberOfRecord, SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.ProjectPortalProjectSummaryList.ForEach(DecodeSummaryNewValue); } return this.PartialView(ProjectSummaryPartialView, presenter); }
/// <summary> /// Assigns the project portal history. /// </summary> /// <param name="presenter">The presenter.</param> /// <param name="projectPortalId">The project portal id.</param> /// <param name="historyTypeIds">The history type ids.</param> /// <param name="fromDate">From date.</param> /// <param name="toDate">To date.</param> private void AssignProjectPortalHistory(ProjectDashboardPresenter presenter, int projectPortalId, string historyTypeIds, string fromDate, string toDate) { presenter.DateFrom = !string.IsNullOrEmpty(fromDate) ? Convert.ToDateTime(fromDate) : DateTimeHelper.RetrieveCurrentDate().AddMonths(-1); presenter.DateTo = !string.IsNullOrEmpty(toDate) ? Convert.ToDateTime(toDate) : DateTimeHelper.RetrieveCurrentDateTime(); var date = presenter.DateTo; date = new DateTime(date.Year, date.Month, date.Day, date.Hour, date.Minute, date.Second); if (SessionData.Instance.UserInfo != null && SessionData.Instance.UserInfo.Developer != null) { presenter.AssignProjectPortalHistoryList(this.projectService.RetrieveProjectPortalHistoryInfo(null, projectPortalId, presenter.DateFrom, date, presenter.Offset, ProjectDashboardPresenter.NumberOfRecord, SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.AssignProjectPortalProjectSummaryList(this.projectService.RetrieveProjectPortalProjectSummaryList(projectPortalId, null, null, presenter.SummaryOffset, ProjectDashboardPresenter.SummaryNumberOfRecord, SessionData.Instance.UserInfo.Developer.DeveloperID)); } presenter.AssignReleaseTypes(this.lookupService.RetrieveHistoryEntity(null, null, SessionData.Instance.UserInfo.Developer.DeveloperID)); if (!string.IsNullOrEmpty(historyTypeIds)) { var selectedhistoryTypeIds = historyTypeIds.Split(',').Select(s => Convert.ToInt32(s, CultureInfo.CurrentCulture)).ToList(); presenter.AssignSelectedReleaseTypes(presenter.ReleaseTypeList.Where(releaseTypeItem => selectedhistoryTypeIds.Contains(releaseTypeItem.ID)).ToList()); } else { presenter.AssignSelectedReleaseTypes(presenter.ReleaseTypeList); } }