@using PagedList.Mvc @using PagedList @using Resources @model Weee.Areas.Admin.ViewModels.SimaproIndexViewModel @section PageScripts { @Scripts.Render("~/parameterDatabase") } @{ ViewBag.Title = Resource.StaticLabelSimaproParameter; Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml"; }

@Resource.StaticLabelSimaproParameter

@* @using (Html.BeginForm("Index", "ParameterDatabase", FormMethod.Get, new { @class = "form-horizontal" })) {
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "index", new { }, new { @class = "btn btn-default" })
}*@

@if (ViewBag.errorMsg != null) {

@ViewBag.errorMsg

} else {
@*DL-39*@ @if (Model.SimaproParameterType != null) { @Html.Label(Model.SimaproParameterType.DisplayName) } @*@Html.Label(Model.SimaproParameterType.DisplayName)*@
@using (Html.BeginForm("Index", "ParameterDatabase", FormMethod.Get, new { id = "simapro-form" })) { }
@*DL-39*@ @if (Model.parameters != null) { foreach (var simaproParameter in Model.parameters) { } }
@Resource.SimaproParametersEncoding @Resource.SimaproParametersName @Resource.SimaproParametersChineseName @Resource.SimaproParametersValue @Resource.SimaproParametersUnit Tool Project @Resource.SimaproParametersRemark @Resource.SimaproParametersDatabase
@simaproParameter.Encoding @simaproParameter.DisplayNameEN @simaproParameter.DisplayNameTW @simaproParameter.Value @simaproParameter.Unit @simaproParameter.Description @simaproParameter.Project @simaproParameter.Remark @simaproParameter.Database @Html.ActionLink(Resource.StaticLabelGlobal_Detail, "Detail", new { simaproParameterID = simaproParameter.ID }, new { @class = "btn btn-xs btn-default" }) @Html.ActionLink(Resource.StaticLabelGlobal_Edit, "Edit", new { simaproParameterID = simaproParameter.ID }, new { @class = "btn btn-xs btn-default" })
@*DL-39*@ @if (Model.parameters != null) { @Html.PagedListPager((IPagedList)Model.parameters, page => Url.Action("Index", new { page, simaproVersionID = Model.SimaproVersion.ID, searchString = ViewBag.SearchString, simaproCategoryID = ViewBag.simaproCategoryID, simaproTypeID= ViewBag.simaproTypeID })) } @*@Html.PagedListPager((IPagedList)Model.parameters, page => Url.Action("Index", new { page, simaproVersionID = Model.SimaproVersion.ID, searchString = ViewBag.SearchString }))*@
}