private void EidtRoleEventHandler(object sender, EditRoleEventArgs e) { List <int> functionList = bllUserLimit.GetFunctionIDList(e.RoleID); List <User_FunctionListModel> funcModelList = new List <User_FunctionListModel>(); for (int i = 0; i < functionList.Count; i++) { funcModelList.Add(bllFunctionList.GetModel(functionList[i])); } this.View.RefreshSetFuncData(funcModelList); }
private void DeleteRoleEventHandler(object sender, EditRoleEventArgs e) { bool deleteStatus = bllRole.Delete(e.RoleID); if (deleteStatus == true) { List <User_RoleModel> roleList = bllRole.GetModelList(""); List <User_FunctionListModel> functionListModel = bllFunctionList.GetModelList(""); this.View.RefreshRoleListData(roleList); this.View.RefreshSetFuncData(functionListModel); if (mainPre != null) { mainPre.View.AddLog(ECAMSModel.EnumLogCategory.管理层日志, ECAMSModel.EnumLogType.提示, "删除角色成功!!"); } } else { if (mainPre != null) { mainPre.View.AddLog(ECAMSModel.EnumLogCategory.管理层日志, ECAMSModel.EnumLogType.提示, "删除角色失败!!"); } } }