@{
ViewBag.Title = "Add";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@model SJCRM.Models.SystemUser
<div>
<div>
<div>
<h3>编辑用户</h3>
</div>
<div>
@using (Html.BeginForm())
{
<dl>
<dd>用户名:</dd>
<dd>
<input type="text" datatype="*" nullmsg="请输入产品名称" value="@Model.LogName"/>
</dd>
</dl>
<dl>
<dd>昵称:</dd>
<dd>
<input type="text" datatype="n" nullmsg="请输入产品名称" value="@Model.TrueName" />
</dd>
</dl>
<dl>
<dd>Email:</dd>
<dd>
<input type="text" value="@Model.Email" />
</dd>
</dl>
<dl>
<dd>手机号:</dd>
<dd>
<input type="text" value="@Model.Mobile" />
</dd>
</dl>
<dl>
<dd>修改密码:</dd>
<dd>
<input type="text" value="@Model.Password" />
</dd>
</dl>
<dl>
<dd>岗位:</dd>
<dd>
@Html.DropDownList("JobID", ViewBag.JobID as SelectList)
</dd>
</dl>
<dl>
<dd>部门:</dd>
<dd>
@Html.DropDownList("DepartmentID", ViewBag.DepartmentID as SelectList)
</dd>
</dl>
<dl>
<dd>角色:</dd>
<dd>
@Html.DropDownList("RoleID", ViewBag.RoleID as SelectList)
</dd>
</dl>
<dl>
<dd>
<input type="submit" value="提 交" />
</dd>
</dl>
}
</div>
</div>
</div>
<script>
//菜单显示
$("");
$("");
$("");
$(".@(ViewBag.ControllerName)sys").each(function (index, item) {
$(this).show();
});
</script>
Search.cshtml
复制代码 代码如下: