@model BaseOUDAL.SystemUser
@{
ViewBag.Title = "用户信息 | 编辑";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
bool isUserEdit = (CurUser.系统管理.用户新增 && Model.Id == 0) || CurUser.系统管理.用户修改;
var accountPostName = "对冲交易询价对象";
var traderName = "非对冲交易询价对象";
}
@section JS
{
}
@using (Html.BeginForm("UserEdit", "System", FormMethod.Post, new { id = "userEditForm", autocomplete = "off" }))
{
@Html.HiddenFor(model => model.Id)
@*如果是新增用户*@
@if (Model.Id == 0)
{
@Html.MyTextFor(model => model.LoginName)
//新增用户时,需要输入密码,并确认密码
}
else
{
@Html.MyTextFor(model => model.LoginName, new { @readonly = "readonly" })
//修改信息时,如不输入新密码,则默认保留原密码
}
@Html.MyTextFor(model => model.Name)
@Html.MyTextFor(model => model.Email)
@Html.MyTextFor(model => model.Mobile)
@Html.MyTextFor(model => model.Tel)
@Html.MyTextFor(model => model.QQ)
@Html.MyTextFor(model => model.OaAccount)
@if (ConsUserGroup.HasGroup)
{
用户组
@foreach (var item in ConsUserGroup.GetGroups())
{
@(item.ItemDesc)
}
}
else
{
}
@Html.MyAceDropdownFor(model => model.RoleType, GlobalData.GetAllRole(CurUser,""), "", false, true)
@*@Html.MyAceDropdownFor(model => model.AccountPost, GlobalData.GetAccountPosts(), Model.AccountPost, false, true)*@
账号岗位
0 ? "selected" : "")>@accountPostName
0 ? "selected" : "")>@traderName