RMS.Manage.Web/Areas/RMS/Views/Menu/Edit.cshtml
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@using RMS.EF.Model
@model RMS_Menu
@{
var programs_Select = ViewBag.Programs_Select as List<SelectListItem>;
var errorMsg = ViewBag.ErrorMsg as string;
if (!string.IsNullOrWhiteSpace(errorMsg))
{
<script>
toastr.error("@(errorMsg)");
</script>
}
}
<link href="~/bower_components/bootstrap_dropdowns_enhancement-master/dropdowns-enhancement.min.css" rel="stylesheet" />
<div class="form-horizontal">
@Html.HiddenFor(model => model.Id)
<div class="form-group">
@Html.LabelFor(model => model.ProgramId, "程序", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.ProgramId, programs_Select, new { @class = "form-control" ,onchange="programChange()"})
@Html.ValidationMessageFor(model => model.ProgramId)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ParentId, "父节点", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div id="divPid" class="dropdown">
<button type="button" class="btn btn-primary" data-toggle="dropdown">
<lable id="BtnName" class="showbtn"></lable> <span class="caret"></span>
</button>
<ul class="dropdown-menu"></ul>
</div>
@Html.HiddenFor(model => model.ParentId)
@Html.ValidationMessageFor(model => model.ProgramId)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Name, "名称", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control", @maxlength = 50 } })
@Html.ValidationMessageFor(model => model.Name)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.EType, "类型", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.EType, new List<SelectListItem>()
{
new SelectListItem() {Value=(E_Type_Menu.Menu).ToString(),Text="菜单" },
new SelectListItem() {Value=(E_Type_Menu.Function).ToString(),Text="功能" }
}, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.EType)
</div>
</div>
<div class="form-group">
后面还有 95 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。