public string EditModule(SysRoleModel model) { var a = moduleBLL.Edit(model); var jsondata = js.Serialize(new { flag = a }); return(jsondata); }
/// <summary> /// 修改 /// </summary> private void updateRole() { try { SysRole role = new SysRole(); role.R_Code = R_Code.Text; role.R_Name = R_Name.Text; role.R_Remark = R_Remark.Text; role.R_CreateBy = R_CreateBy.Text; role.R_CreateDate = R_CreateDate.Value; role.R_UpdateBy = R_UpdateBy.Text; role.R_UpdateDate = R_UpdateDate.Value; SysRoleBLL rolebll = new SysRoleBLL(); if (rolebll.Edit(role) > 0) { untCommon.InfoMsg("修改成功!"); frmParent.loadData(); } else { untCommon.InfoMsg("修改失败!"); } } catch (Exception ex) { untCommon.ErrorMsg("角色管理更新数据异常:" + ex); } }