demo20230512/Areas/admin/Views/ParameterDatabase/EditSimaproVersion.cshtml

79 lines
3.2 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@using Resources
@model Weee.Models.Paramemter.SimaproVersion
@{
ViewBag.Title = Resource.StaticLabelSimaproParameter;
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
var count = ViewBag.ParameterCount as string;
}
<div class="col-md-12">
<h2>@Resource.EditSimaproDatabase</h2>
<hr />
@using (Html.BeginForm("EditSimaproVersion", "ParameterDatabase", new { SimaproVersionID = Model.ID }, FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="col-md-1"></div>
if (!string.IsNullOrWhiteSpace(ViewBag.errorMsg))
{
<div class="alert alert-danger">
@ViewBag.errorMsg
</div>
}
<div class="form-horizontal col-md-10">
<div>
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.ID)
@Html.HiddenFor(model => model.CreatedDate)
@Html.Hidden("count",count)
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3">@Resource.ImportDateTime</label>
<div class="col-xs-9">
@Model.CreatedDate.ToString("yyyy/MM/dd HH:mm:ss")
</div>
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3">@Resource.VersionDecsription</label>
<div class="col-xs-9">
@Html.EditorFor(model => model.Version, new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3">@Resource.StaticLabelGlobal_Description</label>
<div class="col-xs-9">
@Html.TextAreaFor(model => model.Description, new { @class = "form-control", rows = "4" })
</div>
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3">@Resource.NumberOfCoefficients</label>
<div class="col-xs-9">
@count
</div>
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3">@Resource.RAIntlTravelScalarSource</label>
<div class="col-xs-9">
@Html.EditorFor(model => model.paraSource, new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3">@Resource.EnabledStatus</label>
<div class="col-xs-9">
@Model.IsActive
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
@Html.ActionLink(Resource.StaticLabelGlobal_BackToList, "Import", null, new { @class = "btn btn-default" })
</div>
</div>
</div>
}
</div>
<div class="col-md-2"></div>