123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- @model Hospital.ViewModels.OverviewViewModel
- @{
- ViewBag.Title = "欢迎使用";
- var userQuanxian = ViewBag.UserPermissionsIDSet as HashSet<int>;
- 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;
- }
- }
- <div class="md-card box-shadow-none">
- <div class="user_heading">
- <div class="user_heading_avatar">
- <div class="thumbnail border-none">
- <img src="~/assets/img/logo.jpg" alt="user avatar">
- </div>
- </div>
- <div class="user_heading_content">
- <h2 class="heading_b uk-margin-bottom">
- <span class="uk-text-truncate">@ViewBag.UserRealName (@ViewBag.UserName) </span>
- <span class="sub-heading">@ViewBag.UserDeptName</span>
- </h2>
- </div>
- </div>
- <div class="md-card-content padding-top-10 padding-bottom-10">
- <ul class="md-list">
- <li class="padding-top-15">
- <a class="weui-cell_access" href="@Url.Action("Index", "InterAnnounce", new{ area="WxApp" ,returnUrl = Request.RawUrl})">
- <div class="md-list-content">
- <span class="md-list-heading text-color-initial"><i class="fa fa-x fa-bullhorn"></i> 内部公告 </span>
- @{
- var count = Hospital.Controllers.InterAnnounceController.GetInterAnnounceNotRead(userProfile.PID);
- }
- @if (count != "0")
- {
- <span class="float-right uk-badge uk-badge-primary md-color-white">
- @count
- </span>
- }
- </div>
- </a>
- </li>
- @if (isTianbao && !string.IsNullOrEmpty(userProfile.CID))
- {
- <li class="padding-top-15">
- <a class="weui-cell_access" href="@Url.Action("List", "Report", new { area="WxApp", @show = "Own" ,returnUrl = Request.RawUrl})">
- <div class="md-list-content">
- <span class="md-list-heading text-color-initial"><i class="fa fa-list-alt"></i> 查阅已填报数据 </span>
- </div>
- </a>
- </li>
- }
- @if (isDataManager || isDeptDataManager || ViewBag.IsSuper)
- {
- <li class="padding-top-15">
- <a class="weui-cell_access" href="@Url.Action("List", "Report", new { area="WxApp",returnUrl = Request.RawUrl})">
- <div class="md-list-content">
- <span class="md-list-heading text-color-initial"><i class="fa fa-list-alt"></i> 管理数据 </span>
- </div>
- </a>
- </li>
- }
- </ul>
- </div>
- </div>
- <script>
- //将头部去掉,因为在这个页面无法返回
- document.getElementById("header_main").style.display = "none";
- </script>
|