From 22a4790b39ef0328eed1b4844833b11d9f8aaa30 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 7 Dec 2009 10:19:39 +0000 Subject: split boelgefront into odxt and osin --- server/xml/macros/boelgefront-1.0.xml | 153 +++++++++++++++++++++++++++------- 1 file changed, 124 insertions(+), 29 deletions(-) diff --git a/server/xml/macros/boelgefront-1.0.xml b/server/xml/macros/boelgefront-1.0.xml index 7628f41..32a75d4 100644 --- a/server/xml/macros/boelgefront-1.0.xml +++ b/server/xml/macros/boelgefront-1.0.xml @@ -2,11 +2,33 @@ out = '' - out = out .. 'Bølgefront: ' .. getValue('boelgefront') .. '\n' - if ( getValue('boelgefront') == 'Udført' ) + if ( getValue('boelgefront.mangler.odxt') == '' or getValue('boelgefront.mangler.osin') == '' ) then - out = out .. 'Aberration: ' .. getValue('boelgefront.aberration') .. ' my\n' - out = out .. 'Pupilstørrelse: ' .. getValue('boelgefront.pupilstoerrelse') .. ' mm\n' + + if ( getValue('boelgefront.mangler.odxt') == '' ) + then + out = out .. 'Bølgefront o.dxt: ' .. getValue('boelgefront.odxt') .. '\n' + if ( getValue('boelgefront.odxt') == 'Udført' ) + then + out = out .. 'Aberration: ' .. getValue('boelgefront.aberration.odxt') .. ' my HOA\n' + out = out .. 'Pupilstørrelse: ' .. getValue('boelgefront.pupilstoerrelse.odxt') .. ' mm\n' + end + if ( getValue('boelgefront.mangler.osin') == '' ) + then + out = out .. '\n' + end + end + + if ( getValue('boelgefront.mangler.osin') == '' ) + then + out = out .. 'Bølgefront o.sin: ' .. getValue('boelgefront.osin') .. '\n' + if ( getValue('boelgefront.osin') == 'Udført' ) + then + out = out .. 'Aberration: ' .. getValue('boelgefront.aberration.osin') .. ' my HOA\n' + out = out .. 'Pupilstørrelse: ' .. getValue('boelgefront.pupilstoerrelse.osin') .. ' mm\n' + end + end + end return out @@ -15,12 +37,21 @@ - + @@ -52,39 +83,103 @@ return false end + + + - - - - - - - - - + -