@using Weee.Models.ExtensionMethods @using Resources @model Weee.Models.LCA @{ ViewBag.Title = Resource.StaticLabelLCAList; Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; var WatingTimeList = Model.StatusHistory .Where(x => x.NewStatus == Weee.Models.LCAStatus.Waiting) .Select(x => x.ActionTime).ToList(); }

LCA


@Html.DisplayFor(model => model.Owner.Name)
@Html.DisplayFor(model => model.VerifyBy.Name)
@Model.StartDate.ToShortDateString()
@Model.EndDate.ToShortDateString()
@(Model.DeadLine.HasValue ? Model.DeadLine.Value.ToShortDateString() : "")
@Model.Status.DisplayString()

@Resource.Log


@foreach (var item in Model.StatusHistory) { }
@Resource.ActionDate @Resource.NewStatus @Resource.Actor @Resource.StaticLabelGlobal_Description
@Model.CreatedDate @(Model is Weee.Models.ProductLCA ? (((Weee.Models.ProductLCA)Model).HasProductLifeCycle_MaterialsObtained ? Weee.Models.LCAStatus.New.DisplayString() : Weee.Models.LCAStatus.Processing.DisplayString()) : Weee.Models.LCAStatus.Processing.DisplayString()) @Model.LCAStarter @Model.Description
@item.ActionTime @item.NewStatus.DisplayString() @item.WhoDidThis @item.Description

@Resource.Comment


@for (int i = 0; i < WatingTimeList.Count(); i++) { var nextwaititme = i + 1 < WatingTimeList.Count() ? WatingTimeList[i + 1] : DateTime.Now; foreach (var item in Model.Comments.Where(x => x.CreateTime > WatingTimeList[i] && x.CreateTime < nextwaititme)) { } }
@Resource.CommentDate @Resource.UpdateTime @Resource.CommentTarget @Resource.Content
@item.CreateTime @item.UpdateTime @(item.Category != null ? item.Category : "")
@Html.ActionLink(Resource.StaticLabelGlobal_BackToList, "Index", new { }, new { @class = "btn btn-default" }) @Html.ActionLink(Resource.DeleteItemMsg, "Delete", new { id = ViewBag.id }, new { @class = "btn btn-default" })