@using EnVisage.Code @using EnVisage.Code.HtmlHelpers @model EnVisage.Models.PeopleResourceModel @{ ViewBag.Title = "People Resource Details"; }
People Resource Information
@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)
@Model.ExpenditureCategory.Expenditure.Name
@if(Html.CheckSecurityObjectPermission(Areas.Vacations, AccessLevel.Write)) { Add Vacation } @if (Html.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 (Html.CheckSecurityObjectPermission(Areas.Vacations, AccessLevel.Write)) { Edit Delete }
}
@if(Html.CheckSecurityObjectPermission(Areas.Trainings, AccessLevel.Write)) { Schedule a Training } @if (Html.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 (Html.CheckSecurityObjectPermission(Areas.Trainings, AccessLevel.Write)) { Edit Delete }
}
Back to people resources
@section Scripts { }