//增 public string SysRoleInfoAdd(T_SYS_ROLE obj) { using (SysRoleBLL RoleBll = new SysRoleBLL()) { string returnStr = ""; if (!this.IsExistSysRoleInfoByRoleNameAndCompanyAndDepartmentid(obj.ROLENAME, obj.OWNERCOMPANYID,obj.OWNERDEPARTMENTID)) { bool sucess = RoleBll.AddSysRoleInfo(obj); if (sucess == false) { returnStr = "添加系统角色失败"; } } else { returnStr = "系统角色已经存在"; } return returnStr; } }