1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/Comments.bbs
4 # ----------------------------------
7 # ----------------------
16 description "Description ??"
19 new std:ConcatStrings Box15
21 new std:ConcatStrings Box07
22 set Box07.In2 "/Comment-Informatic.txt"
24 new wx:LayoutTab Box31
25 set Box31.WinHeight "500"
26 set Box31.WinTitle "Comments.bbs"
28 new wx:LayoutLine Box32
30 new wx:InputText Box33
31 set Box33.Title "Informatic Comment"
33 new wx:CommandButton Box34
34 set Box34.Label "Save and Exit"
36 new std:ReadLinesString Box11
38 new std:ReplaceString Box18
42 new std:StringWriter Box20
46 new wx:LayoutCenter Box25
48 new wx:LayoutLine Box26
50 new std:ConcatStrings Box27
51 set Box27.In1 "Patient:"
52 set Box27.In2 "/results/"
54 new std:ConcatStrings Box17
55 set Box17.In1 "/<CORE>/davila/00300_Filter/Test_01/<PATIENT>/Condition_01"
57 new std:ConcatStrings Box19
59 new std:ConcatStrings Box22
61 new std:ReplaceCleanString Box23
62 set Box23.Search "<CORE>"
64 new std:ReplaceCleanString Box28
65 set Box28.Search "<PATIENT>"
67 new std:ConcatStrings Box29
68 set Box29.In2 "/Comment-Scientific.txt"
70 new wx:InputText Box30
71 set Box30.Title "Scientific Comment"
73 new std:ReadLinesString Box35
75 new std:ReplaceString Box36
79 new std:StringWriter Box37
81 new std:ConcatStrings Box38
82 set Box38.In2 "/Comment-General.txt"
84 new wx:InputText Box39
85 set Box39.Title "General Comment"
87 new std:ReadLinesString Box40
89 new std:ReplaceString Box41
93 new std:StringWriter Box42
95 new creaMiniTools:WriteStatePatientSystem Box43
96 set Box43.State "Finish"
98 new std:ConcatStrings Box44
100 new std:ConcatStrings Box45
101 set Box45.In2 "/Step_Comment.txt"
103 new std:MultipleInputs Box46
106 connect Box32.Widget Box31.Widget1
108 connect Box11.Out Box33.In
110 connect Box07.Out Box18.In
112 connect Box18.Out Box11.FileName
114 connect Box18.Out Box20.FileName
116 connect Box33.Out Box20.In0
118 connect Box34.Widget Box26.Widget1
120 connect Box26.Widget Box25.Widget2
123 connect Box15.Out Box27.In1
125 connect Box27.Out Box32.WinTitle
129 connect Box17.Out Box23.In
131 connect Box22.Out Box23.Replace
133 connect Box23.Out Box28.In
135 connect Box27.Out Box07.In1
137 connect Box19.Out Box28.Replace
139 connect Box28.Out Box27.In3
141 connect Box35.Out Box30.In
143 connect Box29.Out Box36.In
145 connect Box36.Out Box35.FileName
147 connect Box36.Out Box37.FileName
149 connect Box30.Out Box37.In0
151 connect Box40.Out Box39.In
153 connect Box38.Out Box41.In
155 connect Box41.Out Box40.FileName
157 connect Box41.Out Box42.FileName
159 connect Box39.Out Box42.In0
161 connect Box27.Out Box29.In1
163 connect Box27.Out Box38.In1
165 connect Box25.Widget Box32.Widget8
167 connect Box39.Widget Box32.Widget2
169 connect Box30.Widget Box32.Widget4
171 connect Box33.Widget Box32.Widget6
174 connect Box44.Out Box43.User
176 connect Box27.Out Box45.In1
178 connect Box45.Out Box43.Filename
180 connect Box42.BoxChange Box46.In1
182 connect Box37.BoxChange Box46.In2
184 connect Box20.BoxChange Box46.In3
186 connect Box43.boxChange Box46.In4
188 connect Box34.BoxChange Box46.BoxExecute
190 connect Box21.BoxChange Box46.In9
194 # Complex input ports
195 input BaseDir Box15.In1 " "
196 input PatientID Box19.In1 " "
197 input CoreID Box22.In1 " "
198 input creaUser Box44.In1 " "