summaryrefslogtreecommitdiff
path: root/server/xml/macros/tao_konklusion-1.0.xml
diff options
context:
space:
mode:
authorsenator <senator>2010-05-27 16:20:21 +0000
committersenator <senator>2010-05-27 16:20:21 +0000
commit278fe609932e683ffc39786d1e9648cedd2295aa (patch)
tree3759c33b948b6deedebe08f47b927ebfdb6930de /server/xml/macros/tao_konklusion-1.0.xml
parenta6f946ebe2150d3eba14a6daeb1dc0c0e986b0bc (diff)
initial release
Diffstat (limited to 'server/xml/macros/tao_konklusion-1.0.xml')
-rw-r--r--server/xml/macros/tao_konklusion-1.0.xml84
1 files changed, 84 insertions, 0 deletions
diff --git a/server/xml/macros/tao_konklusion-1.0.xml b/server/xml/macros/tao_konklusion-1.0.xml
new file mode 100644
index 0000000..cc5f6a8
--- /dev/null
+++ b/server/xml/macros/tao_konklusion-1.0.xml
@@ -0,0 +1,84 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="tao_konklusion" version="1.0">
+ <resume language="lua">
+ out = ''
+
+ out = out .. 'TAO konklusion:\n'
+
+ if( getValue('tao_konklusion.kommentarer') ~= '' )
+ then
+ out = out .. getValue('tao_konklusion.kommentarer')
+ out = out .. '\n'
+ end
+
+ out = out .. 'Ny kontrol om ' .. getValue('tao_konklusion.kontrol')
+ if( getValue('tao_konklusion.kontrol') == '½' or getValue('tao_konklusion.kontrol') == '1' or getValue('tao_konklusion.kontrol') == '1½' or getValue('tao_konklusion.kontrol') == '2½' or getValue('tao_konklusion.kontrol') == '3½' or getValue('tao_konklusion.kontrol') == '4½' or getValue('tao_konklusion.kontrol') == '5½' or getValue('tao_konklusion.kontrol') == '6½' or getValue('tao_konklusion.kontrol') == '7½' or getValue('tao_konklusion.kontrol') == '8½' or getValue('tao_konklusion.kontrol') == '9½' or getValue('tao_konklusion.kontrol') == '10½' or getValue('tao_konklusion.kontrol') == '11½' )
+ then
+ out = out .. ' måned.\n'
+ else
+ out = out .. ' måneder.\n'
+ end
+
+ out = out .. 'Medicinordination: ' .. getValue('tao_konklusion.ordination') .. '\n'
+
+ return out
+ </resume>
+ <queries>
+ </queries>
+ <maps>
+ </maps>
+ <scripts>
+ </scripts>
+ <widgets caption="TAO konklusion" layout="vbox">
+
+ <frame layout="vbox">
+ <label caption="Kommentarer:"/>
+ <textedit name="tao_konklusion.kommentarer"/>
+ <frame layout="hbox">
+ <label caption="Ny kontrol om"/>
+ <combobox name="tao_konklusion.kontrol" value="">
+ <item caption="½" value="½"/>
+ <item caption="1" value="1"/>
+ <item caption="1½" value="1½"/>
+ <item caption="2" value="2"/>
+ <item caption="2½" value="2½"/>
+ <item caption="3" value="3"/>
+ <item caption="3½" value="3½"/>
+ <item caption="4" value="4"/>
+ <item caption="4½" value="4½"/>
+ <item caption="5" value="5"/>
+ <item caption="5½" value="5½"/>
+ <item caption="6" value="6"/>
+ <item caption="6½" value="6½"/>
+ <item caption="7" value="7"/>
+ <item caption="7½" value="7½"/>
+ <item caption="8" value="8"/>
+ <item caption="8½" value="8½"/>
+ <item caption="9" value="9"/>
+ <item caption="9½" value="9½"/>
+ <item caption="10" value="10"/>
+ <item caption="10½" value="10½"/>
+ <item caption="11" value="11"/>
+ <item caption="11½" value="11½"/>
+ <item caption="12" value="12"/>
+ </combobox>
+ <label caption="måned(er)"/>
+ <spacer/>
+ </frame>
+ <frame layout="hbox">
+ <label caption="Medicinordination:"/>
+ <combobox name="tao_konklusion.ordination" value="Viskøse øjendråber p.n.">
+ <item caption="Ingen" value="Ingen"/>
+ <item caption="Viskøse øjendråber p.n." value="Viskøse øjendråber p.n."/>
+ </combobox>
+ <spacer/>
+ </frame>
+ </frame>
+
+ <!-- Knapper -->
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </widgets>
+</macro>