@using Weee.Models.ExtensionMethods @using Resources @using PagedList.Mvc @using PagedList @model IEnumerable @*@model IEnumerable*@ @{ ViewBag.Title = Resource.StaticLabelCompanyList; Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; }

@Resource.StaticLabelCompanyList

@using (Html.BeginForm("Index", "Company", FormMethod.Get, new { id = "search-filter", @class = "form-horizontal" })) {
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "index", new { }, new { @class = "btn btn-default" })
}
@foreach (var item in Model) { }
@Html.DisplayNameFor(model => model.UserName) @Html.DisplayNameFor(model => model.Name) @Html.DisplayNameFor(model => model.Address) @Html.DisplayNameFor(model => model.RegisterDate) @Html.DisplayNameFor(model => model.LastStatusUpdateDate) @Html.DisplayNameFor(model => model.Status) @Resource.StaticLabelType
@Html.DisplayFor(modelItem => item.UserName) @Html.DisplayFor(modelItem => item.Name) @Html.DisplayFor(modelItem => item.Address) @item.RegisterDate.ToShortDateString() @item.LastStatusUpdateDate.ToShortDateString() @item.Status.DisplayString() @item.CompanyTypeDisplayName @if (item.CompanyType == typeof(Weee.Models.CertificationCompany)) { @Html.ActionLink(Resource.StaticLabelGlobal_Detail, "EditCertification", new { id = item.ID }) } else { @Html.ActionLink(Resource.StaticLabelGlobal_Detail, "EditCompany", new { id = item.ID }) } @if (item.Status == Weee.Models.CompanyStatus.Active) { @Html.ActionLink(Resource.DeActive, "DeActive", new { id = item.ID }, new { @class = "btn btn-xs btn-default" }) } else { @Html.ActionLink(Resource.Active, "Active", new { id = item.ID }, new { @class = "btn btn-xs btn-default" }) } @Html.ActionLink(Resource.ResetPassword, "ResetPassword", new { id = item.ID }, new { @class = "btn btn-xs btn-default" }) @Html.ActionLink("權限設定", "CompanyAdminAccess", new { id = item.ID }, new { @class = "btn btn-xs btn-default" })
@Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { page, searchString = ViewBag.SearchString }))