@model Hospital.ViewModels.OverviewViewModel @{ ViewBag.Title = "欢迎使用"; var userQuanxian = ViewBag.UserPermissionsIDSet as HashSet; var isJiben = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 1); var isJuese = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 2); var isUsers = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 3); var isFenpeiJuese = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 4); var isGG = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 5); var isDataManager = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 6); var isDeptDataManager = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 7); var isDataFlow = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 8); var isDataShenheEdit = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 9); var isTianbao = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 10); var isGetLeakManager = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 19); var isSearchManager = Hospital.Core.Utility.IsExitDataInList(userQuanxian, 20); var unitOfWork = new Hospital.Repositories.UnitOfWork(); var userProfile = unitOfWork.UserRepository.GetUserProfile(HttpContext.Current.User.Identity.Name); var IsSystem = false; var IsSystem2 = false; var displayLine = false; if (isDataManager || isDeptDataManager || ViewBag.IsSuper) { displayLine = true; } if (isJiben || isJuese || isUsers || isFenpeiJuese || isGG) { IsSystem = true; } if (isJiben && isJuese && isUsers && isFenpeiJuese && isGG) { IsSystem2 = true; } }
user avatar

@ViewBag.UserRealName (@ViewBag.UserName) @ViewBag.UserDeptName