public bool RemoveDepartment(Department department) //删除部门 { bool judge = false; Department temp = dDAO.SelectDepartment(department.DepartmentNumber); if (temp.DepartmentNumber == String.Empty) //如果数据库中没有该部门 { judge = false; } else //数据库内存在该部门 { dDAO.RemoveDepartment(department); judge = true; } return(judge); }