Files
zszq-trs/YLErpWeb/Views/System/UserView.cshtml
T

60 lines
2.0 KiB
Plaintext

@model BaseOUDAL.SystemUser
@{
ViewBag.Title = "用户信息|查看";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
var saved = TempData["saved"];
bool isUserEdit = CurUser.系统管理.用户新增 || CurUser.系统管理.用户修改 && Model.Id == 0;
string AccountPostStr = ViewData["AccountPostStr"].ToString();
}
<style>
th {
min-width: 8rem;
}
</style>
@section JS{
<script type="text/javascript">
var saved = "@saved"=="True";
if (saved && window.parent) {
window.parent.SearchClick();
}
</script>
}
@if (isUserEdit && (Model.LoginName.ToLower() != "supera" || CurUser.LoginName.ToLower() == "supera"))
{
<div class="toolbarDiv">
<button class="btn btn-white btn-primary " onclick="window.location.href=('/system/UserEdit/@(Model.Id)');return false;">
<span class='glyphicon glyphicon-edit'></span> 修改
</button>
</div>
}
@Html.HiddenFor(model => model.Id)
<div class="yc-panel">
<table class="table table-bordered">
<tr>@Html.MyDisplayFor(m => m.LoginName)</tr>
<tr>@Html.MyDisplayFor(m => m.Email)</tr>
<tr>@Html.MyDisplayFor(m => m.Mobile)</tr>
<tr>@Html.MyDisplayFor(m => m.Tel)</tr>
<tr>@Html.MyDisplayFor(m => m.QQ)</tr>
<tr>@Html.MyDisplayFor(m => m.OaAccount)</tr>
@if (ConsUserGroup.HasGroup)
{
<tr>
<th class="tdRight">业务组</th>
<td>@(ConsUserGroup.GetGroupDesc(Model.UserGroup))</td>
</tr>
}
@if (!string.IsNullOrEmpty(Model.BondIP))
{
<tr>@Html.MyDisplayFor(m => m.BondIP)</tr>
}
<tr>@Html.MyDisplayFor(m => m.RoleTypeName)</tr>
<tr>@Html.MyDisplayFor(m => m.Name)</tr>
<tr>
<th class="tdRight">账号岗位</th>
<td>@AccountPostStr</td>
</tr>
<tr><th class="tdRight">状态</th><td>@(Model.State == 0 ? "正常" : "禁用")</td></tr>
</table>
</div>