67 lines
2.8 KiB
Plaintext
67 lines
2.8 KiB
Plaintext
@model IEnumerable<Weee.Models.LCA>
|
|
@using Weee.Models
|
|
@using Resources
|
|
@using PagedList.Mvc
|
|
@using PagedList
|
|
@{
|
|
ViewBag.Title = Resource.HomePage;
|
|
Layout = "~/Areas/Certification/Views/Shared/_CertificationLayout.cshtml";
|
|
}
|
|
|
|
<div class="panel panel-default docs-panel">
|
|
<div class="row docs-row">
|
|
<div class="col-xs-5">
|
|
<h2 class="docs-h2">歷史紀錄</h2>
|
|
</div>
|
|
<div class="col-xs-7" style="margin-top: 20px;margin-bottom: 10px;">
|
|
@using (Html.BeginForm("all", "home", FormMethod.Get, new { id = "search-filter", @class = "form-horizontal" }))
|
|
{
|
|
<div class="form-group">
|
|
<div class="col-sm-8">
|
|
<input name="searchString" class="form-control" type="text" value="@ViewBag.SearchString" />
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<input type="submit" value="@Resource.StaticLabelGlobal_Search" class="btn btn-default" />
|
|
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "", new { }, new { @class = "btn btn-default" })
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<table class="table table-bordered docs-table">
|
|
<tr class="certification_table_header">
|
|
@*<th>@Html.ActionLink("ID","All",new{((IPagedList)Model).PageNumber,searchString=ViewBag.SearchString})</th>*@
|
|
<th>ID</th>
|
|
<th>@Html.DisplayNameFor(x => x.StartDate)</th>
|
|
<th>@Html.DisplayNameFor(x => x.EndDate)</th>
|
|
<th>@Html.DisplayNameFor(x => x.Description)</th>
|
|
<th>@Html.DisplayNameFor(x => x.LCAType)</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>@Html.DisplayFor(x => item.ID)</td>
|
|
<td>@item.StartDate.ToShortDateString()</td>
|
|
<td>@item.EndDate.ToShortDateString()</td>
|
|
<td>@Html.DisplayFor(x => item.Description)</td>
|
|
<td>@Html.DisplayFor(x => item.LCATypeDisplayName)</td>
|
|
@if (item.LCAType == typeof(ProductLCA))
|
|
{
|
|
<td>@Html.ActionLink("Detail", "ProductLcaDetail", "LCA", new { id = item.ID }, null)</td>
|
|
}
|
|
else if (item.LCAType == typeof(OrganizationLCA))
|
|
{
|
|
<td>@Html.ActionLink("Detail", "OrganizationLcaDetail", "LCA", new { id = item.ID }, null)</td>
|
|
}
|
|
</tr>
|
|
}
|
|
</table>
|
|
|
|
<div class="text-center">
|
|
@Html.PagedListPager((IPagedList)Model, page => Url.Action("All", new { page, searchString = ViewBag.SearchString }))
|
|
</div>
|
|
</div>
|
|
</div> |