@using EnVisage.Code @using EnVisage.Code.HtmlHelpers @model EnVisage.Models.PeopleResourceModel @{ ViewBag.Title = "People Resource Details"; } @section stylesheets { } @section scripts { @Scripts.Render("~/bundles/angular-app-modules") }
@Html.LabelFor(model => model.FirstName, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.FirstName, new { @class = "form-control", @readonly = "true" }) @Html.ValidationMessageFor(model => model.FirstName)
@Html.LabelFor(model => model.LastName, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.LastName, new { @class = "form-control", @readonly = "true" }) @Html.ValidationMessageFor(model => model.LastName)
@Html.LabelFor(model => model.IsActiveEmployee, new { @class = "col-sm-2 control-label" })
@Html.CheckBoxFor(model => model.IsActiveEmployee, new { @class = "switcher-disabled-default", @disabled = "disabled" }) @Html.ValidationMessageFor(model => model.IsActiveEmployee)
@Html.LabelFor(model => model.StartDate, new { @class = "col-sm-2 control-label" })
@Html.EditorFor(model => model.StartDate, new { @class = "form-control", @Disabled = true }) @Html.ValidationMessageFor(model => model.StartDate)
@Html.LabelFor(model => model.EndDate, new { @class = "col-sm-2 control-label" })
@Html.EditorFor(model => model.EndDate, new { @class = "form-control", @Disabled = true }) @Html.ValidationMessageFor(model => model.EndDate)
@* SA. ENV-756. ENV-839 ExpName -> ExpCatName *@
@Model.ExpenditureCategory.GetView().ExpCategoryWithCcName
   @* SA. ENV-799 *@
@Html.Partial("../CapacityManagement/_capacityManagement", Model)
@if (SecurityManager.CheckSecurityObjectPermission(Areas.Vacations, AccessLevel.Write)) { Add Vacation } @if (SecurityManager.CheckSecurityObjectPermission(Areas.Vacations, AccessLevel.Read)) {
@foreach (var vacation in Model.Vacations) { }
Start Date End Date Duration Hours Available
@vacation.StartDate.Value.ToShortDateString() @vacation.EndDate.Value.ToShortDateString() @(vacation.Duration) days @((int)(vacation.UOMValue * vacation.PeopleResourceVacations.Count - vacation.PeopleResourceVacations.Sum(t => t.HoursOff))) hours @if (SecurityManager.CheckSecurityObjectPermission(Areas.Vacations, AccessLevel.Write)) { Edit Delete }
}
@if (SecurityManager.CheckSecurityObjectPermission(Areas.Trainings, AccessLevel.Write)) { Schedule a Training } @if (SecurityManager.CheckSecurityObjectPermission(Areas.Trainings, AccessLevel.Read)) {
@foreach (var training in Model.Trainings) { }
Start Date End Date Duration Name Type Hours Allocated Cost Skills
@training.TrainingStartDate.ToShortDateString() @training.TrainingEndDate.ToShortDateString() @(training.TrainingDuration) days @(training.TrainingName) @(training.TrainingTypeName) @(training.TrainingTimeAllocated) % @(training.TrainingCost) @if (SecurityManager.CheckSecurityObjectPermission(Areas.Trainings, AccessLevel.Write)) { Edit Delete }
}
@*@section Scripts { }*@