private void processCalendarHours ( ProjectCalendar calendar , Row row , int dayIndex ) { Day day = Day . getInstance ( dayIndex ) ; boolean working = row . getInt ( "CD_WORKING" ) != 0 ; calendar . setWorkingDay ( day , working ) ; if ( working == true ) { ProjectCalendarHours hours = calendar . addCalendarHours ( day ) ; Date start = row . getDate ( "CD_FROM_TIME1" ) ; Date end = row . getDate ( "CD_TO_TIME1" ) ; if ( start != null && end != null ) { hours . addRange ( new DateRange ( start , end ) ) ; } start = row . getDate ( "CD_FROM_TIME2" ) ; end = row . getDate ( "CD_TO_TIME2" ) ; if ( start != null && end != null ) { hours . addRange ( new DateRange ( start , end ) ) ; } start = row . getDate ( "CD_FROM_TIME3" ) ; end = row . getDate ( "CD_TO_TIME3" ) ; if ( start != null && end != null ) { hours . addRange ( new DateRange ( start , end ) ) ; } start = row . getDate ( "CD_FROM_TIME4" ) ; end = row . getDate ( "CD_TO_TIME4" ) ; if ( start != null && end != null ) { hours . addRange ( new DateRange ( start , end ) ) ; } start = row . getDate ( "CD_FROM_TIME5" ) ; end = row . getDate ( "CD_TO_TIME5" ) ; if ( start != null && end != null ) { hours . addRange ( new DateRange ( start , end ) ) ; } } }
Process calendar hours .