@using EnVisage.Code.HtmlHelpers @using EnVisage.Code @using Microsoft.AspNet.Identity @model IList
@if (Model.Any()) { @**@ @foreach (var team in Model) { if(team.PeopleResources.Any()) { foreach (var resource in team.PeopleResources) { @if (resource.ExpenditureCategory == null || resource.ExpenditureCategory.Expenditure == null) { } else { } @**@ } }else{ } }
Name Active Employee Start Date End Date Expenditure
@team.Name
@(resource.FirstName + " " + resource.LastName) @(resource.IsActiveEmployee ? "Active" : "Inactive") @resource.StartDate.ToShortDateString() @resource.EndDate.ToShortDateString()No expenditure@resource.ExpenditureCategory.Expenditure.Name @if (Html.CheckSecurityObjectPermission(Areas.Resources, AccessLevel.Write)) { Edit Delete }
No resources in the team.
} else { No teams in the department. }