@model EnVisage.Models.ScenarioFinInfoModel @using EnVisage.Code
Financials
@Html.LabelFor(x => x.DateForStartOfChanges, new { @class = "control-label" }) @Html.EditorFor(x => x.DateForStartOfChanges, new { htmlAttributes = new { @class = "form-control date", ng_model = "changedData.dateForStartOfChanges", ng_change = "modelChanged()", ng_disabled = "!isFinInfoEditable()" } }) @Html.ValidationMessageFor(x => x.DateForStartOfChanges)
@Html.Label("AdjustBUCosts", "Adjust to desired revenue/expenses", new { @class = "control-label" })
@Html.CheckBox("AdjustBUCosts", true, new { @class = "form-control", ng_model = "changedData.needToAdjustMargin" })
@if (Model.IsRevenueGenerating) {
Revenue
@Html.LabelFor(x => x.ProjectedRevenue, new { @class = "control-label" })
$ @Html.EditorFor(model => model.ProjectedRevenue, new { htmlAttributes = new { @class = "form-control", ng_model = "changedData.revenue", ng_change = "projectedRevenueChanged(changedData.revenue)", ng_disabled = "!isFinInfoEditable()" } })
(${{changedData.oldRevenue}}) @Html.ValidationMessageFor(model => model.ProjectedRevenue)
@Html.LabelFor(x => x.RevenueAfterCost, new { @class = "control-label" })
$ @Html.TextBoxFor(x => x.RevenueAfterCost, "{0:0}", new { disabled = "disabled", @class = "form-control" })
@Html.LabelFor(x => x.ActualRevenueAfterCost, new { @class = "control-label" })
$ @Html.TextBoxFor(x => x.ActualRevenueAfterCost, "{0:0}", new { disabled = "disabled", @class = "form-control" })
% @Html.TextBoxFor(x => x.GrossMargin, new { @class = "form-control", ng_model = "changedData.grossMargin", ng_change = "marginChanged(changedData.grossMargin)", ng_disabled = "!isFinInfoEditable()", ng_show = "!changedData.useLMMargin" }) @Html.TextBoxFor(x => x.LMMargin, new { @class = "form-control", ng_model = "changedData.lmMargin", ng_change = "marginChanged(changedData.lmMargin)", ng_disabled = "!isFinInfoEditable()", ng_show = "changedData.useLMMargin" }) @Html.CheckBoxFor(x => x.UseLMMargin, new { @class = "form-control", ng_model = "changedData.useLMMargin", ng_change = "marginTypeChanged(changedData.useLMMargin)" }) @(Model.UseLMMargin ? "L&M" : "Gross")
({{changedData.oldGrossMargin}}%) ({{changedData.oldLMMargin}}%)
% @Html.TextBoxFor(x => x.CalculatedGrossMargin, new { @class = "form-control", disabled = "disabled", ng_show = "!changedData.useLMMargin" }) @Html.TextBoxFor(x => x.CalculatedGrossMarginLM, new { @class = "form-control", disabled = "disabled", ng_show = "changedData.useLMMargin" })
% @Html.TextBoxFor(x => x.CalculatedGrossMarginActuals, new { @class = "form-control", disabled = "disabled", ng_show = "!changedData.useLMMargin" }) @Html.TextBoxFor(x => x.CalculatedGrossMarginLMActuals, new { @class = "form-control", disabled = "disabled", ng_show = "changedData.useLMMargin" })
}
Expenses
@Html.LabelFor(x => x.TDDirectCosts, new { @class = "control-label" })
$ @Html.TextBoxFor(model => model.TDDirectCosts, new { @class = "form-control", ng_model = "changedData.expense", ng_change = "modelChanged()", ng_disabled = Model.IsRevenueGenerating ? "true" : "!isFinInfoEditable()" })
(${{changedData.oldExpense}}) @Html.ValidationMessageFor(model => model.TDDirectCosts)
@Html.LabelFor(x => x.BUDirectCosts, new { @class = "control-label" })
$ @Html.TextBoxFor(x => x.BUDirectCosts, new { disabled = "disabled", @class = "form-control" })
@Html.LabelFor(x => x.ActualLabor, new { @class = "control-label" })
$ @Html.TextBoxFor(x => x.ActualLabor, new { disabled = "disabled", @class = "form-control" })
@Html.LabelFor(x => x.LaborMaterialsSplit, new { @class = "control-label" })
% @Html.TextBoxFor(model => model.LaborMaterialsSplit, new { @class = "form-control", disabled = "disabled" })
@Html.LabelFor(x => x.ActualLaborMaterialsSplit, new { @class = "control-label" })
% @Html.TextBoxFor(x => x.ActualLaborMaterialsSplit, new { disabled = "disabled", @class = "form-control" })
@Html.LabelFor(x => x.ActualMaterials, new { @class = "control-label" })
$ @Html.TextBoxFor(x => x.ActualMaterials, new { disabled = "disabled", @class = "form-control" })
Cost Savings
@Html.EditorFor(x => x.CostSaving)
@Html.Partial("~/Views/Scenarios/_finInfoChart.cshtml")