@using EnVisage.Code @using EnVisage.Code.HtmlHelpers @using EnVisage.Models @model ScenarioDetailModel @{ ViewBag.Title = "Scenario Details"; } @section stylesheets { } @section Scripts { }
@using (Html.BeginForm("Details", "Scenarios", FormMethod.Post, new { @class = "panel form-horizontal", @style = "border:0;" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t => t.Id) @Html.HiddenFor(t => t.ParentId) @Html.HiddenFor(t => t.BackUrl) @Html.HiddenFor(t => t.BackName)
@Html.LabelFor(model => model.Name, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.Name, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Name)
@Html.LabelFor(model => model.ProjectName, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.ProjectName, new { @class = "form-control", @disabled = "disabled" })
@Html.LabelFor(model => model.TemplateName, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.TemplateName, new { @class = "form-control", @disabled = "disabled" })
@Html.LabelFor(model => model.FreezeResources, new { @class = "col-sm-3 control-label" })
@Html.CheckBoxFor(model => model.FreezeResources, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.FreezeResources)
@Html.LabelFor(model => model.Type, new { @class = "col-sm-3 control-label" })
@Html.DropDownListFor(model => model.Type, Utils.GetScenarioTypes4Wizard(), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Type)
@Html.LabelFor(model => model.IsActiveScenario, new { @class = "col-sm-3 control-label" })
@Html.CheckBoxFor(model => model.IsActiveScenario, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.IsActiveScenario)
@Html.LabelFor(model => model.Color, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.Color, new { @class = "form-control input-color" }) @Html.ValidationMessageFor(model => model.Color)
@Html.LabelFor(model => model.MilestoneStartDate, new { @class = "col-sm-3 control-label" })
@Html.EditorFor(t => t.MilestoneStartDate, new { @class = "datepicker" }) @Html.ValidationMessageFor(model => model.MilestoneStartDate)
@*
@Html.LabelFor(model => model.LaborSplitPercentage, new { @class = "col-sm-3 control-label" })
@Html.EditorFor(model => model.LaborSplitPercentage, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
*@
@Html.LabelFor(model => model.StartDateStr, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.StartDateStr, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.EndDateStr, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.EndDateStr, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.Duration, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.Duration, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.TotalMilestones, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.TotalMilestones, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.UseLMMargin, new { @class = "col-sm-3 control-label" })
@Html.CheckBoxFor(model => model.UseLMMargin, new { @class = "form-control", @disabled = "disabled" })
@Html.LabelFor(model => model.GrowthScenario, new { @class = "col-sm-3 control-label" })
@Html.CheckBoxFor(model => model.GrowthScenario, new { @class = "form-control", @disabled = "disabled" })
@if (!Model.IsRevenueGenerating) {
$ @Html.TextBoxFor(model => model.TDDirectCosts, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
} else {
@Html.LabelFor(model => model.ProjectedRevenue, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.ProjectedRevenue, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
} @if (Model.CostSavings.HasValue && Model.CostSavingsDuration.HasValue) {
@Html.LabelFor(model => model.CostSavings, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.CostSavings, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.CostSavingsDuration, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.CostSavingsDuration, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.ROIDateStr, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.ROIDateStr, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.HardSoftSavings, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.HardSoftSavings, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
@Html.LabelFor(model => model.SavingsAfterCost, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.SavingsAfterCost, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
if(Model.IsRevenueGenerating) {
@Html.LabelFor(model => model.RevenueAfterCost, new { @class = "col-sm-3 control-label" })
@Html.TextBoxFor(model => model.RevenueAfterCost, new { @class = "form-control", @style = "width:178px;", @disabled = "disabled" })
} }
@Html.LabelFor(model => model.GrossMargin, new { @class = "col-sm-3 control-label" })
% @Html.TextBoxFor(model => model.GrossMargin, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
% @Html.TextBoxFor(model => model.LMMargin, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.CalculatedGrossMargin, new { @class = "col-sm-3 control-label" })
% @Html.TextBoxFor(model => model.CalculatedGrossMargin, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
% @Html.TextBoxFor(model => model.CalculatedGrossMarginLM, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.CalculatedGrossMarginActuals, new { @class = "col-sm-3 control-label" })
% @Html.TextBoxFor(model => model.CalculatedGrossMarginActuals, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
% @Html.TextBoxFor(model => model.CalculatedGrossMarginLMActuals, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.TDDirectCosts, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.TDDirectCosts, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
$ @Html.TextBoxFor(model => model.TDDirectCostsLM, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.TDRevenuePerShot, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.TDRevenuePerShot, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.LaborMaterialsSplit, new { @class = "col-sm-3 control-label" })
% @Html.TextBoxFor(model => model.LaborMaterialsSplit, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.BUDirectCosts, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.BUDirectCosts, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
$ @Html.TextBoxFor(model => model.BUDirectCostsLM, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.BUDirectCostsActuals, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.BUDirectCostsActuals, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
$ @Html.TextBoxFor(model => model.BUDirectCostsLMActuals, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.BUCostsShots, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.BUCostsShots, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
$ @Html.TextBoxFor(model => model.BUCostsShotsLM, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.LabelFor(model => model.BUCostsShotsActuals, new { @class = "col-sm-3 control-label" })
$ @Html.TextBoxFor(model => model.BUCostsShotsActuals, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
$ @Html.TextBoxFor(model => model.BUCostsShotsLMActuals, new { @class = "form-control", @style = "width:138px;", @disabled = "disabled" })
@Html.ValidationSummary(false, "The Scenario could not be saved due to the following errors:")
@if (string.IsNullOrEmpty(Model.BackUrl)) { Back to @(Request.QueryString["back"] == null ? "list" : Convert.ToString(Request.QueryString["back"])) } else { Back to @(Model.BackName) } @if (string.IsNullOrEmpty(Model.BackUrl)) { Update } else { Update } Adjust Margin
}
@Html.Partial("_scenarioCalendar", Model)
@Html.Partial("_rates", Model.RatesModel)

@foreach (var note in Model.Notes) { }
Date Author Title
@((note.DateAdded == null) ? "N/A" : note.DateAdded.ToString("d")) @note.Author.UserName @note.Title Edit Delete