@using EnVisage.Models @using Newtonsoft.Json @model MixEditScenarioFinInfoModel @{ var finInfo = (Model == null || Model.FinInfo == null) ? "" : JsonConvert.SerializeObject(new { expense = Model.FinInfo.TDDirectCosts, revenue = Model.FinInfo.ProjectedRevenue, useLMMargin = Model.FinInfo.UseLMMargin, grossMargin = Model.FinInfo.GrossMargin ?? 0, lmMargin = Model.FinInfo.LMMargin ?? 0, dateForStartOfChanges = Model.FinInfo.DateForStartOfChanges.HasValue ? Model.FinInfo.DateForStartOfChanges.Value.ToString("MM/dd/yyyy") : string.Empty, isEditable = true }); }
@Html.EditorFor(x => x.FinInfo) @Html.ValidationSummary(false, "The Scenario Financial Information could not be saved due to the following errors:")
@Html.Partial("~/Views/Scenarios/_scenarioCalendar.cshtml", Model.Calendar)