protected void ZButton1_Click(object sender, EventArgs e) { bro.DeleteByRoleID(roleid); for (int i = 0; i < rproleoperate.Items.Count; i++) { CheckBoxList cbl = rproleoperate.Items[i].FindControl("cboperate") as CheckBoxList; foreach (ListItem li in cbl.Items) { if (li.Selected) { SysRoleOperate sro = new SysRoleOperate(); sro.OperateID = int.Parse(li.Value); sro.RoleID = roleid; bro.Insert(sro); // 插入日志 SysOperateLog log = new SysOperateLog(); log.LogID = StringHelper.getKey(); log.LogType = LogType.角色信息.ToString(); log.LogObjectID = sro.RoleID.ToString(); log.LogObjectName = br.GetRoleByID(sro.RoleID).RoleName; log.OperateUser = GetLogUserName(); log.OperateDate = DateTime.Now; log.LogOperateType = "角色设置操作添加"; log.LogAfterObject = JsonHelper.Obj2Json(sro); bsol.Insert(log); } } } BUser bu = new BUser(); bu.ReSetUserRoleOperate(roleid);//没有方法 Message.ShowOKAndRedirect(this, "修改成功", "RoleManage.aspx"); }
public int Delete(SysRoleOperate m) { return(db.Delete <SysRoleOperate>(m)); }
public int Update(SysRoleOperate m) { return(db.Update <SysRoleOperate>(m)); }
public int Insert(SysRoleOperate m) { return(db.Insert <SysRoleOperate>(m)); }
public int Update(SysRoleOperate m) { return(dro.Update(m)); }
public int Insert(SysRoleOperate m) { return(dro.Insert(m)); }
public int Delete(SysRoleOperate m) { return(dro.Delete(m)); }