demo20230512/Areas/admin/Views/Parameter/Edit.cshtml
2023-05-12 10:20:28 +08:00

177 lines
9.9 KiB
Plaintext

@using Resources
@using Weee.Models.ExtensionMethods
@model Weee.Areas.Admin.ViewModels.ParameterEditViewModel
@{
ViewBag.Title = Resource.StaticLabelNonYearlyParameterMaintain;
Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="col-md-12">
<h2>@Resource.StaticLabelGlobal_Edit - @Model.Category.DisplayString()</h2>
<hr />
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
@Html.HiddenFor(model => model.Category)
<div class="col-md-1"></div>
<div class="form-horizontal col-md-10">
@Html.ValidationSummary(true)
<div class="form-group">
@Html.LabelFor(model => model.ToBeEdited.DisplayNameTW, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeEdited.DisplayNameTW, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeEdited.DisplayNameTW, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeEdited.DisplayNameCN, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeEdited.DisplayNameCN, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeEdited.DisplayNameCN, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeEdited.DisplayNameEN, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeEdited.DisplayNameEN, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeEdited.DisplayNameEN, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeEdited.activityDataType, new { @class = "control-label docs-control-label col-xs-3" })
@*<label class="control-label docs-control-label col-xs-3">@Resource.ActivityDataType</label>*@
<div class="col-xs-9">
@Html.DropDownListFor(model => model.ToBeEdited.activityDataType, (IEnumerable<SelectListItem>)ViewBag.activityItems, new { @class = "form-control" })
@*<select class="form-control" id="activityDataType" name="activityDataType">
<option value=""></option>
<option value="1">@Resource.autoContinuousMeasure</option>
<option value="2">@Resource.indirectMeasure</option>
<option value="3">@Resource.selfEstimate</option>
</select>*@
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeEdited.emitParaType, new { @class = "control-label docs-control-label col-xs-3" })
@*<label class="control-label docs-control-label col-xs-3">@Resource.EmitParaType</label>*@
<div class="col-xs-9">
@Html.DropDownListFor(model => model.ToBeEdited.emitParaType, (IEnumerable<SelectListItem>)ViewBag.emitParaItems, new { @class = "form-control" })
@*<select class="form-control" id="emitParaType" name="emitParaType">
<option value=""></option>
<option value="1">@Resource.measureEnergyBalance</option>
<option value="2">@Resource.sameSituationExperience</option>
<option value="3">@Resource.factorFromManufacturer</option>
<option value="4">@Resource.regionEmissionFactor</option>
<option value="5">@Resource.nationEmissionFactor</option>
<option value="6">@Resource.internationalFactor</option>
</select>*@
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.CO2Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.CO2Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.CO2Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.CH4Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.CH4Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.CH4Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.N2OValue, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.N2OValue, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.N2OValue, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.HFCsValue, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.HFCsValue, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.HFCsValue, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.PFCsValue, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.PFCsValue, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.PFCsValue, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.SF6Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.SF6Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.SF6Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.NF3Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.NF3Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.NF3Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeEdited.paraSource, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeEdited.paraSource, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeEdited.paraSource, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.NewVersion.Description, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.NewVersion.Description, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.NewVersion.Description, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group" style="padding-top: 10px;">
<div class="col-md-offset-2 col-md-10 text-right">
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { c = Model.Category }, new { @class = "btn btn-default" })
</div>
</div>
<div>
<h2>@Resource.Log</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>