@using EnVisage.Code @using EnVisage.Code.HtmlHelpers @using EnVisage.Models @using EnVisage.Code.Cache @model ScenarioDetailModel @{ // need to init angular header controller var json = Newtonsoft.Json.JsonConvert.SerializeObject(new { id = Model.Id, name = Model.Name, parentId = Model.ParentId, templateId = Model.TemplateId.Equals(Guid.Empty) ? (Guid?)null : Model.TemplateId, startDate = (Model.StartDate ?? DateTime.Today).ToString("MM/dd/yyyy"), endDate = (Model.EndDate ?? DateTime.Today).ToString("MM/dd/yyyy"), growthScenario = Model.GrowthScenario, expense = Model.TDDirectCosts, revenue = Model.ProjectedRevenue, useLMMargin = Model.UseLMMargin, grossMargin = Model.GrossMargin ?? 0, lmMargin = Model.LMMargin ?? 0, isActiveScenario = Model.IsActiveScenario, duration = Model.Duration, dateForStartOfChanges = Model.DateForStartOfChanges.HasValue ? Model.DateForStartOfChanges.Value.ToString("MM/dd/yyyy") : string.Empty, activeTab = Model.ActiveTab }); } @{ ViewBag.Title = ((!string.IsNullOrEmpty(Model.PartName)) ? Model.PartName + ": " : "") + Model.ProjectName + " " + "Scenario Details"; } @section stylesheets { } @section Scripts { @Scripts.Render("~/bundles/angular-app-modules") }