<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/SleisLayout.Master" %>
<% using (Html.BeginForm()) { %> <%Html.RenderPartial("ReportStatus", Model.Status); %>

<%:Model.Number %> Emissions Report

Manage Reporting Period

<%: Html.Hidden("agencyFacilityId", Request["agencyFacilityId"]) %> <%: Html.Hidden("reportId", Request["reportId"]) %> <%: Html.HiddenFor(x => x.CompleteDate)%> <%: Html.HiddenFor(x => x.EndDate)%> <%: Html.HiddenFor(x => x.FacilityId)%> <%: Html.HiddenFor(x => x.Id)%> <%: Html.HiddenFor(x => x.LoadDate)%> <%: Html.HiddenFor(x => x.StartDate)%> <%: Html.HiddenFor(x => x.EisSubmissionDate)%>
<% if (Model.PublicReport==null && Model.ReceivedDate > DateTime.MinValue) { %> No, report will not show up on Public web site for facility <%: Html.HiddenFor(x => x.IsPublishedBool)%> <%} else if (!Model.SubmittedDate.HasValue) { %> <%: Html.CheckBoxFor(x => x.IsPublishedBool, new { @id = "repPublished", @class = "text-input" })%> <% } else { %> <%= Model.IsPublishedBool ? "Yes, report will show up on Public web site for facility" : "No, report will not show up on Public web site for facility"%> <%: Html.HiddenFor(x => x.IsPublishedBool)%> <% } %>
<% if (!Model.SubmittedDate.HasValue && Model.PublicReport != null) { %> <%: Html.TextBoxFor(x => x.Number, new { @class = "text-input short-input numbersOnly", @id = "repReportingYear" })%> <% } else { %> <%: Model.Number %> <%: Html.HiddenFor(x => x.Number, new { @id = "repReportingYear" })%> <% } %>
<% if (Model.Status == ReportStatus.NotPublished || Model.Status == ReportStatus.NotStarted) { %> <%: Html.TextBox("DueDate", HtmlUtility.Format(Model.DueDate), new { @class = "text-input short-input showAsCal", @id = "repDueDate" })%> <% } else { %> <%: HtmlUtility.Format(Model.DueDate)%> <%: Html.HiddenFor(x => x.DueDate, new { @id = "repDueDate" })%> <% } %>
<%--
--%>
<%: HtmlUtility.Format(Model.SubmittedDate)%>
<%if (Model.Status == ReportStatus.UnderReview) { %> <%: Html.TextBox("ReceivedDate", HtmlUtility.Format(Model.ReceivedDate), new { @class = "text-input short-input showAsCal", @id = "repReceivedDate" })%> <% } else { %> <%: HtmlUtility.Format(Model.ReceivedDate) %> <%: Html.HiddenFor(x => x.ReceivedDate, new { @id = "repReceivedDate" })%> <% } %>
<%: HtmlUtility.Format(Model.LoadDate) %>
<%/* %>
<%: HtmlUtility.Format(Model.EisSubmissionDate)%>
<%*/ %>
<%:Html.ActionLink("Cancel", "Home", "Facility", new { facilityId = Request["agencyFacilityId"], id = Request["reportId"] }, new { @class = "cancelButton argsHolder" })%>
<% } //form %>