@using EnVisage.Code @model EnVisage.Models.ImportActualsModel @{ ViewBag.Title = "Import Actuals"; } @section Scripts { @Scripts.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_SCRIPTS_BASE_PATH, "prevu-importactualspage")) }
@using (Html.BeginForm("ImportActuals", "Project", FormMethod.Post, new { @class = "panel form-horizontal", enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
@if (ViewBag.ImportResult == null && ViewBag.ComletedImport == null) {
@Html.ValidationSummary(false, "")
@if (SecurityManager.CheckSecurityObjectPermission(Areas.ImportActuals, AccessLevel.Write)) { }
} else { int _i = 0; if(Model != null && ViewBag.ComletedImport == null){ @Html.HiddenFor(x => x.Id) @Html.HiddenFor(x => x.ResetActuals) @Html.HiddenFor(x => x.SessionId) @Html.HiddenFor(x => x.ImportSuccessful)
@foreach (var project in Model.Projects) { var _j = 0; foreach (var part in project.ProjectParts) { _j++; } _i++; }
Project Name Dates Distribution
@Html.HiddenFor(x => x.Projects[_i].ActualsScenarioId) @Html.HiddenFor(x => x.Projects[_i].ProjectId) @Html.CheckBoxFor(x => x.Projects[_i].Checked, new { @class = "projectclick" }) @Html.DisplayTextFor(x => x.Projects[_i].ProjectName) @Html.DisplayTextFor(x => x.Projects[_i].StartDate) - @Html.DisplayTextFor(x => x.Projects[_i].EndDate)
@Html.HiddenFor(x => x.Projects[_i].ProjectParts[_j].PartId) @Html.HiddenFor(x => x.Projects[_i].ProjectParts[_j].ActualsScenarioId) @Html.CheckBoxFor(x => x.Projects[_i].ProjectParts[_j].Checked, new { @class = "partclick" }) @Html.DisplayTextFor(x => x.Projects[_i].ProjectParts[_j].PartName)
@Html.EditorFor(x => x.Projects[_i].ProjectParts[_j].StartDate)
To
@Html.EditorFor(x => x.Projects[_i].ProjectParts[_j].EndDate)
@Html.HiddenFor(x => x.Projects[_i].ProjectParts[_j].Distribution, new { @class = "sliderValue" }) @((_j == 0) ? "100" : "0") %
Back if (SecurityManager.CheckSecurityObjectPermission(Areas.ImportActuals, AccessLevel.Write)) { } } if (ViewBag.ImportResult != null) { if (ViewBag.ImportResult == true) {

Data loaded successfully

@ViewBag.ImportLog
} else {

Data load failed

@ViewBag.ImportLog
} } if (ViewBag.ComletedImport != null) { if (ViewBag.ComletedImport == true) {

Data saved successfully

@ViewBag.ImportLog
} else {

Data save failed

@ViewBag.ImportLog
} } }
}