예제 #1
0
    public int availableSecurityInLocation(string locationName)
    {
        locationControl = new LocationControl();
        employee        = new Employee();
        employeeDB      = new EmployeeDB();
        int locationID = locationControl.getEmployeeLocationID(locationName);

        employee.setLocationID(locationID);
        employeeDB.countSecurityInLocation(employee);
        return(locationControl.getSecurityNumbers() - employee.getNumberOfEmployee());
    }