132 lines
6.6 KiB
Plaintext
132 lines
6.6 KiB
Plaintext
|
@using Weee.Models.ExtensionMethods
|
||
|
@using Resources
|
||
|
|
||
|
@model Weee.Areas.Admin.ViewModels.YearlyParameterCreateViewModel
|
||
|
|
||
|
@{
|
||
|
ViewBag.Title = Resource.StaticLabelYearlyParameterMaintain;
|
||
|
Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml";
|
||
|
}
|
||
|
|
||
|
|
||
|
<div class="col-md-12">
|
||
|
<h2>@Resource.StaticLabelGlobal_New - @Resource.StaticLabelYearlyParameterMaintain</h2>
|
||
|
<hr />
|
||
|
@using (Html.BeginForm())
|
||
|
{
|
||
|
@Html.AntiForgeryToken()
|
||
|
<div class="col-md-1"></div>
|
||
|
<div class="form-horizontal col-md-10">
|
||
|
<div class="form-group">
|
||
|
<label class="col-xs-12">
|
||
|
@Model.categories.DisplayString() / @Model.AreaDisplayName / @Model.TypeDisplayName
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.HiddenFor(model => Model.categories)
|
||
|
@Html.ValidationSummary(true)
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.Value, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.Value, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.Value, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.CO2Value, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.CO2Value, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.CO2Value, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.CH4Value, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.CH4Value, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.CH4Value, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.N2OValue, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.N2OValue, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.N2OValue, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.HFCsValue, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.HFCsValue, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.HFCsValue, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.PFCsValue, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.PFCsValue, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.PFCsValue, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.SF6Value, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.SF6Value, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.SF6Value, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.NF3Value, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.NF3Value, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.NF3Value, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.Year, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.EditorFor(model => Model.ToBeCreated.Year, new { htmlAttributes = new { @class = "form-control" } })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.Year, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
@Html.LabelFor(model => Model.ToBeCreated.Description, new { @class = "control-label docs-control-label col-xs-2" })
|
||
|
<div class="col-xs-10">
|
||
|
@Html.TextAreaFor(model => model.ToBeCreated.Description, new { @class = "form-control", rows = "4" })
|
||
|
@Html.ValidationMessageFor(model => Model.ToBeCreated.Description, "", new { @class = "text-danger" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<div class="col-xs-12 text-right" style="padding-top: 10px;">
|
||
|
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
|
||
|
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { c = Model.categories }, new { @class = "btn btn-default" })
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div>
|
||
|
<h2>@Resource.UpdateRecord</h2>
|
||
|
<hr />
|
||
|
<ol>
|
||
|
@foreach (var history in Model.History)
|
||
|
{
|
||
|
<li>@history.Value @Resource.BulidDate: @history.CreateTime @Resource.ParameterDescription: @history.Description</li>
|
||
|
}
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
}
|
||
|
</div>
|
||
|
<div class="col-md-2"></div>
|