import at.clockwork.calculation.CalculationData import at.clockwork.calculation.data.* import at.clockwork.calculation.GeneralCalculationData import at.clockwork.time.service.DateTimeService import at.clockwork.calculation.RestartCalculationException class Calc99967Service { static transactional = false def run(CalculationData calculationData, GeneralCalculationData generalCalculationData, boolean saving, Map parameters) throws RestartCalculationException { if ( _getDV( "32" ) == 7*60 ) _setDVE( "32", 8*60 ) if ( _getDV( "33" ) == 7*60 ) _setDVE( "33", 8*60 ) if ( _getDV( "40" ) == 7*60 ) _setDVE( "40", 8*60 ) if ( _getDV( "41" ) == 7*60 ) _setDVE( "41", 8*60 ) if ( _getDV( "2" ) < 7*60 ) return if ( _cd.isPublicHoliday() ) _setDVE( [ "22", "2" ], 8*60 ) if ( _cd.isPublicHoliday() && _getDV( "5" ) > 0 ) _addDV( "1", -1*60 ) return } } /* ::1:: IF ZA_32 = ZT_7:00 FUNC ZT_8:00 DO =_ZA_32 ; ::2:: IF ZA_33 = ZT_7:00 FUNC ZT_8:00 DO =_ZA_33 ; ::3:: IF ZA_40 = ZT_7:00 FUNC ZT_8:00 DO =_ZA_40 ; ::4:: IF ZA_41 = ZT_7:00 FUNC ZT_8:00 DO =_ZA_41 ; ::5:: IF ZA_2 < ZT_7:00 FUNC RETURN_ DO ; ::6:: IF VAR_FEIERTAG > NW_0 FUNC ZT_8:00 DO =_ZA_22 =_ZA_2 ; ::7:: // Änderung am 9.5.2008 / Fr. Senftlechner IF VAR_FEIERTAG > NW_0 UND ZA_5 > NW_0 FUNC ZT_1:00 DO -_ZA_1 ; ::8:: IF FUNC RETURN_ DO ; */