@using Weee.Models.ExtensionMethods @using Resources @using PagedList.Mvc @using PagedList @model Qcarbon.ViewModels.admin.accessKeyIndexVM @{ ViewBag.Title = Resource.AccessKey; Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml"; }

@ViewBag.Title

@Html.DisplayNameFor(model => model.curAdminAccess.functionScope)
@Html.DisplayNameFor(model => model.curAdminAccess.activeStartDate)
@Html.DisplayNameFor(model => model.curAdminAccess.activeEndDate)
@if (Model.curAdminAccess != null) {
@Model.curAdminAccess.functionScope.ToString()
@if (Model.curAdminAccess.activeStartDate != null) { @Model.curAdminAccess.activeStartDate.Value.ToString("yyyy/MM/dd") }
@if (Model.curAdminAccess.activeEndDate!=null) { @Model.curAdminAccess.activeEndDate.Value.ToString("yyyy/MM/dd") }
}
@Html.DisplayNameFor(model => model.curAdminAccess.companyAdminLimit)
@Html.DisplayNameFor(model => model.curAdminAccess.lcaLimit)
@Html.DisplayNameFor(model => model.curAdminAccess.listReportLimit)
@Html.DisplayNameFor(model => model.curAdminAccess.certifyCompanyLimit)
@Html.DisplayNameFor(model => model.curAdminAccess.lcaUserLimit)
@Html.DisplayNameFor(model => model.curAdminAccess.supplierLimit)
@if (Model.curAdminAccess != null) {
@Model.curAdminAccess.companyAdminLimit
@Model.curAdminAccess.lcaLimit
@Model.curAdminAccess.listReportLimit
@Model.curAdminAccess.certifyCompanyLimit
@Model.curAdminAccess.lcaUserLimit
@Model.curAdminAccess.supplierLimit
}
@Html.DisplayNameFor(model => model.curAdminAccessUsage.companyAdminQuantity)
@Html.DisplayNameFor(model => model.curAdminAccessUsage.lcaQuantity)
@Html.DisplayNameFor(model => model.curAdminAccessUsage.listReportQuantity)
@Html.DisplayNameFor(model => model.curAdminAccessUsage.certifyCompanyQuantity)
@Html.DisplayNameFor(model => model.curAdminAccessUsage.lcaUserQuantity)
@Html.DisplayNameFor(model => model.curAdminAccessUsage.supplierQuantity)
@Model.curAdminAccessUsage.companyAdminQuantity
@Model.curAdminAccessUsage.lcaQuantity
@Model.curAdminAccessUsage.listReportQuantity
@Model.curAdminAccessUsage.certifyCompanyQuantity
@Model.curAdminAccessUsage.lcaUserQuantity
@Model.curAdminAccessUsage.supplierQuantity
@using (Html.BeginForm("Index", "AccessKey", FormMethod.Post, new { id = "importKey", @class = "form-horizontal" })) { @Html.AntiForgeryToken()
金鑰文字段
@Html.ValidationSummary(true, "", new { @class = "text-danger font-weight-bold" }) @if (!string.IsNullOrWhiteSpace(ViewBag.OKmsg)) { } else if (!string.IsNullOrWhiteSpace(ViewBag.errMsg)) { }
@Html.TextAreaFor(m => m.keyText, new { @class = "form-control", @rows = 10, style = "overflow-y: scroll" })
}
@if (Model.adminAccessHis != null) { foreach (var item in Model.adminAccessHis) { } }
@Html.DisplayNameFor(model => model.curAdminAccess.functionScope) @Html.DisplayNameFor(model => model.curAdminAccess.activeStartDate) @Html.DisplayNameFor(model => model.curAdminAccess.activeEndDate) @Html.DisplayNameFor(model => model.curAdminAccess.companyAdminLimit) @Html.DisplayNameFor(model => model.curAdminAccess.lcaLimit) @Html.DisplayNameFor(model => model.curAdminAccess.listReportLimit) @Html.DisplayNameFor(model => model.curAdminAccess.certifyCompanyLimit) @Html.DisplayNameFor(model => model.curAdminAccess.lcaUserLimit) @Html.DisplayNameFor(model => model.curAdminAccess.supplierLimit) @Html.DisplayNameFor(model => model.curAdminAccess.encJsonAppliedtime)
@Html.DisplayFor(modelItem => item.functionScope) @item.activeStartDate.Value.ToString("yyyy/MM/dd") @item.activeEndDate.Value.ToString("yyyy/MM/dd") @Html.DisplayFor(modelItem => item.companyAdminLimit) @Html.DisplayFor(modelItem => item.lcaLimit) @Html.DisplayFor(modelItem => item.listReportLimit) @Html.DisplayFor(modelItem => item.certifyCompanyLimit) @Html.DisplayFor(modelItem => item.lcaUserLimit) @Html.DisplayFor(modelItem => item.supplierLimit) @item.encJsonAppliedtime.ToString("yyyy/MM/dd")
@*
@Html.PagedListPager((IPagedList)Model.adminAccessHis, page => Url.Action("Index", new { page @ *, searchString = ViewBag.SearchString* @ }))
*@