/// <summary> /// 管理员查看申请权限记录以及进行审核 /// </summary> /// <returns></returns> public ActionResult Manager() { var groups = ADController.GetGroupList(); ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); ViewBag.DGroups = ADController.GetUserDict(groups); return(View()); }
public ActionResult Manager(int ID, string Reason, int?Day, bool?Check, CheckStatus status = CheckStatus.Wait) { Core.DataBookManager.Check(ID, Reason, Identity.Name, Day, Check, status); var groups = ADController.GetGroupList(); ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); ViewBag.DGroups = ADController.GetUserDict(groups); return(View()); }
public ActionResult Manager(int ID, string Reason, int?Day, bool?Check, CheckStatus status = CheckStatus.Wait) { Core.DataBookManager.Check(ID, Reason, sAMAccountName, Day, Check, status); Core.MessageManager.Add(Core.DataBookManager.Get(ID), ADController.GetNameBysAMAccountName(sAMAccountName)); var groups = ADController.GetGroupList(); ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); ViewBag.DGroups = ADController.GetUserDict(groups); return(View()); }
public ActionResult Manager() { //获取我管理的组 var groups = Core.AuthorizeManager.GetList(Identity.Name); //获取当前管理组的权限审核列表 ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); ViewBag.DGroups = ADController.GetUserDict(groups); return(View()); }
public ActionResult Manager(int ID, string Reason, int?Day, bool?Check, CheckStatus status = CheckStatus.Wait) { var book = Core.DataBookManager.Check(ID, Reason, Identity.Name, Day, Check, status); Core.MessageManager.Add(new Message { Sender = Identity.Name, Info = string.Format("申请{0}的权限已经确认!", book.GroupName), Receiver = book.Name }); var groups = ADController.GetGroupList(); ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); if (Identity.GroupType == GroupType.Manager) { ViewBag.DGroups = ADController.GetUserDict(groups); } return(View()); }
public ActionResult MyManager() { List <FastGroupUserView> fasts = Session["Fasts"] as List <FastGroupUserView>; Session["Fasts"] = null; Session.Remove("Fasts"); fasts = Core.AuthorizeManager.RichFGUV(fasts); ViewBag.Fasts = fasts; var groups = fasts.Select(e => e.Name).ToList(); if (groups != null) { if (Identity.GroupType == GroupType.Manager || Identity.GroupType == GroupType.Administrator) { ViewBag.DGroups = ADController.GetUserDict(groups); } } return(View()); }
public ActionResult Manager() { List <string> groups; //获取我管理的组 if (ADController.IsManager(LUser)) { groups = ADController.GetGroupList(); } else { groups = Core.AuthorizeManager.GetList(ADController.GetNameBysAMAccountName(sAMAccountName)); } //获取当前管理组的权限审核列表 ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); ViewBag.DGroups = ADController.GetUserDict(groups); return(View()); }
public ActionResult Manager(int ID, string Reason, int?Day, bool?Check, CheckStatus status = CheckStatus.Wait) { Core.DataBookManager.Check(ID, Reason, sAMAccountName, Day, Check, status); Core.MessageManager.Add(Core.DataBookManager.Get(ID), ADController.GetNameBysAMAccountName(sAMAccountName)); //待审批列表 List <string> groups; if (ADController.IsManager(LUser)) { groups = ADController.GetGroupList(); } else { groups = Core.AuthorizeManager.GetList(ADController.GetNameBysAMAccountName(sAMAccountName)); } ViewBag.Wait = Core.DataBookManager.Get(groups, CheckStatus.Wait); ViewBag.DGroups = ADController.GetUserDict(groups); return(View()); }
public ActionResult UserList(bool?IsActive = null, string key = null) { ViewBag.Users = ADController.GetUserDict(IsActive, key); ViewBag.Organization = ADController.GetOrganizations(System.Configuration.ConfigurationManager.AppSettings["PEOPLE"]); return(View()); }