@using Resources @using PagedList.Mvc @using PagedList @model Weee.Areas.Admin.ViewModels.ParameterIndexViewModel @{ ViewBag.Title = Resource.StaticLabelNonYearlyParameterMaintain; Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; }

@Resource.StaticLabelNonYearlyParameterMaintain - @Model.CategoryName


@if (Model.Category == Weee.Models.Paramemter.Categories.Septic) { } @if (Model.Category == Weee.Models.Paramemter.Categories.Refrigerant) { } @if (Model.Category == Weee.Models.Paramemter.Categories.Transport) { } else if (Model.Category == Weee.Models.Paramemter.Categories.WasteWater || Model.Category == Weee.Models.Paramemter.Categories.Waste) { }
@using (Html.BeginForm("Index", "Parameter", FormMethod.Post, new { enctype = "multipart/form-data" })) { if (!string.IsNullOrWhiteSpace(Model.errMsg)) { } else if (!string.IsNullOrWhiteSpace(Model.resultMsg)) { } @Html.AntiForgeryToken() @Html.HiddenFor(m => m.cmd, new { @id = "cmd" }) @Html.HiddenFor(m => m.Category) @Html.HiddenFor(m => m.Page) @Html.HiddenFor(m => m.SearchString)
@Resource.UploadExcelFile
@Html.TextBoxFor(m => m.uploadExcelFile, null, new { type = "file", @class = "input-file" })
}
@using (Html.BeginForm("Index", "Parameter", FormMethod.Get, new { id = "search-filter", @class = "form-horizontal" })) {
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "index", new { c = Model.Category }, new { @class = "btn btn-default" })
@Html.ActionLink(Resource.StaticLabelGlobal_New, "Create", new { c = Model.Category }, new { @class = "btn btn-default" })
}
@foreach (var item in Model.PagedParameterTypes) { }
@Html.DisplayNameFor(model => model.PagedParameterTypes.First().Category) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().DisplayName) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().Value) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().CO2Value) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().CH4Value) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().N2OValue) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().HFCsValue) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().PFCsValue) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().SF6Value) @Html.DisplayNameFor(model => model.PagedParameterTypes.First().Parameters.First().NF3Value)
@Html.DisplayFor(modelItem => item.Category.DisplayName) @Html.DisplayFor(modelItem => item.DisplayName) @item.Parameters.First().Value.ToString("0.############") @item.Parameters.First().CO2Value.ToString("0.############") @item.Parameters.First().CH4Value.ToString("0.############") @item.Parameters.First().N2OValue.ToString("0.############") @item.Parameters.First().HFCsValue.ToString("0.############") @item.Parameters.First().PFCsValue.ToString("0.############") @item.Parameters.First().SF6Value.ToString("0.############") @item.Parameters.First().NF3Value.ToString("0.############") @Html.ActionLink(Resource.StaticLabelGlobal_Edit, "Edit", new { typeid = item.ID }, new { @class = "btn btn-xs btn-default" })  @Html.ActionLink(Resource.StaticLabelGlobal_Delete, "Delete", new { typeid = item.ID, category = Model.Category }, new { @class = "btn btn-xs btn-default" })
@Html.PagedListPager(Model.PagedParameterTypes, page => Url.Action("Index", new { c = Model.Category, page, searchString = Model.SearchString }))
@using (Html.BeginForm("DeletePCategory", "Parameter", FormMethod.Post, new { id = "form_DeletePCategory" })) { }