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

176 lines
10 KiB
Plaintext

@using Resources
@using Weee.Models.ExtensionMethods
@model Weee.Areas.Admin.ViewModels.ParameterCreateViewModel
@{
ViewBag.Title = Resource.StaticLabelNonYearlyParameterMaintain;
Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="col-md-12">
<h2>@Resource.StaticLabelGlobal_New - @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.ToBeCreated.DisplayNameTW, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeCreated.DisplayNameTW, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeCreated.DisplayNameTW, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeCreated.DisplayNameCN, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeCreated.DisplayNameCN, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeCreated.DisplayNameCN, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeCreated.DisplayNameEN, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeCreated.DisplayNameEN, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeCreated.DisplayNameEN, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeCreated.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.ToBeCreated.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.ToBeCreated.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.ToBeCreated.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.FirstVersion.Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.CO2Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.CO2Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.CO2Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.CH4Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.CH4Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.CH4Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.N2OValue, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.N2OValue, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.N2OValue, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.HFCsValue, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.HFCsValue, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.HFCsValue, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.PFCsValue, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.PFCsValue, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.PFCsValue, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.SF6Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.SF6Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.SF6Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.NF3Value, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.FirstVersion.NF3Value, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.FirstVersion.NF3Value, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ToBeCreated.paraSource, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeCreated.paraSource, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeCreated.paraSource, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.FirstVersion.Description, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.TextAreaFor(model => model.FirstVersion.Description, new { @class = "form-control", rows = "5" })
@Html.ValidationMessageFor(model => model.FirstVersion.Description, null, new { @class = "text-danger" })
</div>
</div>
@*<div class="form-group">
@Html.LabelFor(model => model.ToBeCreated.CO2, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ToBeCreated.CO2, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ToBeCreated.CO2, null, new { @class = "text-danger" })
</div>
</div>*@
<div class="form-group text-right" style="padding-top: 10px;">
<div class="col-md-offset-2 col-md-10">
<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>
}
</div>