@using Weee.Models.ExtensionMethods @using Resources @model Weee.Areas.Admin.ViewModels.YearlyParameterCreateViewModel @{ ViewBag.Title = Resource.StaticLabelYearlyParameterMaintain; Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; }

@Resource.StaticLabelGlobal_New - @Resource.StaticLabelYearlyParameterMaintain


@using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.HiddenFor(model => Model.categories) @Html.ValidationSummary(true)
@Html.LabelFor(model => Model.ToBeCreated.Value, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.Value, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.Value, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.CO2Value, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.CO2Value, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.CO2Value, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.CH4Value, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.CH4Value, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.CH4Value, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.N2OValue, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.N2OValue, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.N2OValue, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.HFCsValue, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.HFCsValue, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.HFCsValue, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.PFCsValue, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.PFCsValue, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.PFCsValue, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.SF6Value, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.SF6Value, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.SF6Value, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.NF3Value, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.NF3Value, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.NF3Value, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.Year, new { @class = "control-label docs-control-label col-xs-2" })
@Html.EditorFor(model => Model.ToBeCreated.Year, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => Model.ToBeCreated.Year, "", new { @class = "text-danger" })
@Html.LabelFor(model => Model.ToBeCreated.Description, new { @class = "control-label docs-control-label col-xs-2" })
@Html.TextAreaFor(model => model.ToBeCreated.Description, new { @class = "form-control", rows = "4" }) @Html.ValidationMessageFor(model => Model.ToBeCreated.Description, "", new { @class = "text-danger" })
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { c = Model.categories }, new { @class = "btn btn-default" })

@Resource.UpdateRecord


    @foreach (var history in Model.History) {
  1. @history.Value @Resource.BulidDate: @history.CreateTime @Resource.ParameterDescription: @history.Description
  2. }
}