summaryrefslogtreecommitdiff
path: root/server/xml/macros/tao_konklusion-1.0.xml
blob: cc5f6a883ee77b7d2dc29a07acbc737f5644eb21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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>