demo20230512/Areas/Certification/Views/Home/LCAStatusConfirmed.cshtml

73 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
@using Weee.Models
@using Resources
@*@model IEnumerable<Weee.Models.LCA>*@ @*CFT-30*@
@model IEnumerable<Weee.ViewModels.CertificationViewModel> /*CFT-30*/
@{
ViewBag.Title = Resource.HomePage;
Layout = "~/Areas/Certification/Views/Shared/_CertificationLayout.cshtml";
}
<div class="panel panel-default docs-panel">
<div class="tab_header">
<div class="active tab-toggle">
<div class="tab">@Resource.LCAStatusConfirmed</div>
</div>
</div>
<div>
<div class="tab_content card content_bg">
<div style="margin: 20px">
<div class="table-responsive">
<div style="overflow-x:auto;">
<table class="table">
<tr style="color: #fff; background-color: #A1A1A1; text-align: center">
<th>@Html.DisplayNameFor(x => x.ID)</th>
<th>@Html.DisplayNameFor(x => x.LCAname)</th>
<th>@Html.DisplayNameFor(x => x.LCAType)</th>
<th>@Html.DisplayNameFor(x => x.Description)</th>
<th>@Html.DisplayNameFor(x => x.CreatedDate)</th>
<th>@Html.DisplayNameFor(x => x.LCAitemName)</th>
@*CFT-30*@
<th>@Html.DisplayNameFor(x => x.StartDate)</th>
<th>@Html.DisplayNameFor(x => x.EndDate)</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>@Html.DisplayFor(x => item.ID)</td>
<td>@Html.DisplayFor(x => item.LCAname)</td>
<!--<td>@Html.DisplayFor(x => item.LCATypeDisplayName)</td>-->@*CFT-30*@
<td>@Html.DisplayFor(x => item.LCATypeName)</td>
@*CFT-30*@
<td>@Html.DisplayFor(x => item.Description)</td>
<td>@Html.DisplayFor(x => item.CreatedDate)</td>
<td>@Html.DisplayFor(x => item.LCAitemName)</td>
@*CFT-30*@
<td>@item.StartDate.ToShortDateString()</td>
<td>@item.EndDate.ToShortDateString()</td>
@*@if (item.LCAType == typeof(ProductLCA))CFT-30*@
@if (item.LCATypeName == Resource.StaticLabelProductLCA)/*CFT-30*/
{
<td>@Html.ActionLink("Detail", "ProductLcaDetail", "LCA", new { id = item.ID }, null)</td>
}
//else if (item.LCAType == typeof(OrganizationLCA))@*CFT-30*@
else if (item.LCATypeName == Resource.StaticLabelOrganizationLCA) /*CFT-30*/
{
<td>@Html.ActionLink("Detail", "OrganizationLcaDetail", "LCA", new { id = item.ID }, null)</td>
}
</tr>
}
@if (Model.Count() == 0)
{
<tr><td colspan="8">@Resource.NoData @Resource.Click@Html.ActionLink(Resource.Here, "all")@Resource.SeeHistory</td></tr>
}
</table>
</div>
</div>
</div>
</div>
</div>
</div>