public ActionResult StageSummary(AuditReportType id) { var stage = GetReport(id); var model = AuditViewModelFactory.PostElectionSummaryFrom(stage, CmoAuditReview.GetAuditReportMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle)); if (stage == null) { // check for no findings condition if (CPProfile.HasFinalAuditReport) { model.ReportResponse = AuditViewModelFactory.NoFindingsResponse(); } else { return(HttpNotFound()); } } return(PartialView(Mvc.Strings.Views.PostElectionSummary, model)); }
public ActionResult TollingEvents(AuditReportType id = AuditReportType.FinalAuditReport) { AuditReportBase source = null, secondSource = null; switch (id) { case AuditReportType.InitialDocumentationRequest: source = GetReport(AuditReportType.InitialDocumentationRequest); break; case AuditReportType.DraftAuditReport: source = GetReport(AuditReportType.DraftAuditReport); break; case AuditReportType.FinalAuditReport: source = GetReport(AuditReportType.InitialDocumentationRequest); secondSource = GetReport(AuditReportType.DraftAuditReport); break; } return(PartialView(Mvc.Strings.Views.TollingEvents, AuditViewModelFactory.TollingEventsListFrom(source, CmoAuditReview.GetTollingMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle, false), secondSource))); }
// GET: Audit/PostElection public ActionResult Index() { var idr = GetReport(AuditReportType.InitialDocumentationRequest); var dar = GetReport(AuditReportType.DraftAuditReport); var far = GetReport(AuditReportType.FinalAuditReport); var cid = CPProfile.Cid; var ec = CPProfile.ElectionCycle; var training = CPProfile.TrainingStatus; bool trainingComplete = training != null && training.AuditComplianceAchieved; var model = AuditViewModelFactory.PostElectionFrom( idr: idr, dar: dar, far: far, agencyPhone: CPProviders.SettingsProvider.AgencyPhoneNumber, darTollingDays: idr != null ? idr.TollingDaysIncurred : InitialDocumentationRequest.CountDarTollingDaysIncurred(cid, ec), farTollingDays: dar != null ? dar.TollingDaysIncurred : DraftAuditReport.CountFarTollingDaysIncurred(cid, ec), darIssueDate: DraftAuditReport.GetOriginalIssuanceDate(cid, ec), farIssueDate: FinalAuditReport.GetOriginalIssuanceDate(cid, ec), farOffsetMonths: trainingComplete ? FinalAuditReport.TrainingCompliantFarTargetOffsetMonths : 0, suspended: CPProfile.PESuspension != null); return(View(model)); }
// GET: Audit/ComplianceVisits public ActionResult Index() { return(View(AuditViewModelFactory.ComplianceVisitsFrom(CPProfile.ComplianceVisits, CmoAuditReview.GetComplianceVisitMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle)))); }
// GET: Audit/ThresholdStatus public ActionResult Index() { return(View(AuditViewModelFactory.ThresholdStatusFrom(CPProfile.ThresholdHistory))); }
// GET: Audit/StatementReviews public ActionResult Index() { return(View(AuditViewModelFactory.StatementReviewsFrom(CPProfile.StatementReviews, CmoAuditReview.GetStatementReviewMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle)))); }
// GET: Audit/DoingBusinessReviews public ActionResult Index() { return(View(AuditViewModelFactory.DoingBusinessReviewsFrom(CPProfile.DoingBusinessReviews, CmoAuditReview.GetDoingBusinessReviewMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle)))); }
// GET: Audit/PublicFunds public ActionResult Index() { return(View(AuditViewModelFactory.PublicFundsPaymentTrackingFrom(CPProfile.PublicFundsHistory))); }