コード例 #1
0
    public int availableManagerInLocation(string locationName)
    {
        locationControl = new LocationControl();
        employee        = new Employee();
        employeeDB      = new EmployeeDB();
        int locationID = locationControl.getEmployeeLocationID(locationName);

        employee.setLocationID(locationID);
        employeeDB.countManagerInLocation(employee);
        return(locationControl.getManagerNumbers() - employee.getNumberOfEmployee());
    }