<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/SleisLayout.Master" %> <%-- Emissions Report --%> <% SelectedFacilityView selectedFac = ViewUtility.GetSelectedFacility(); %>
<% Html.ValidationSummary("Please correct the errors and try again"); %> <% using (Html.BeginForm()) { %> <% if(SessionUtility.CurrentUser.IsAgencyUser()) { %> <%:Html.ActionLink("Back", "Home", "Facility", new { facilityId = Model.Report.FacilityId }, new { @class = "backButtonNoText argsHolder align-right" })%> <% } else { %> <%:Html.ActionLink("Back", "Detail", "Facility", new { id = Model.Report.FacilityId }, new { @class = "backButtonNoText argsHolder align-right" })%> <% } %> <% Html.RenderPartial("ReportStatus", Model.Report.Status); %>

<%:Model.Report.Number %> Emissions Report

Facility Inventory

Emissions

<% if(!SessionUtility.CurrentUser.IsAgencyUser()) {%>
<%:Html.ActionLink("Download Template", "DownloadTemplate", "ProcessEmission", new { reportId = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "downloadButton argsHolder", @width = "150px" })%> <% if (Model.Report.Status == ReportStatus.InProcess && selectedFac.IsFacilityEditor) {%> <%:Html.ActionLink("Import Data", "Import", "ProcessEmission", new { reportId = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "downloadButton argsHolder", @width = "150px" })%> <%} %>
<% } %>

More Actions

<% if ((Model.Report.Status == ReportStatus.InProcess && selectedFac.IsFacilityEditor) || (Model.Report.Status == ReportStatus.UnderReview && selectedFac.IsAgencyEditor)) {%> <%: Html.ActionLink("Validate Report", "Report", "Validation", new { facilityId = Model.Report.FacilityId, reportId = Model.Report.Id }, new { @class = "validateButton argsHolder", @width = "175px" })%> <%} %> <% if(SessionUtility.CurrentUser.IsAgencyUser()) { %> <% if (selectedFac.IsAgencyEditor) { %> <% if (Model.Report.Status == ReportStatus.UnderReview) { %> Review Complete <%:Html.ActionLink("Review Complete", "ReviewComplete", "Report", new { facilityId = selectedFac.Facility.Id, reportId = Model.Report.Id, promote = true }, new { @class = "hide", @id = "CompleteReviewWithPromote" })%> <%:Html.ActionLink("Review Complete", "ReviewComplete", "Report", new { facilityId = selectedFac.Facility.Id, reportId = Model.Report.Id, promote = false }, new { @class = "hide", @id = "CompleteReviewNoPromote" })%> <% } else if(Model.Report.Status == ReportStatus.Completed) { %> <%:Html.ActionLink("Reset to Under Review", "ResetToUnderReview", "Report", new { facilityId = selectedFac.Facility.Id, reportId = Model.Report.Id }, new { @class = "editButton" })%> <% } %> <% } %> <% } else { %> <% if (selectedFac.IsFacilitySubmitter && Model.Report.Status == ReportStatus.InProcess && Model.Report.Number <= DateTime.Now.Year) { %> <%:Html.ActionLink("Initiate Submission", "Report", "Validation", new { facilityId = Model.Report.FacilityId, reportId = Model.Report.Id, submitOnSuccess = 1 }, new { @class = "genButton argsHolder disabled", @width = "175px" })%> <%} %> <% } %> <%/*if (Model.Report.Status == ReportStatus.Completed ||Model.Report.Status == ReportStatus.Submitted || SessionUtility.CurrentUser.IsAgencyUser()) { */%> <%:Html.ActionLink("Print Report", "Make", "Document", new { facilityId = Model.Report.FacilityId, reportId = Model.Report.Id, print=true }, new { @class = "genButton argsHolder disabled", @width = "175px" })%> <%} %>
<%//} //using HTML Form %>
<% SelectedFacilityView selectedFac = ViewUtility.GetSelectedFacility(); %> <%Html.RenderPartial("FacilitySide");%> <% if(!SessionUtility.CurrentUser.IsAgencyUser()) {%>
Your roles at this facility are:
<%: selectedFac.RoleNames %>
<% } %>

Submission Status

<%: Model.SubmissionMessage %>
<% if (Model.SubmissionVersion > 0) { %> <%:Html.ActionLink("View Submission History", "History", "Report", new { id = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "argsHolder" })%>
<%} %>
<% if ((selectedFac.IsFacilityEditor || selectedFac.IsFacilitySubmitter) && Model.Report.Status==ReportStatus.Submitted && !Model.HasPendingRequest.HasValue) { %> <%:Html.ActionLink("Request Amendment", "Amendment", "Report", new { id = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "argsHolder" })%> <%} %> <% if (Model.HasPendingRequest.HasValue) { %> Amendment Requested on <%= HtmlUtility.Format(Model.HasPendingRequest)%> <% } %>

Summary Reports

<%:Html.ActionLink("Total Emissions by Source", "TotalEmissionsReport", "Report", new { type = EmissionsReportType.Facility, reportId = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "argsHolder", @target = "new" })%>
<%:Html.ActionLink("Total Emissions by Release Point", "TotalEmissionsReport", "Report", new { type = EmissionsReportType.ReleasePoint, reportId = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "argsHolder", @target = "new" })%>
<%:Html.ActionLink("Total Emissions by Emission Unit", "TotalEmissionsReport", "Report", new { type = EmissionsReportType.EmissionUnit, reportId = Model.Report.Id, facilityId = Model.Report.FacilityId }, new { @class = "argsHolder", @target = "new" })%>