@using Resources @model Qcarbon.ViewModels.DTO.RiskMaterialViewModel @{ ViewBag.Title = "Index"; Layout = "~/Areas/Lca/Views/Shared/_LcaRiskLayout.cshtml"; } @* the detail modal form *@ @using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.HiddenFor(x => x.cmd, new { @id = "cmd" }) @Html.HiddenFor(x => x.singleRec.LCAID)
新增原物料
@if (!string.IsNullOrWhiteSpace(Model.successMsg)) { }
@Html.ValidationSummary(false, "", new { @class = "text-danger", style = "margin-left:15px;font-weight: bold;" })
@if (!Model.editing) { @Html.EditorFor(x => x.singleRec.MaterialNo, new { htmlAttributes = new { placeholder = Resource.RequiredMessage } }) } else { @Html.EditorFor(x => x.singleRec.MaterialNo, new { htmlAttributes = new { placeholder = Resource.RequiredMessage, @readonly = "readonly" } }) @Html.HiddenFor(x=>x.singleRec.MaterialNo) } @**@
@Html.EditorFor(x => x.singleRec.MaterialName, new { htmlAttributes = new { placeholder = Resource.RequiredMessage } }) @**@
@Html.EditorFor(x => x.singleRec.MaterialSpec, new { htmlAttributes = new { onblur = "onVarChange()", placeholder = Resource.RequiredMessage, type = "number", step = "any" } }) @**@
@Html.EditorFor(x => x.singleRec.AnnualPurchaseAmount, new { htmlAttributes = new { onblur = "onVarChange()", placeholder = Resource.RequiredMessage, type = "number", step = "any" } }) @**@
@Html.EditorFor(x => x.singleRec.KgCO2e, new { htmlAttributes = new { onblur = "onVarChange()", placeholder = Resource.RequiredMessage, type = "number", step = "any" } })
@*@Html.HiddenFor(x => x.singleRec.ActivityIntensity) @Html.EditorFor(x => x.singleRec.ActivityIntensity, new { htmlAttributes = new { @readonly = "readonly" } })*@ @**@
@*@Html.HiddenFor(x=>x.singleRec.Emission) @Html.EditorFor(x => x.singleRec.Emission, new { htmlAttributes = new { @readonly = "readonly" } })*@ @**@
@*
*@
@Html.EditorFor(x => x.singleRec.Unit, new { htmlAttributes = new { placeholder = Resource.RequiredMessage } }) @**@
@Html.EditorFor(x => x.singleRec.Comment) @**@
}