1 package entlassBerichte
;
5 import hauptFenster
.Reha
;
7 import java
.awt
.BorderLayout
;
10 import java
.awt
.Rectangle
;
11 import java
.awt
.Window
;
12 import java
.awt
.event
.ActionEvent
;
13 import java
.awt
.event
.ActionListener
;
14 import java
.awt
.event
.ComponentEvent
;
15 import java
.awt
.event
.ComponentListener
;
16 import java
.sql
.ResultSet
;
17 import java
.sql
.SQLException
;
18 import java
.sql
.Statement
;
19 import java
.util
.StringTokenizer
;
20 import java
.util
.Vector
;
22 import javax
.swing
.BorderFactory
;
23 import javax
.swing
.JComponent
;
24 import javax
.swing
.JLabel
;
25 import javax
.swing
.JOptionPane
;
26 import javax
.swing
.JPanel
;
27 import javax
.swing
.JScrollPane
;
28 import javax
.swing
.JTextArea
;
29 import javax
.swing
.JViewport
;
30 import javax
.swing
.SwingUtilities
;
31 import javax
.swing
.text
.AbstractDocument
;
32 import javax
.swing
.text
.AttributeSet
;
33 import javax
.swing
.text
.BadLocationException
;
34 import javax
.swing
.text
.Document
;
35 import javax
.swing
.text
.DocumentFilter
;
37 import org
.jdesktop
.swingworker
.SwingWorker
;
38 import org
.jdesktop
.swingx
.JXPanel
;
40 import CommonTools
.SqlInfo
;
41 import systemEinstellungen
.SystemConfig
;
42 import CommonTools
.JCompTools
;
43 import CommonTools
.JRtaCheckBox
;
44 import CommonTools
.JRtaComboBox
;
45 import CommonTools
.JRtaTextField
;
46 import CommonTools
.StringTools
;
47 import terminKalender
.DatFunk
;
49 import com
.jgoodies
.forms
.builder
.PanelBuilder
;
50 import com
.jgoodies
.forms
.layout
.CellConstraints
;
51 import com
.jgoodies
.forms
.layout
.FormLayout
;
53 public class Eb1_2015
implements ActionListener
,ComponentListener
{
55 EBerichtPanel eltern
= null;
56 Font fontgross
= null;
57 Font fontklein
= null;
58 Font fontnormal
= null;
59 Font fontcourier
= null;
60 Font fontcourier2
= null;
61 Font fontarialfett
= null;
62 Font fontarialnormal
= null;
63 String
[] seite
= {"","R","L","B"};
64 String
[] sicher
= {"","A","V","Z","G"};
65 String
[] erfolg
= {"","0","1","2","3"};
66 String
[] ursache
= {"","0","1","2","3","4","5"};
67 String
[] vorherau
= {"","0","1","2","3","9"};
68 String
[] dmp
= {"","0","1","2","3","4","5","6","7"};
70 JLabel
[][] labstitel
= { {null,null},{null,null},
72 {null,null},{null,null,null},
77 {null,null},{null,null,null},
80 JLabel
[] labsheadline
= {null,null,null};
81 String
[] headlineneu
= {"Weiterbehandelnde Ärzte / Psychologen",
82 "Patienten","Rentenversicherung"};
84 String
[] headlinealt
= {"",
87 public String
[][] stitelalt
= {{"Diagn.","Klärung"},{"Stat.","Behandl."},
88 {"Selbsthilfegruppe"},{"Amb.Reha Sucht"},
89 {"Gewichts-","reduktion"},{"Alkohol-", "karenz",""},
90 {"Operation",""},{"Psychotherapie"},
91 {"Vorstell. Suchtberatung"},{"spezielle Nachsorge"},
92 {"Nikotinkarenz"},{"Heil- und Hilfsmittel"},
93 {"Rehabilitationssport"},{"Funktionstraining"},
94 {"stufenweise","Wiedereingliederung"},{"Bf. Leistung","prüfen",""},
95 {"sonstige","Anregung"}
97 public String
[][] stitelneu
= {{"Diagnostische","Klärung"},{"Kontrolle Laborwerte/","Medikamente"},
98 {"Stat.Behandlung / OP"},{"Suchtberatung"},
99 {"Psychol. Beratung /","Psychotherapie"},{"Heil- und Hilfsmittel","inkl. Physiotherapie","und Ergotherapie"},
100 {"Sonstige","Empfehlung"},{"Sport und Bewegung"},
101 {"Gewichtsreduktion",""},{"Nikotinkarenz"},
102 {"Alkoholkarenz",""},{"Selbsthilfe-","gruppe"},
103 {"Rehabilitationssport"},{"Funktionstraining"},
104 {"stufenweise","Wiedereingliederung"},{"Leistungen zur","Teilhabe am","Arbeitsleben prüfen"},
105 {"Reha-Nachsorge (z.B.","IRENA oder ASP"}
108 JScrollPane jscr
= null;
109 boolean inGuiInit
= true;
110 public Eb1_2015(EBerichtPanel xeltern
){
111 pan
= new JXPanel(new BorderLayout());
112 pan
.setOpaque(false);
113 pan
.addComponentListener(this);
114 pan
.setBorder(BorderFactory
.createEmptyBorder(10, 0, 0, 0));
116 fontgross
=new Font("Arial",Font
.BOLD
,14);
117 fontklein
=new Font("Arial",Font
.PLAIN
,9);
118 fontnormal
=new Font("Arial",Font
.PLAIN
,10);
119 fontarialfett
=new Font("Arial",Font
.BOLD
,12);
120 fontarialnormal
=new Font("Arial",Font
.PLAIN
,12);
121 fontcourier
=new Font("Courier New",Font
.PLAIN
,12);
122 fontcourier2
=new Font("Courier New",Font
.PLAIN
,14);
123 //pan.add(getTitel());
124 //JPanel cs = constructSeite();
126 new SwingWorker
<Void
,Void
>(){
129 protected Void
doInBackground() throws Exception
{
131 pan
.add(constructSeite(),BorderLayout
.CENTER
);
132 for(int i
= 0; i
< 25;i
++){
133 eltern
.btf
[i
].setFont(fontcourier
);
134 eltern
.btf
[i
].setForeground(Color
.BLUE
);
136 AbstractDocument doc
= null;
138 for(int i
= 0; i
< 7;i
++){
140 eltern
.bta
[i
].setRows(3);
141 eltern
.bta
[i
].setColumns(40);
142 doc
= (AbstractDocument
)eltern
.bta
[i
].getDocument();
143 doc
.setDocumentFilter(new DocumentLineLengthFilter(40,i
));
144 //((DiagDoc)eltern.bta[i].getDocument()).setArea(eltern.bta[i]);
148 eltern
.bta
[i
].setFont(fontcourier
);
149 eltern
.bta
[i
].setForeground(Color
.BLUE
);
150 eltern
.bta
[i
].setLineWrap(true);
151 eltern
.bta
[i
].setWrapStyleWord(true);
154 eltern
.bta
[i
].setBorder(BorderFactory
.createLineBorder(Color
.BLACK
));
156 /******die neue Diagnose gesonder behandeln*******/
157 eltern
.bta
[10].setRows(3);
158 eltern
.bta
[10].setColumns(70);
159 doc
= (AbstractDocument
)eltern
.bta
[10].getDocument();
160 doc
.setDocumentFilter(new DocumentLineLengthFilter(70,10));
162 eltern
.bta
[10].setFont(fontcourier
);
163 eltern
.bta
[10].setForeground(Color
.BLUE
);
164 eltern
.bta
[10].setLineWrap(true);
165 eltern
.bta
[10].setWrapStyleWord(true);
166 eltern
.bta
[10].setBorder(BorderFactory
.createLineBorder(Color
.BLACK
));
169 pan
.setVisible(true);
171 }catch(Exception ex
){
172 ex
.printStackTrace();
174 SwingUtilities
.invokeLater(new Runnable(){
177 new SwingWorker
<Void
,Void
>(){
179 protected Void
doInBackground()
183 eltern
.btf
[0].requestFocusInWindow();
184 jscr
.scrollRectToVisible(new Rectangle(0,0,0,0));
187 eltern
.meldeInitOk(0);
190 }catch(Exception ex
){
191 ex
.printStackTrace();
197 }else if(eltern
.uebernahmeid
>= 0){
198 ladeDatenAusVorbericht(eltern
.uebernahmeid
);
199 eltern
.meldeInitOk(0);
201 SwingUtilities
.invokeLater(new Runnable(){
203 jscr
.scrollRectToVisible(new Rectangle(0,0,0,0));
206 JOptionPane
.showMessageDialog(null,"Bitte stellen Sie als erstes den Empfäger des Gutachtens ein (Berichttyp).");
208 eltern
.meldeInitOk(0);
209 JOptionPane
.showMessageDialog(null,"Bitte stellen Sie als erstes den Empfäger des Gutachtens ein (Berichttyp).");
221 public JXPanel
getSeite(){
224 private void doKopfNeu(){
225 eltern
.btf
[2].setText(StringTools
.EGross(Reha
.thisClass
.patpanel
.patDaten
.get(2))+
226 ", "+StringTools
.EGross(Reha
.thisClass
.patpanel
.patDaten
.get(3)));
227 eltern
.btf
[3].setText(DatFunk
.sDatInDeutsch(Reha
.thisClass
.patpanel
.patDaten
.get(4)));
228 eltern
.btf
[4].setText(StringTools
.EGross(Reha
.thisClass
.patpanel
.patDaten
.get(21)));
229 eltern
.btf
[5].setText(StringTools
.EGross(Reha
.thisClass
.patpanel
.patDaten
.get(23)));
230 eltern
.btf
[6].setText(StringTools
.EGross(Reha
.thisClass
.patpanel
.patDaten
.get(24)));
233 private void laden(){
235 //"bericht2","freitext","berichtid='"+eltern.berichtid+"'");
236 String berichtid
= Integer
.toString(eltern
.berichtid
);
237 StringBuffer buf
= new StringBuffer();
238 buf
.append("select ");
239 for(int i
= 0; i
< 25;i
++){
240 buf
.append(eltern
.btf
[i
].getName()+",");
242 buf
.append(eltern
.btf
[27].getName()+",");
244 for(int i
= 0; i
< 22;i
++){
245 //System.out.println((eltern.bcmb[i]!=null ? Integer.toString(i)+" = nicht null" : Integer.toString(i)+" = null!!!!!") );
246 buf
.append(eltern
.bcmb
[i
].getName()+",");
248 for(int i
= 0; i
< 17;i
++){
249 buf
.append(eltern
.bchb
[i
].getName()+",");
251 for(int i
= 0; i
< 7;i
++){
252 buf
.append(eltern
.bta
[i
].getName()+",");
254 buf
.append(eltern
.bta
[10].getName()+",");
255 buf
.append("ARZT1,ARZT2,ARZT3,");
256 buf
.append("UNTDAT from bericht2 where berichtid='"+berichtid
+"'");
257 ////System.out.println(buf.toString());
260 }catch(Exception ex
){
261 ex
.printStackTrace();
265 private void ladeDatenAusVorbericht(int vorbericht
){
266 String cmd
= "select vnummer,aigr,namevor,geboren,strasse,plz,ort,msnr,"+
267 "diag1,diag2,diag3,diag4,diag5,"+
268 "F_74,F_79,F_80,F_81,F_82,F_87,F_88,F_89,F_90,F_95,F_96,F_97,F_98,F_103,F_104,F_105,"+
269 "F_106,F_111,F_112,F_113,diag6 from bericht2 where berichtid='"+Integer
.toString(vorbericht
)+"' LIMIT 1";
270 Vector
<Vector
<String
>> vec
= SqlInfo
.holeFelder(cmd
);
271 //System.out.println(vec);
274 for(int i
= 0; i
< 7;i
++){
275 if(eltern
.btf
[i
].getRtaType().equals("DATUM")){
276 if(vec
.get(0).get(i
).length()==10){
277 eltern
.btf
[i
].setText( DatFunk
.sDatInDeutsch(vec
.get(0).get(i
)) );
280 eltern
.btf
[i
].setText(vec
.get(0).get(i
));
283 eltern
.btf
[8].setText(vec
.get(0).get(7));
284 for(int i
= 0; i
< 5;i
++){
285 eltern
.bta
[i
].setText(vec
.get(0).get(i
+8));
287 eltern
.bta
[10].setText(vec
.get(0).get(vec
.get(0).size()-1));
288 for(int i
= 0; i
< 5;i
++){
289 eltern
.btf
[i
+17].setText(vec
.get(0).get(i
+13+(i
*3)));
291 for(int i
= 0; i
< 5;i
++){
292 eltern
.bcmb
[2+(i
*3)].setSelectedItem(vec
.get(0).get(i
+14+(i
*3)));
294 for(int i
= 0; i
< 5;i
++){
295 eltern
.bcmb
[3+(i
*3)].setSelectedItem(vec
.get(0).get(i
+15+(i
*3)));
297 for(int i
= 0; i
< 5;i
++){
298 eltern
.bcmb
[4+(i
*3)].setSelectedItem(vec
.get(0).get(i
+16+(i
*3)));
301 }catch(Exception ex
){
302 ex
.printStackTrace();
308 private void holeSatz(StringBuffer buf
){
309 Statement stmt
= null;
312 stmt
= Reha
.thisClass
.conn
.createStatement(ResultSet
.TYPE_SCROLL_SENSITIVE
,
313 ResultSet
.CONCUR_UPDATABLE
);
314 } catch (SQLException e
) {
318 rs
= stmt
.executeQuery(buf
.toString());
321 for(int i
= 0; i
< 7;i
++){
322 eltern
.bta
[i
].setText( (rs
.getString(eltern
.bta
[i
].getName())==null ?
"" : rs
.getString(eltern
.bta
[i
].getName())) ) ;
324 if(eltern
.bta
[i
].getText().length() > 120){
325 String diagnr
= Integer
.toString(i
+1);
326 String diaglength
= Integer
.toString(eltern
.bta
[i
].getText().length());
327 JOptionPane
.showMessageDialog(null,
328 "Die Länge der Diagnose Nr. "+diagnr
+" beträgt "+diaglength
+" Zeichen.\nErlaubt sind (max.) 120 Zeichen!!!" );
334 eltern
.bta
[10].setText( (rs
.getString(eltern
.bta
[10].getName())==null ?
"" : rs
.getString(eltern
.bta
[10].getName())) ) ;
335 for(int i
= 0; i
< 25;i
++){
336 if("AUFDAT3ENTDAT3UNTDATGEBOREN".contains(eltern
.btf
[i
].getName())){
337 eltern
.btf
[i
].setText( (rs
.getString(eltern
.btf
[i
].getName())==null ?
" . . " : DatFunk
.sDatInDeutsch(rs
.getString(eltern
.btf
[i
].getName())) ) );
339 eltern
.btf
[i
].setText( (rs
.getString(eltern
.btf
[i
].getName())==null ?
"" : rs
.getString(eltern
.btf
[i
].getName())) );
342 for(int i
= 0; i
< 17;i
++){
343 test
= ( rs
.getString(eltern
.bchb
[i
].getName())==null ?
"0" : rs
.getString(eltern
.bchb
[i
].getName()));
344 //eltern.bchb[i].setSelected( ( rs.getString(eltern.bchb[i].getName()).equals("1") ? true : false) );
345 eltern
.bchb
[i
].setSelected( test
.equals("1") ?
true : false );
347 for(int i
= 0; i
< 22;i
++){
348 eltern
.bcmb
[i
].setSelectedItem( (rs
.getString(eltern
.bcmb
[i
].getName())==null ?
"" : rs
.getString(eltern
.bcmb
[i
].getName())) );
351 String xname
= "UNTDAT";
352 String inhalt
= (rs
.getString(xname
)==null ?
"" : rs
.getString((xname
)));
353 if(!inhalt
.trim().equals("")){
354 eltern
.btf
[27].setText(DatFunk
.sDatInDeutsch(inhalt
));
357 inhalt
= (rs
.getString(xname
)==null ?
"" : rs
.getString((xname
)));
358 eltern
.barzttf
[0].setText(inhalt
);
360 inhalt
= (rs
.getString(xname
)==null ?
"" : rs
.getString((xname
)));
361 eltern
.barzttf
[1].setText(inhalt
);
363 inhalt
= (rs
.getString(xname
)==null ?
"" : rs
.getString((xname
)));
364 eltern
.barzttf
[2].setText(inhalt
);
365 if(eltern
.berichttyp
.equals("LVA-Arztbericht")){
366 eltern
.cbktraeger
.setSelectedIndex(1);
367 }else if(eltern
.berichttyp
.equals("BfA-Arztbericht")){
368 eltern
.cbktraeger
.setSelectedIndex(0);
370 eltern
.cbktraeger
.setSelectedItem(eltern
.empfaenger
);
373 }catch(SQLException ev
){
374 ev
.printStackTrace();
375 //System.out.println("SQLException: " + ev.getMessage());
376 //System.out.println("SQLState: " + ev.getSQLState());
377 //System.out.println("VendorError: " + ev.getErrorCode());
383 } catch (SQLException sqlEx
) { // ignore }
390 } catch (SQLException sqlEx
) { // ignore }
398 /****************************
404 public JScrollPane
constructSeite(){// 1 2 3 4 5
405 FormLayout lay
= new FormLayout("10dlu,fill:0:grow(0.25),p,fill:0:grow(0.25),10dlu",
407 // 2=titel 4=block1 6=block2 8=block3
408 // 1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 17
409 "20dlu, p ,2dlu, p, 10dlu,p,5dlu,p ,5dlu,p, 5dlu,p, 0dlu,p, 15dlu,p,20dlu");
410 PanelBuilder pb
= new PanelBuilder(lay
);
412 CellConstraints cc
= new CellConstraints();
413 //pb.addLabel("Das ist ein Label",cc.xy(2,2));
414 pb
.add(getTitel(),cc
.xy(3,2));
415 //Block 1 sind die Adressdaten
416 pb
.add(getBlock1(),cc
.xy(3,4));
417 //Block 2 sind Aufnahme/Entlassung/Entlassform
418 pb
.add(getBlock2(),cc
.xy(3, 6));
419 //Block 3 ist der Diagnosen-Block
420 pb
.add(getBlock3(),cc
.xy(3, 8));
421 //Block 4 ist Gewicht, Arbeitsunf�higkeitszeiten
422 pb
.add(getBlock4(),cc
.xy(3, 10));
423 //Block 5 �berschrift f�r Vorschl�ge f�r nachfolgende Ma�nahmen
424 pb
.add(getBlock5(),cc
.xy(3, 12));
425 //Block 5 Riesenschei�block mit den nachfolgenden Ma�nahmen
426 pb
.add(getBlock6(),cc
.xy(3, 14));
427 // Unterschriften ged�nse
428 pb
.add(getBlock7(),cc
.xy(3, 16));
429 pb
.getPanel().validate();
431 jscr
= JCompTools
.getTransparentScrollPane(pb
.getPanel());
432 jscr
.getViewport().setScrollMode(JViewport
.SIMPLE_SCROLL_MODE
);
434 jscr
.getVerticalScrollBar().setUnitIncrement(15);
447 private JPanel
getBlock7(){
448 FormLayout lay1
= new FormLayout("p,fill:0:grow(1.0)",
449 // 5=F174 7=F175 9=F176 11=F177
452 PanelBuilder lei1
= new PanelBuilder(lay1
);
453 lei1
.setOpaque(false);
454 CellConstraints ccl1
= new CellConstraints();
456 FormLayout dummy
= new FormLayout("p,2dlu,60dlu","p");
457 PanelBuilder dum
= new PanelBuilder(dummy
);
458 dum
.getPanel().setOpaque(false);
459 CellConstraints ccdum
= new CellConstraints();
460 JLabel lab
= new JLabel("Datum der Unterschrift:");
461 lab
.setFont(this.fontarialnormal
);
462 dum
.add(lab
,ccdum
.xy(1,1));
463 eltern
.btf
[27] = new JRtaTextField("DATUM",false);
464 eltern
.btf
[27].setName("UNTDAT");
465 eltern
.btf
[27].setFont(fontcourier
);
466 eltern
.btf
[27].setForeground(Color
.BLUE
);
468 dum
.add(eltern
.btf
[27],ccdum
.xy(3,1));
469 dum
.getPanel().validate();
470 lei1
.add(dum
.getPanel(),ccl1
.xy(1,1));
472 dummy
= new FormLayout("fill:0:grow(0.33),20dlu,fill:0:grow(0.33),20dlu,fill:0:grow(0.33)",
474 "p,2dlu,1px,2dlu,p");
475 dum
= new PanelBuilder(dummy
);
476 dum
.getPanel().setOpaque(false);
477 ccdum
= new CellConstraints();
478 eltern
.barzttf
[0] = new JRtaTextField("nix",false);
479 eltern
.barzttf
[0].setName("ARZT1");
480 eltern
.barzttf
[0].setFont(fontcourier
);
481 eltern
.barzttf
[0].setForeground(Color
.BLUE
);
482 dum
.add(eltern
.barzttf
[0],ccdum
.xy(1, 1));
484 eltern
.barzttf
[1] = new JRtaTextField("nix",false);
485 eltern
.barzttf
[1].setName("ARZT2");
486 eltern
.barzttf
[1].setFont(fontcourier
);
487 eltern
.barzttf
[1].setForeground(Color
.BLUE
);
488 dum
.add(eltern
.barzttf
[1],ccdum
.xy(3, 1));
490 eltern
.barzttf
[2] = new JRtaTextField("nix",false);
491 eltern
.barzttf
[2].setName("ARZT3");
492 eltern
.barzttf
[2].setFont(fontcourier
);
493 eltern
.barzttf
[2].setForeground(Color
.BLUE
);
494 dum
.add(eltern
.barzttf
[2],ccdum
.xy(5, 1));
495 dum
.add(getRand(Color
.BLACK
),ccdum
.xy(1,3));
496 dum
.add(getRand(Color
.BLACK
),ccdum
.xy(3,3));
497 dum
.add(getRand(Color
.BLACK
),ccdum
.xy(5,3));
498 dum
.add(getLabel("Ltd. Ärztin / ltd. Arzt"),ccdum
.xy(1,5));
499 dum
.add(getLabel("Oberärztin / Oberarzt"),ccdum
.xy(3,5));
500 dum
.add(getLabel("Stat.-Ärztin / Stat.-Arzt"),ccdum
.xy(5,5));
501 dum
.getPanel().validate();
502 lei1
.add(dum
.getPanel(),ccl1
.xyw(1, 3,2,CellConstraints
.FILL
,CellConstraints
.DEFAULT
));
504 lei1
.getPanel().validate();
505 return lei1
.getPanel();
510 private JPanel
getBlock1(){
512 FormLayout laytit
= new FormLayout("250dlu,0dlu,300dlu","2dlu,p:g");
513 PanelBuilder tit
= new PanelBuilder(laytit
);
514 tit
.setOpaque(false);
515 CellConstraints cctit
= new CellConstraints();
516 tit
.add(getBlock1Links(),cctit
.xy(1,2,CellConstraints
.LEFT
,CellConstraints
.TOP
));
517 tit
.add(getBlock1Rechts(),cctit
.xy(3,2,CellConstraints
.FILL
,CellConstraints
.TOP
));
518 tit
.getPanel().validate();
519 return tit
.getPanel();
521 private JPanel
getBlock2(){
523 FormLayout laytit
= new FormLayout("210dlu,340dlu","2dlu,p:g");
524 PanelBuilder tit
= new PanelBuilder(laytit
);
525 tit
.setOpaque(false);
526 CellConstraints cctit
= new CellConstraints();
527 tit
.add(getBlock2Links(),cctit
.xy(1,2,CellConstraints
.LEFT
,CellConstraints
.TOP
));
528 tit
.add(getBlock2Rechts(),cctit
.xy(2,2,CellConstraints
.FILL
,CellConstraints
.TOP
));
529 tit
.getPanel().validate();
530 return tit
.getPanel();
532 private JPanel
getBlock3(){
533 FormLayout laytit
= new FormLayout("550dlu","2dlu,p:g");
534 PanelBuilder tit
= new PanelBuilder(laytit
);
535 tit
.setOpaque(false);
536 CellConstraints cctit
= new CellConstraints();
537 tit
.add(getBlock3Komplett(),cctit
.xy(1,2,CellConstraints
.FILL
,CellConstraints
.TOP
));
538 tit
.getPanel().validate();
539 return tit
.getPanel();
541 private JPanel
getBlock4(){
542 FormLayout laytit
= new FormLayout("550dlu","2dlu,p:g");
543 PanelBuilder tit
= new PanelBuilder(laytit
);
544 tit
.setOpaque(false);
545 CellConstraints cctit
= new CellConstraints();
546 tit
.add(getBlock4Komplett(),cctit
.xy(1,2,CellConstraints
.FILL
,CellConstraints
.TOP
));
547 tit
.getPanel().validate();
548 return tit
.getPanel();
550 private JPanel
getBlock5(){
551 FormLayout laytit
= new FormLayout("550dlu","2dlu,p:g");
552 PanelBuilder tit
= new PanelBuilder(laytit
);
553 tit
.setOpaque(false);
554 CellConstraints cctit
= new CellConstraints();
555 tit
.add(getBlock5Komplett(),cctit
.xy(1,2));
556 tit
.getPanel().validate();
557 return tit
.getPanel();
559 private JPanel
getBlock6(){
560 FormLayout laytit
= new FormLayout("550dlu","2dlu,p:g");
561 PanelBuilder tit
= new PanelBuilder(laytit
);
562 tit
.setOpaque(false);
563 CellConstraints cctit
= new CellConstraints();
564 tit
.add(getBlock6Komplett(),cctit
.xy(1,2,CellConstraints
.FILL
,CellConstraints
.FILL
));
565 tit
.getPanel().validate();
566 return tit
.getPanel();
568 private JPanel
getBlock6Komplett(){ //1 2 3 4 5 6 7 8 9
569 FormLayout laytit
= new FormLayout("4dlu,fill:0:grow(0.33), 2px,4dlu, fill:0:grow(0.33) ,2px,4dlu ,fill:0:grow(0.33),4dlu",
570 // 1 2 3 4 5 6 7 8 9 10 //xyw(2,y,7);
571 "4dlu,p:g,4dlu,4dlu,p,30dlu,4dlu,p,30dlu,4dlu");
572 PanelBuilder tit
= new PanelBuilder(laytit
);
573 tit
.setBorder(BorderFactory
.createLineBorder(Color
.BLACK
));
574 tit
.setOpaque(false);
575 CellConstraints cctit
= new CellConstraints();
576 /*********************************/ // 1 2 3 4 5 6 7 8 9 10 11
577 FormLayout links
= new FormLayout( "10dlu,2dlu,p,30dlu,10dlu,2dlu,p",
578 //// 1 2 3 4 5 6 7 8 9 10 11
579 "p,p,p,10dlu,p,p,p,10dlu,p, p,p");
580 PanelBuilder titl
= new PanelBuilder(links
);
581 titl
.getPanel().setOpaque(false);
582 CellConstraints cctitl
= new CellConstraints();
583 // hier dazwischen den ganzen linken Schei�
584 labsheadline
[0] = new JLabel(headlineneu
[0]);
585 labsheadline
[0].setFont(fontarialfett
);
586 titl
.add(labsheadline
[0],cctitl
.xyw(1,1,7,CellConstraints
.FILL
,CellConstraints
.TOP
));
588 JLabel lab
= getLabel("125");
589 lab
.setForeground(Color
.RED
);
590 titl
.add(lab
,cctitl
.xy(1,2));
591 eltern
.bchb
[0] = new JRtaCheckBox("");
592 eltern
.bchb
[0].setName("F_125");
593 titl
.add(eltern
.bchb
[0],cctitl
.xy(1,3));
594 FormLayout labs
= new FormLayout("p","p,p,p");
595 PanelBuilder ltitl
= new PanelBuilder(labs
);
596 ltitl
.getPanel().setOpaque(false);
597 CellConstraints cclabs
= new CellConstraints();
599 ltitl
.add( (labstitel
[0][0] = getLabel(stitelneu
[0][0])),cclabs
.xy(1, 1));
600 ltitl
.add((labstitel
[0][1] = getLabel(stitelneu
[0][1])),cclabs
.xy(1, 2));
601 titl
.add(ltitl
.getPanel(),cctitl
.xy(3,3,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
603 lab
= getLabel("126");
604 lab
.setForeground(Color
.RED
);
605 titl
.add(lab
,cctitl
.xy(5,2));
606 eltern
.bchb
[1] = new JRtaCheckBox("");
607 eltern
.bchb
[1].setName("F_126");
608 titl
.add(eltern
.bchb
[1],cctitl
.xy(5,3));
609 labs
= new FormLayout("p","p,p,p");
610 ltitl
= new PanelBuilder(labs
);
611 ltitl
.getPanel().setOpaque(false);
612 cclabs
= new CellConstraints();
613 ltitl
.add( (labstitel
[1][0] = getLabel(stitelneu
[1][0])),cclabs
.xy(1, 1));
614 ltitl
.add((labstitel
[1][1] = getLabel(stitelneu
[1][1])),cclabs
.xy(1, 2));
615 //ltitl.add(getLabel("Neue Zeile"),cclabs.xy(1, 3));
616 //titl.add(ltitl.getPanel(),cctitl.xywh(7,1,1,3,CellConstraints.DEFAULT,CellConstraints.BOTTOM));
617 titl
.add(ltitl
.getPanel(),cctitl
.xy(7,3,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
619 lab
= getLabel("131");
620 lab
.setForeground(Color
.RED
);
621 titl
.add(lab
,cctitl
.xy(1,5));
622 eltern
.bchb
[2] = new JRtaCheckBox("");
623 eltern
.bchb
[2].setName("F_131");
624 titl
.add(eltern
.bchb
[2],cctitl
.xy(1,6));
625 labs
= new FormLayout("p","p,p,p");
626 ltitl
= new PanelBuilder(labs
);
627 ltitl
.getPanel().setOpaque(false);
628 cclabs
= new CellConstraints();
629 ltitl
.add((labstitel
[2][0] = getLabel(stitelneu
[2][0])),cclabs
.xy(1, 1));
630 titl
.add(ltitl
.getPanel(),cctitl
.xy(3,6,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
632 lab
= getLabel("132");
633 lab
.setForeground(Color
.RED
);
634 titl
.add(lab
,cctitl
.xy(5,5));
635 eltern
.bchb
[3] = new JRtaCheckBox("");
636 eltern
.bchb
[3].setName("F_132");
637 titl
.add(eltern
.bchb
[3],cctitl
.xy(5,6));
638 labs
= new FormLayout("p","p,p,p");
639 ltitl
= new PanelBuilder(labs
);
640 ltitl
.getPanel().setOpaque(false);
641 cclabs
= new CellConstraints();
642 ltitl
.add( (labstitel
[3][0] = getLabel(stitelneu
[3][0])),cclabs
.xy(1, 1));
643 titl
.add(ltitl
.getPanel(),cctitl
.xy(7,6,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
645 lab
= getLabel("137");
646 lab
.setForeground(Color
.RED
);
647 titl
.add(lab
,cctitl
.xy(1,9));
648 eltern
.bchb
[4] = new JRtaCheckBox("");
649 eltern
.bchb
[4].setName("F_137");
650 titl
.add(eltern
.bchb
[4],cctitl
.xy(1,10));
651 labs
= new FormLayout("p","p,p,p");
652 ltitl
= new PanelBuilder(labs
);
653 ltitl
.getPanel().setOpaque(false);
654 cclabs
= new CellConstraints();
655 ltitl
.add((labstitel
[4][0] = getLabel(stitelneu
[4][0])),cclabs
.xy(1, 1));
656 ltitl
.add((labstitel
[4][1] = getLabel(stitelneu
[4][1])),cclabs
.xy(1, 2));
657 titl
.add(ltitl
.getPanel(),cctitl
.xy(3,10,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
659 lab
= getLabel("138");
660 lab
.setForeground(Color
.RED
);
661 titl
.add(lab
,cctitl
.xy(5,9));
662 eltern
.bchb
[5] = new JRtaCheckBox("");
663 eltern
.bchb
[5].setName("F_138");
664 titl
.add(eltern
.bchb
[5],cctitl
.xy(5,10));
665 labs
= new FormLayout("p","p,p,p");
666 ltitl
= new PanelBuilder(labs
);
667 ltitl
.getPanel().setOpaque(false);
668 cclabs
= new CellConstraints();
669 ltitl
.add((labstitel
[5][0] = getLabel(stitelneu
[5][0])),cclabs
.xy(1, 1));
670 ltitl
.add((labstitel
[5][1] = getLabel(stitelneu
[5][1])),cclabs
.xy(1, 2));
671 ltitl
.add((labstitel
[5][2] = getLabel(stitelneu
[5][2])),cclabs
.xy(1, 3));
672 //titl.add(ltitl.getPanel(),cctitl.xy(3,10,CellConstraints.DEFAULT,CellConstraints.CENTER));
673 titl
.add(ltitl
.getPanel(),cctitl
.xywh(7,9,1,3,CellConstraints
.DEFAULT
,CellConstraints
.BOTTOM
));
675 titl
.getPanel().validate();
676 tit
.add(titl
.getPanel(),cctit
.xy(2,2,CellConstraints
.FILL
,CellConstraints
.FILL
));
677 /*********************************/
681 JXPanel rand
= new JXPanel();
682 rand
.setOpaque(false);
683 rand
.setBorder(BorderFactory
.createLineBorder(Color
.GRAY
));
684 tit
.add(rand
,cctit
.xy(3,2,CellConstraints
.FILL
,CellConstraints
.FILL
));
685 /*********************************/
686 /*********************************/
687 FormLayout mitte
= new FormLayout( "10dlu,2dlu,p,30dlu,10dlu,2dlu,p",
688 //// 1 2 3 4 5 6 7 8 9 10 11
689 "p,p,p,10dlu,p,p,p,10dlu,p, p,p");
690 PanelBuilder titm
= new PanelBuilder(mitte
);
691 titm
.getPanel().setOpaque(false);
692 //CellConstraints cctitm = new CellConstraints();
693 // hier dazwischen den ganzen mittleren Schei�
694 labsheadline
[1] = new JLabel(headlineneu
[1]);
695 labsheadline
[1].setFont(fontarialfett
);
696 titm
.add(labsheadline
[1],cctitl
.xyw(1,1,7,CellConstraints
.FILL
,CellConstraints
.TOP
));
698 lab
= getLabel("140");
699 lab
.setForeground(Color
.RED
);
700 titm
.add(lab
,cctitl
.xy(1,2));
701 eltern
.bchb
[6] = new JRtaCheckBox("");
702 eltern
.bchb
[6].setName("F_140");
703 titm
.add(eltern
.bchb
[6],cctitl
.xy(1,3));
704 labs
= new FormLayout("p","p,p,p");
705 ltitl
= new PanelBuilder(labs
);
706 ltitl
.getPanel().setOpaque(false);
707 cclabs
= new CellConstraints();
708 ltitl
.add((labstitel
[11][0] = getLabel(stitelneu
[11][0])),cclabs
.xy(1, 1));
709 ltitl
.add((labstitel
[11][1] = getLabel(stitelneu
[11][1])),cclabs
.xy(1, 2));
710 titm
.add(ltitl
.getPanel(),cctitl
.xy(3,3,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
712 lab
= getLabel("127");
713 lab
.setForeground(Color
.RED
);
714 titm
.add(lab
,cctitl
.xy(1,5));
715 eltern
.bchb
[7] = new JRtaCheckBox("");
716 eltern
.bchb
[7].setName("F_127");
717 titm
.add(eltern
.bchb
[7],cctitl
.xy(1,6));
718 labs
= new FormLayout("p","p,p,p");
719 ltitl
= new PanelBuilder(labs
);
720 ltitl
.getPanel().setOpaque(false);
721 cclabs
= new CellConstraints();
722 ltitl
.add((labstitel
[6][0] = getLabel(stitelneu
[6][0])),cclabs
.xy(1, 1));
723 ltitl
.add((labstitel
[6][1] = getLabel(stitelneu
[6][1])),cclabs
.xy(1, 2));
724 titm
.add(ltitl
.getPanel(),cctitl
.xy(3,6,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
726 //lab = getLabel("133");
727 //lab.setForeground(Color.RED);
728 //titm.add(lab,cctitl.xy(1,5));
729 eltern
.bchb
[8] = new JRtaCheckBox("");
730 eltern
.bchb
[8].setName("F_133");
731 //titm.add(eltern.bchb[8],cctitl.xy(1,6));
732 //labs = new FormLayout("p","p,p,p");
733 //ltitl = new PanelBuilder(labs);
734 //ltitl.getPanel().setOpaque(false);
735 //cclabs = new CellConstraints();
736 labstitel
[8][0] = getLabel(stitelneu
[8][0]);
737 //ltitl.add((labstitel[8][0] = getLabel(stitelneu[8][0])),cclabs.xy(1, 1));
738 //titm.add(ltitl.getPanel(),cctitl.xy(3,6,CellConstraints.DEFAULT,CellConstraints.CENTER));
740 //lab = getLabel("134");
741 //lab.setForeground(Color.RED);
742 //titm.add(lab,cctitl.xy(5,5));
743 eltern
.bchb
[9] = new JRtaCheckBox("");
744 eltern
.bchb
[9].setName("F_134");
745 //titm.add(eltern.bchb[9],cctitl.xy(5,6));
746 //labs = new FormLayout("p","p,p,p");
747 //ltitl = new PanelBuilder(labs);
748 //ltitl.getPanel().setOpaque(false);
749 //cclabs = new CellConstraints();
750 labstitel
[9][0] = getLabel(stitelneu
[9][0]);
751 //ltitl.add((labstitel[9][0] = getLabel(stitelneu[9][0])),cclabs.xy(1, 1));
752 //titm.add(ltitl.getPanel(),cctitl.xy(7,6,CellConstraints.DEFAULT,CellConstraints.CENTER));
754 //lab = getLabel("139");
755 //lab.setForeground(Color.RED);
756 //titm.add(lab,cctitl.xy(1,9));
757 eltern
.bchb
[10] = new JRtaCheckBox("");
758 eltern
.bchb
[10].setName("F_139");
759 //titm.add(eltern.bchb[10],cctitl.xy(1,10));
760 //labs = new FormLayout("p","p,p,p");
761 //ltitl = new PanelBuilder(labs);
762 //ltitl.getPanel().setOpaque(false);
763 //cclabs = new CellConstraints();
764 labstitel
[10][0] = getLabel(stitelneu
[10][0]);
765 //ltitl.add((labstitel[10][0] = getLabel(stitelneu[10][0])),cclabs.xy(1, 1));
766 //titm.add(ltitl.getPanel(),cctitl.xy(3,10,CellConstraints.DEFAULT,CellConstraints.CENTER));
768 //lab = getLabel("140");
769 //lab.setForeground(Color.RED);
770 //titm.add(lab,cctitl.xy(1,2));
771 eltern
.bchb
[11] = new JRtaCheckBox("");
772 eltern
.bchb
[11].setName("F_128");
773 //titm.add(eltern.bchb[11],cctitl.xy(1,3));
774 //labs = new FormLayout("p","p,p,p");
775 //ltitl = new PanelBuilder(labs);
776 //ltitl.getPanel().setOpaque(false);
777 //cclabs = new CellConstraints();
778 labstitel
[7][0] = getLabel(stitelneu
[7][0]);
779 //ltitl.add((labstitel[11][0] = getLabel(stitelneu[7][0])),cclabs.xy(1, 1));
780 //titm.add(ltitl.getPanel(),cctitl.xy(7,10,CellConstraints.DEFAULT,CellConstraints.CENTER));
782 titm
.getPanel().validate();
783 tit
.add(titm
.getPanel(),cctit
.xy(8,2,CellConstraints
.FILL
,CellConstraints
.FILL
));
784 /*********************************/
788 rand
= new JXPanel();
789 rand
.setOpaque(false);
790 rand
.setBorder(BorderFactory
.createLineBorder(Color
.GRAY
));
791 tit
.add(rand
,cctit
.xy(6,2,CellConstraints
.FILL
,CellConstraints
.FILL
));
792 /*********************************/
793 /*********************************/
794 FormLayout rechts
= new FormLayout( "10dlu,2dlu,p,20dlu,10dlu,2dlu,p",
795 //// 1 2 3 4 5 6 7 8 9 10 11
796 "p,p,p,10dlu,p,p,p,10dlu,p, p,p");
797 PanelBuilder titr
= new PanelBuilder(rechts
);
798 titr
.getPanel().setOpaque(false);
799 //CellConstraints cctitr = new CellConstraints();
800 labsheadline
[2] = new JLabel(headlineneu
[2]);
801 labsheadline
[2].setFont(fontarialfett
);
802 titr
.add(labsheadline
[2],cctitl
.xyw(1,1,7,CellConstraints
.FILL
,CellConstraints
.TOP
));
804 lab
= getLabel("135");//Wechsel mit 129
805 lab
.setForeground(Color
.RED
);
806 titr
.add(lab
,cctitl
.xy(1,2));
807 eltern
.bchb
[14] = new JRtaCheckBox("");
808 eltern
.bchb
[14].setName("F_135");
809 titr
.add(eltern
.bchb
[14],cctitl
.xy(1,3));
810 labs
= new FormLayout("p","p,p,p");
811 ltitl
= new PanelBuilder(labs
);
812 ltitl
.getPanel().setOpaque(false);
813 cclabs
= new CellConstraints();
814 ltitl
.add((labstitel
[14][0] = getLabel(stitelneu
[14][0])),cclabs
.xy(1, 1));
815 ltitl
.add((labstitel
[14][1] = getLabel(stitelneu
[14][1])),cclabs
.xy(1, 2));
816 titr
.add(ltitl
.getPanel(),cctitl
.xy(3,3,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
818 lab
= getLabel("136");
819 lab
.setForeground(Color
.RED
);
820 titr
.add(lab
,cctitl
.xy(5,2));
821 eltern
.bchb
[15] = new JRtaCheckBox("");
822 eltern
.bchb
[15].setName("F_136");
823 titr
.add(eltern
.bchb
[15],cctitl
.xy(5,3));
824 labs
= new FormLayout("p","p,p,p");
825 ltitl
= new PanelBuilder(labs
);
826 ltitl
.getPanel().setOpaque(false);
827 cclabs
= new CellConstraints();
828 ltitl
.add((labstitel
[15][0] = getLabel(stitelneu
[15][0])),cclabs
.xy(1, 1));
829 ltitl
.add((labstitel
[15][1] = getLabel(stitelneu
[15][1])),cclabs
.xy(1, 2));
830 ltitl
.add((labstitel
[15][2] = getLabel(stitelneu
[15][2])),cclabs
.xy(1, 3));
831 //titr.add(ltitl.getPanel(),cctitl.xy(7,6,CellConstraints.DEFAULT,CellConstraints.CENTER));
832 titr
.add(ltitl
.getPanel(),cctitl
.xywh(7,2,1,3,CellConstraints
.DEFAULT
,CellConstraints
.TOP
));
834 lab
= getLabel("129");
835 lab
.setForeground(Color
.RED
);
836 titr
.add(lab
,cctitl
.xy(1,5));//Wechsel mit 135
837 eltern
.bchb
[12] = new JRtaCheckBox("");
838 eltern
.bchb
[12].setName("F_129");
839 titr
.add(eltern
.bchb
[12],cctitl
.xy(1,6));
840 labs
= new FormLayout("p","p,p,p");
841 ltitl
= new PanelBuilder(labs
);
842 ltitl
.getPanel().setOpaque(false);
843 cclabs
= new CellConstraints();
844 ltitl
.add((labstitel
[12][0] = getLabel(stitelneu
[12][0])),cclabs
.xy(1, 1));
845 titr
.add(ltitl
.getPanel(),cctitl
.xy(3,6,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
847 lab
= getLabel("130");
848 lab
.setForeground(Color
.RED
);
849 titr
.add(lab
,cctitl
.xy(5,5));
850 eltern
.bchb
[13] = new JRtaCheckBox("");
851 eltern
.bchb
[13].setName("F_130");
852 titr
.add(eltern
.bchb
[13],cctitl
.xy(5,6));
853 labs
= new FormLayout("p","p,p,p");
854 ltitl
= new PanelBuilder(labs
);
855 ltitl
.getPanel().setOpaque(false);
856 cclabs
= new CellConstraints();
857 ltitl
.add((labstitel
[13][0] = getLabel(stitelneu
[13][0])),cclabs
.xy(1, 1));
858 titr
.add(ltitl
.getPanel(),cctitl
.xy(7,6,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
860 lab
= getLabel("141");
861 lab
.setForeground(Color
.RED
);
862 titr
.add(lab
,cctitl
.xy(1,9));
863 eltern
.bchb
[16] = new JRtaCheckBox("");
864 eltern
.bchb
[16].setName("F_141");
865 titr
.add(eltern
.bchb
[16],cctitl
.xy(1,10));
866 labs
= new FormLayout("p","p,p,p");
867 ltitl
= new PanelBuilder(labs
);
868 ltitl
.getPanel().setOpaque(false);
869 cclabs
= new CellConstraints();
870 ltitl
.add((labstitel
[16][0] = getLabel(stitelneu
[16][0])),cclabs
.xy(1, 1));
871 ltitl
.add((labstitel
[16][1] = getLabel(stitelneu
[16][1])),cclabs
.xy(1, 2));
872 titr
.add(ltitl
.getPanel(),cctitl
.xy(3,10,CellConstraints
.DEFAULT
,CellConstraints
.CENTER
));
874 titr
.getPanel().validate();
875 tit
.add(titr
.getPanel(),cctit
.xy(5,2,CellConstraints
.FILL
,CellConstraints
.FILL
));
876 // 1 2 3 4 5 6 7 8 9 10 //xyw(2,y,7);
877 // "4dlu,p:g,4dlu,4dlu,p,30dlu,4dlu,p,30dlu,4dlu");
878 lab
= getLabel("ERLÄUTERUNGEN");
879 lab
.setForeground(Color
.RED
);
880 tit
.add(lab
,cctit
.xyw(2,5,3));
881 eltern
.bta
[5] = new JTextArea();
882 eltern
.bta
[5].setName("ERLAEUT");
883 tit
.add(eltern
.bta
[5],cctit
.xyw(2,6,7,CellConstraints
.FILL
,CellConstraints
.FILL
));
885 lab
= getLabel("LETZTE MEDIKATION");
886 lab
.setForeground(Color
.RED
);
887 tit
.add(lab
,cctit
.xyw(2,8,3));
888 eltern
.bta
[6] = new JTextArea();
889 eltern
.bta
[6].setName("LMEDIKAT");
890 eltern
.bta
[6].setEnabled(false);
891 eltern
.bta
[6].setText("Bei Entlassdatum > 31.12.2007 ungültig");
892 tit
.add(eltern
.bta
[6],cctit
.xyw(2,9,7,CellConstraints
.FILL
,CellConstraints
.FILL
));
894 tit
.getPanel().validate();
895 return tit
.getPanel();
898 private JPanel
getBlock5Komplett(){
899 FormLayout laytit
= new FormLayout("0dlu,p,4dlu,p",
901 PanelBuilder tit
= new PanelBuilder(laytit
);
902 //tit.setBorder(BorderFactory.createLineBorder(Color.BLACK));
903 tit
.setOpaque(false);
904 CellConstraints cctit
= new CellConstraints();
905 JLabel lab
= new JLabel("Vorschläge für nachfolgende Maßnahmen");
906 lab
.setFont(fontarialfett
);
907 tit
.add(lab
,cctit
.xy(2,2));
908 lab
= new JLabel("Zutreffendes bitte ankreuzen (X), Mehrfachnennungen sind möglich");
909 lab
.setFont(fontarialnormal
);
910 tit
.add(lab
,cctit
.xy(4,2));
911 tit
.getPanel().validate();
912 return tit
.getPanel();
914 private JPanel
getBlock4Komplett_X(){
915 //insgesamt 610 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
916 FormLayout laytit
= new FormLayout("4dlu,25dlu,2dlu,p, 35dlu, 25dlu,2dlu,p, 20dlu,25dlu,2dlu,p,20dlu,25dlu,2dlu,p:g,20dlu",
917 // dia1 dia2 dia3 dia4 dia5
919 "4dlu,p, 5dlu, p, 5dlu, p, 0dlu:g,4dlu");
920 //"4dlu,p, 5dlu, p, 5dlu, p, 0dlu:g, 2dlu, p, 30dlu, 2dlu, p, 30dlu, 2dlu, p ,30dlu,4dlu");
921 PanelBuilder tit
= new PanelBuilder(laytit
);
922 //tit.setBorder(BorderFactory.createLineBorder(Color.BLACK));
923 tit
.setOpaque(false);
924 CellConstraints cctit
= new CellConstraints();
925 tit
.getPanel().validate();
926 eltern
.btf
[22] = new JRtaTextField("ZAHLEN",false);
927 eltern
.btf
[22].setName("F_114");
928 tit
.add(eltern
.btf
[22],cctit
.xy(2,2));
929 FormLayout entlay
= new FormLayout("55dlu","p,p");
930 PanelBuilder ent
= new PanelBuilder(entlay
);
931 ent
.getPanel().setOpaque(false);
932 CellConstraints ccent
= new CellConstraints();
933 JLabel lab
= getLabel ("Aufnahmegewicht");
934 lab
.setForeground(Color
.RED
);
935 ent
.add(lab
,ccent
.xy(1, 1));
936 lab
= getLabel("(ganze kg)");
937 lab
.setForeground(Color
.RED
);
938 ent
.add(lab
,ccent
.xy(1, 2));
939 tit
.add(ent
.getPanel(),cctit
.xy(4,2,CellConstraints
.FILL
,CellConstraints
.TOP
));
942 eltern
.btf
[23] = new JRtaTextField("ZAHLEN",false);
943 eltern
.btf
[23].setName("F_117");
944 tit
.add(eltern
.btf
[23],cctit
.xy(2,4));
945 entlay
= new FormLayout("55dlu","p,p");
946 ent
= new PanelBuilder(entlay
);
947 ent
.getPanel().setOpaque(false);
948 ccent
= new CellConstraints();
949 lab
= getLabel ("Entlassungsgewicht");
950 lab
.setForeground(Color
.RED
);
951 ent
.add(lab
,ccent
.xy(1, 1));
952 lab
= getLabel("(ganze kg)");
953 lab
.setForeground(Color
.RED
);
954 ent
.add(lab
,ccent
.xy(1, 2));
955 tit
.add(ent
.getPanel(),cctit
.xy(4,4,CellConstraints
.FILL
,CellConstraints
.TOP
));
958 eltern
.btf
[24] = new JRtaTextField("ZAHLEN",false);
959 tit
.add(eltern
.btf
[24],cctit
.xy(2,6));
960 eltern
.btf
[24].setName("F_120");
961 entlay
= new FormLayout("55dlu","p,p");
962 ent
= new PanelBuilder(entlay
);
963 ent
.getPanel().setOpaque(false);
964 ccent
= new CellConstraints();
965 lab
= getLabel ("Körpergröße");
966 lab
.setForeground(Color
.RED
);
967 ent
.add(lab
,ccent
.xy(1, 1));
968 lab
= getLabel("(ganze cm)");
969 lab
.setForeground(Color
.RED
);
970 ent
.add(lab
,ccent
.xy(1, 2));
971 tit
.add(ent
.getPanel(),cctit
.xy(4,6,CellConstraints
.FILL
,CellConstraints
.TOP
));
973 eltern
.bcmb
[17] = new JRtaComboBox(ursache
);
974 eltern
.bcmb
[17].setName("F_123");
975 tit
.add(eltern
.bcmb
[17],cctit
.xy(6,2));
976 // 1 2 3 4 5 6 7 8 9 10 11 12
977 entlay
= new FormLayout("p,2dlu,p","p,p,p,p,p,p,p,p,p,p, p, p");
978 ent
= new PanelBuilder(entlay
);
979 ent
.getPanel().setOpaque(false);
980 ccent
= new CellConstraints();
981 lab
= getLabel ("URSACHE DER");
982 lab
.setForeground(Color
.RED
);
983 ent
.add(lab
,ccent
.xyw(1, 1,3));
984 lab
= getLabel("ERKRANKUNG");
985 lab
.setForeground(Color
.RED
);
986 ent
.add(lab
,ccent
.xyw(1, 2,3));
987 ent
.add(getLabel("(1.Diagnose)"),ccent
.xyw(1,3,3 ));
988 ent
.add(getLabel("0 = "),ccent
.xy(1,4 ));
989 ent
.add(getLabel("1 - 4 trifft nicht zu"),ccent
.xy(3,4,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
990 ent
.add(getLabel("1 = "),ccent
.xy(1,5 ));
991 ent
.add(getLabel("Arbeitsunfall einschl."),ccent
.xy(3,5,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
992 ent
.add(getLabel("Wegeunfall"),ccent
.xy(3,6,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
993 ent
.add(getLabel("2 = "),ccent
.xy(1,7 ));
994 ent
.add(getLabel("Berufserkrankung"),ccent
.xy(3,7,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
995 ent
.add(getLabel("3 = "),ccent
.xy(1,8 ));
996 ent
.add(getLabel("Schädigung durch"),ccent
.xy(3,8,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
997 ent
.add(getLabel("Einwirkung Dritter"),ccent
.xy(3,9,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
998 ent
.add(getLabel("4 = "),ccent
.xy(1,10 ));
999 ent
.add(getLabel("Folge von Kriegs-, Zivil-"),ccent
.xy(3,10,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1000 ent
.add(getLabel("oder Whrdienst"),ccent
.xy(3,11,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1001 ent
.add(getLabel("5 = "),ccent
.xy(1,12 ));
1002 ent
.add(getLabel("Meldepflichtige Erkrankung"),ccent
.xy(3,12,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1003 ent
.getPanel().validate();
1004 tit
.add(ent
.getPanel(),cctit
.xywh(8,2,1,6,CellConstraints
.LEFT
,CellConstraints
.TOP
));
1006 eltern
.bcmb
[18] = new JRtaComboBox(vorherau
);
1007 eltern
.bcmb
[18].setName("F_124");
1008 tit
.add(eltern
.bcmb
[18],cctit
.xy(10,2));
1010 entlay
= new FormLayout("p,2dlu,fill:0:grow(1.0)","p,p,p,p,p,p,p,p");
1011 ent
= new PanelBuilder(entlay
);
1012 ent
.getPanel().setOpaque(false);
1013 ccent
= new CellConstraints();
1014 lab
= getLabel ("ARBEITSUNFÄHIGKEITSZEITEN");
1015 lab
.setForeground(Color
.RED
);
1016 ent
.add(lab
,ccent
.xyw(1, 1,3));
1017 ent
.add(getLabel("innerhalb der letzten"),ccent
.xyw(1,2,3 ));
1018 ent
.add(getLabel("12 Monate vor Aufnahme"),ccent
.xyw(1,3,3 ));
1019 ent
.add(getLabel("0 = "),ccent
.xy(1,4 ));
1020 ent
.add(getLabel("keine"),ccent
.xy(3,4,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1021 ent
.add(getLabel("1 = "),ccent
.xy(1,5 ));
1022 ent
.add(getLabel("bis unter 3 Monate"),ccent
.xy(3,5,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1023 ent
.add(getLabel("2 = "),ccent
.xy(1,6 ));
1024 ent
.add(getLabel("3 bis unter 6 Monate"),ccent
.xy(3,6,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1025 ent
.add(getLabel("3 = "),ccent
.xy(1,7 ));
1026 ent
.add(getLabel("6 und mehr Monate"),ccent
.xy(3,7,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1027 ent
.add(getLabel("9 = "),ccent
.xy(1,8 ));
1028 ent
.add(getLabel("nicht erwerbstätig"),ccent
.xy(3,8,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1029 ent
.getPanel().validate();
1030 tit
.add(ent
.getPanel(),cctit
.xywh(12,2,1,6,CellConstraints
.LEFT
,CellConstraints
.TOP
));
1032 eltern
.bcmb
[19] = new JRtaComboBox(dmp
);
1033 eltern
.bcmb
[19].setName("DMP");
1034 tit
.add(eltern
.bcmb
[19],cctit
.xy(14,2));
1035 // 1 2 3 4 5 6 7 8 9
1036 entlay
= new FormLayout("p,2dlu,fill:0:grow(1.0)","p,p,p,p,p,p,p,p,p");
1037 ent
= new PanelBuilder(entlay
);
1038 ent
.getPanel().setOpaque(false);
1039 ccent
= new CellConstraints();
1040 lab
= getLabel ("DMP-Patient");
1041 lab
.setForeground(Color
.RED
);
1042 ent
.add(lab
,ccent
.xyw(1, 1,3));
1043 ent
.add(getLabel("0 = "),ccent
.xy(1,2 ));
1044 ent
.add(getLabel("kein DMP-Patient"),ccent
.xy(3,2,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1045 ent
.add(getLabel("1 = "),ccent
.xy(1,3 ));
1046 ent
.add(getLabel("Diabetes mellitus Typ 1"),ccent
.xy(3,3,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1047 ent
.add(getLabel("2 = "),ccent
.xy(1,4 ));
1048 ent
.add(getLabel("Diabetes mellitus Typ 2"),ccent
.xy(3,4,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1049 ent
.add(getLabel("3 = "),ccent
.xy(1,5 ));
1050 ent
.add(getLabel("Brustkrebs"),ccent
.xy(3,5,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1051 ent
.add(getLabel("4 = "),ccent
.xy(1,6 ));
1052 ent
.add(getLabel("KHK"),ccent
.xy(3,6,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1053 ent
.add(getLabel("5 = "),ccent
.xy(1,7 ));
1054 ent
.add(getLabel("Asthma bronchiale / COPD"),ccent
.xy(3,7,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1055 ent
.add(getLabel("6 = "),ccent
.xy(1,8 ));
1056 ent
.add(getLabel("mehrere DMP"),ccent
.xy(3,8,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1057 ent
.add(getLabel("7 = "),ccent
.xy(1,9 ));
1058 ent
.add(getLabel("andere DMP"),ccent
.xy(3,9,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1059 ent
.getPanel().validate();
1060 tit
.add(ent
.getPanel(),cctit
.xywh(16,2,1,6,CellConstraints
.FILL
,CellConstraints
.TOP
));
1061 return tit
.getPanel();
1064 /*************************************************/
1065 private JPanel
getBlock4Komplett(){
1066 //insgesamt 610 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
1067 FormLayout laytit
= new FormLayout("4dlu,25dlu,2dlu,p, 35dlu, 25dlu,2dlu,p, 20dlu,25dlu,2dlu,p,20dlu,25dlu,2dlu,p:g,20dlu",
1068 // dia1 dia2 dia3 dia4 dia5
1070 "4dlu,p, 5dlu, p, 5dlu, p, 0dlu:g,4dlu");
1071 //"4dlu,p, 5dlu, p, 5dlu, p, 0dlu:g, 2dlu, p, 30dlu, 2dlu, p, 30dlu, 2dlu, p ,30dlu,4dlu");
1072 PanelBuilder tit
= new PanelBuilder(laytit
);
1073 //tit.setBorder(BorderFactory.createLineBorder(Color.BLACK));
1074 tit
.setOpaque(false);
1075 CellConstraints cctit
= new CellConstraints();
1076 tit
.getPanel().validate();
1078 FormLayout entlay
= new FormLayout("55dlu","p,p");
1079 PanelBuilder ent
= new PanelBuilder(entlay
);
1080 ent
.getPanel().setOpaque(false);
1081 CellConstraints ccent
= new CellConstraints();
1082 JLabel lab
= getLabel ("");
1084 eltern
.btf
[22] = new JRtaTextField("ZAHLEN",false);
1085 eltern
.btf
[22].setName("F_114");
1086 eltern
.btf
[23] = new JRtaTextField("ZAHLEN",false);
1087 eltern
.btf
[23].setName("F_117");
1088 eltern
.btf
[24] = new JRtaTextField("ZAHLEN",false);
1089 eltern
.btf
[24].setName("F_120");
1091 eltern
.bcmb
[17] = new JRtaComboBox(ursache
);
1092 eltern
.bcmb
[17].setName("F_123");
1094 tit
.add(eltern
.bcmb
[17],cctit
.xy(2,2));
1095 // 1 2 3 4 5 6 7 8 9 10 11 12
1096 entlay
= new FormLayout("p,2dlu,p","p,p,p,p,p,p,p,p,p,p, p, p");
1097 ent
= new PanelBuilder(entlay
);
1098 ent
.getPanel().setOpaque(false);
1099 ccent
= new CellConstraints();
1100 lab
= getLabel ("URSACHE DER");
1101 lab
.setForeground(Color
.RED
);
1102 ent
.add(lab
,ccent
.xyw(1, 1,3));
1103 lab
= getLabel("ERKRANKUNG");
1104 lab
.setForeground(Color
.RED
);
1105 ent
.add(lab
,ccent
.xyw(1, 2,3));
1106 ent
.add(getLabel("(1.Diagnose)"),ccent
.xyw(1,3,3 ));
1107 ent
.add(getLabel("0 = "),ccent
.xy(1,4 ));
1108 ent
.add(getLabel("1 - 5 trifft nicht zu"),ccent
.xy(3,4,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1109 ent
.add(getLabel("1 = "),ccent
.xy(1,5 ));
1110 ent
.add(getLabel("Arbeitsunfall einschl."),ccent
.xy(3,5,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1111 ent
.add(getLabel("Wegeunfall"),ccent
.xy(3,6,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1112 ent
.add(getLabel("2 = "),ccent
.xy(1,7 ));
1113 ent
.add(getLabel("Berufserkrankung"),ccent
.xy(3,7,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1114 ent
.add(getLabel("3 = "),ccent
.xy(1,8 ));
1115 ent
.add(getLabel("Schädigung durch"),ccent
.xy(3,8,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1116 ent
.add(getLabel("Einwirkung Dritter"),ccent
.xy(3,9,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1117 ent
.add(getLabel("4 = "),ccent
.xy(1,10 ));
1118 ent
.add(getLabel("Folge von Kriegs-, Zivil-"),ccent
.xy(3,10,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1119 ent
.add(getLabel("oder Whrdienst"),ccent
.xy(3,11,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1120 ent
.add(getLabel("5 = "),ccent
.xy(1,12 ));
1121 ent
.add(getLabel("Meldepflichtige Erkrankung"),ccent
.xy(3,12,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1122 ent
.getPanel().validate();
1123 //tit.add(ent.getPanel(),cctit.xy(4,2,CellConstraints.FILL,CellConstraints.TOP));
1124 tit
.add(ent
.getPanel(),cctit
.xywh(4,2,1,6,CellConstraints
.LEFT
,CellConstraints
.TOP
));
1126 /***************************/
1129 eltern
.bcmb
[0] = new JRtaComboBox(new String
[] {"","1","2","3","4","5","6","7","9"});
1130 eltern
.bcmb
[0].setName("ENTFORM");
1131 tit
.add(eltern
.bcmb
[0],cctit
.xy(6, 2));
1132 // 1 2 3 4 5 6 7 8 9 10 11 12
1133 entlay
= new FormLayout("p,2dlu,p","p,p,p,p,p,p,p,p,p,p, p, p, p");
1134 ent
= new PanelBuilder(entlay
);
1135 ent
.getPanel().setOpaque(false);
1136 ccent
= new CellConstraints();
1137 lab
= getLabel("ENTLASSFORM");
1138 lab
.setForeground(Color
.RED
);
1139 ent
.add(lab
,ccent
.xyw(1,1,3));
1140 ent
.add(getLabel("1 = "),ccent
.xy(1,2));
1141 ent
.add(getLabel("regulär"),ccent
.xy(3,2));
1142 ent
.add(getLabel("2 = "),ccent
.xy(1,3));
1143 ent
.add(getLabel("vorzeitig auf ärztl. Veranlassung"),ccent
.xy(3,3));
1144 ent
.add(getLabel("3 = "),ccent
.xy(1,4));
1145 ent
.add(getLabel("vorzeitig mit ärztl. Einverständnis"),ccent
.xy(3,4));
1146 ent
.add(getLabel("4 = "),ccent
.xy(1,5));
1147 ent
.add(getLabel("vorzeitig ohne ärztl. Einverständnis"),ccent
.xy(3,5));
1148 ent
.add(getLabel("5 = "),ccent
.xy(1,6));
1149 ent
.add(getLabel("disziplinarisch"),ccent
.xy(3,6));
1150 ent
.add(getLabel("6 = "),ccent
.xy(1,7));
1151 ent
.add(getLabel("verlegt"),ccent
.xy(3,7));
1152 ent
.add(getLabel("7 = "),ccent
.xy(1,8));
1153 ent
.add(getLabel("Wechsel zu ambulanter, ganztägig"),ccent
.xy(3,8));
1154 ent
.add(getLabel("ambulanter, stationärer Reha"),ccent
.xy(3,9));
1155 ent
.add(getLabel("9 = "),ccent
.xy(1,10));
1156 ent
.add(getLabel("gestorben"),ccent
.xy(3,10));
1158 tit
.add(ent
.getPanel(),cctit
.xywh(8,2,1,6));
1159 /****************************/
1161 eltern
.bcmb
[1] = new JRtaComboBox(new String
[] {"","0","1","3","4","5","9"});
1162 eltern
.bcmb
[1].setName("ARBFAE");
1163 tit
.add(eltern
.bcmb
[1],cctit
.xy(10, 2));
1165 entlay
= new FormLayout("p,2dlu,p","p,p,p,p,p,p,p,p,p, p, p, p,p,p");
1166 ent
= new PanelBuilder(entlay
);
1167 ent
.getPanel().setOpaque(false);
1168 ccent
= new CellConstraints();
1169 lab
= getLabel("ARBEITS-");
1170 lab
.setForeground(Color
.RED
);
1171 ent
.add(lab
,ccent
.xyw(1, 1,3));
1172 lab
= getLabel("FÄHIGKEIT");
1173 lab
.setForeground(Color
.RED
);
1174 ent
.add(lab
,ccent
.xyw(1, 2,3));
1175 ent
.add(getLabel("0 = "),ccent
.xy(1,3));
1176 ent
.add(getLabel("Maßnahme nicht ordnungsg."),ccent
.xy(3,3));
1177 ent
.add(getLabel("abgeschlossen, gestorben"),ccent
.xy(3,4));
1178 ent
.add(getLabel("1 = "),ccent
.xy(1,5));
1179 ent
.add(getLabel("arbeitsfähig"),ccent
.xy(3,5));
1180 ent
.add(getLabel("3 = "),ccent
.xy(1,6));
1181 ent
.add(getLabel("arbeitsunfähig"),ccent
.xy(3,6));
1182 ent
.add(getLabel("4 = "),ccent
.xy(1,7));
1183 ent
.add(getLabel("Kinder-Reha"),ccent
.xy(3,7));
1184 ent
.add(getLabel("5 = "),ccent
.xy(1,8));
1185 ent
.add(getLabel("Hausfrau/Hausmann"),ccent
.xy(3,8));
1186 ent
.add(getLabel("9 = "),ccent
.xy(1,9));
1187 ent
.add(getLabel("Beurteilung nicht erforderlich"),ccent
.xy(3,9));
1188 ent
.add(getLabel("(Altersrente, Angehörige)"),ccent
.xy(3,10));
1189 tit
.add(ent
.getPanel(),cctit
.xywh(12,2,1,6));
1191 /***************************/
1193 FormLayout lay2015
= new FormLayout("25dlu,2dlu,p:g",
1197 //"4dlu,p, 5dlu, p, 5dlu, p, 0dlu:g, 2dlu, p, 30dlu, 2dlu, p, 30dlu, 2dlu, p ,30dlu,4dlu");
1198 PanelBuilder tit2015
= new PanelBuilder(lay2015
);
1199 //tit.setBorder(BorderFactory.createLineBorder(Color.BLACK));
1200 tit2015
.setOpaque(false);
1201 CellConstraints cctit2015
= new CellConstraints();
1202 tit2015
.getPanel().validate();
1203 eltern
.bcmb
[18] = new JRtaComboBox(vorherau
);
1204 eltern
.bcmb
[18].setName("F_124");
1205 //tit.add(eltern.bcmb[18],cctit.xy(14,2));
1206 tit2015
.add(eltern
.bcmb
[18],cctit2015
.xy(1,1,CellConstraints
.DEFAULT
,CellConstraints
.TOP
));
1208 entlay
= new FormLayout("p,2dlu,fill:0:grow(1.0)","p,p,p,p,p,p,p,p");
1209 ent
= new PanelBuilder(entlay
);
1210 ent
.getPanel().setOpaque(false);
1211 ccent
= new CellConstraints();
1212 lab
= getLabel ("AU-ZEITEN");
1213 lab
.setForeground(Color
.RED
);
1214 ent
.add(lab
,ccent
.xyw(1, 1,3));
1215 ent
.add(getLabel("innerhalb der letzten"),ccent
.xyw(1,2,3 ));
1216 ent
.add(getLabel("12 Monate vor Aufnahme"),ccent
.xyw(1,3,3 ));
1217 ent
.add(getLabel("0 = "),ccent
.xy(1,4 ));
1218 ent
.add(getLabel("keine"),ccent
.xy(3,4,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1219 ent
.add(getLabel("1 = "),ccent
.xy(1,5 ));
1220 ent
.add(getLabel("bis unter 3 Monate"),ccent
.xy(3,5,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1221 ent
.add(getLabel("2 = "),ccent
.xy(1,6 ));
1222 ent
.add(getLabel("3 bis unter 6 Monate"),ccent
.xy(3,6,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1223 ent
.add(getLabel("3 = "),ccent
.xy(1,7 ));
1224 ent
.add(getLabel("6 und mehr Monate"),ccent
.xy(3,7,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1225 ent
.add(getLabel("9 = "),ccent
.xy(1,8 ));
1226 ent
.add(getLabel("nicht erwerbstätig"),ccent
.xy(3,8,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1227 ent
.getPanel().validate();
1228 tit2015
.add(ent
.getPanel(),cctit2015
.xy(3,1));
1231 //tit.add(tit2015.getPanel(),cctit.xywh(14,2,2,6,CellConstraints.LEFT,CellConstraints.TOP));
1233 eltern
.bcmb
[19] = new JRtaComboBox(new String
[] {"","1","2"});
1234 eltern
.bcmb
[19].setName("DMP");
1235 tit2015
.add(eltern
.bcmb
[19],cctit2015
.xy(1,3,CellConstraints
.DEFAULT
,CellConstraints
.TOP
));
1236 // 1 2 3 4 5 6 7 8 9
1237 entlay
= new FormLayout("p,2dlu,fill:0:grow(1.0)","p,p,p,p,p,p,p,p,p");
1238 ent
= new PanelBuilder(entlay
);
1239 ent
.getPanel().setOpaque(false);
1240 ccent
= new CellConstraints();
1241 lab
= getLabel ("AU bei AUFNAHME");
1242 lab
.setForeground(Color
.RED
);
1243 ent
.add(lab
,ccent
.xyw(1, 1,3));
1244 ent
.add(getLabel("1 = "),ccent
.xy(1,2 ));
1245 ent
.add(getLabel("ja"),ccent
.xy(3,2,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1246 ent
.add(getLabel("2 = "),ccent
.xy(1,3 ));
1247 ent
.add(getLabel("nein"),ccent
.xy(3,3,CellConstraints
.LEFT
,CellConstraints
.DEFAULT
));
1248 ent
.getPanel().validate();
1249 tit2015
.add(ent
.getPanel(),cctit2015
.xy(3,3));
1251 tit2015
.getPanel().validate();
1252 tit
.add(tit2015
.getPanel(),cctit
.xywh(14,2,2,6,CellConstraints
.LEFT
,CellConstraints
.TOP
));
1255 //tit.add(ent.getPanel(),cctit.xywh(16,2,1,6,CellConstraints.FILL,CellConstraints.TOP));
1256 return tit
.getPanel();
1260 /*************************************************/
1262 private JPanel
getBlock3Komplett(){
1263 //insgesamt 610 1 diag 3 icd-10 5 Seite 7 Sicher 9 Ergeb. 11 Y-Label
1264 FormLayout laytit
= new FormLayout("4dlu,230dlu,5dlu,55dlu, 10dlu, 40dlu, 5dlu, 40dlu, 5dlu,40dlu,10dlu,140dlu,4dlu",
1265 // dia1 dia2 dia3 dia4 dia5
1266 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
1267 "4dlu,p, p, 30dlu, 2dlu,p, 30dlu, 2dlu, p, 30dlu, 2dlu, p, 30dlu, 2dlu, p ,30dlu,4dlu, p, 30dlu,4dlu");
1268 PanelBuilder tit
= new PanelBuilder(laytit
);
1269 tit
.setBorder(BorderFactory
.createLineBorder(Color
.BLACK
));
1270 tit
.setOpaque(false);
1271 CellConstraints cctit
= new CellConstraints();
1272 JLabel lab
= getLabel("DIAGNOSEN");
1273 lab
.setForeground(Color
.RED
);
1274 tit
.add(lab
,cctit
.xy(2,2));
1275 lab
= getLabel("1.");
1276 lab
.setForeground(Color
.RED
);
1277 tit
.add(lab
,cctit
.xy(2,3));
1278 lab
= getLabel("Diagnoseschlüssel");
1279 lab
.setForeground(Color
.RED
);
1280 tit
.add(lab
,cctit
.xy(4,3));
1281 lab
= getLabel("Seiten-");
1282 lab
.setForeground(Color
.RED
);
1283 tit
.add(lab
,cctit
.xy(6,3));
1284 lab
= getLabel("Diagn.");
1285 lab
.setForeground(Color
.RED
);
1286 tit
.add(lab
,cctit
.xy(8,3));
1287 lab
= getLabel("Beh.");
1288 lab
.setForeground(Color
.RED
);
1289 tit
.add(lab
,cctit
.xy(10,3));
1290 lab
= getLabel("SEITENLOKALISATION");
1291 lab
.setForeground(Color
.RED
);
1292 tit
.add(lab
,cctit
.xy(12,3));
1293 eltern
.bta
[0] = new JTextArea();
1294 eltern
.bta
[0].setName("DIAG1");
1295 tit
.add(eltern
.bta
[0],cctit
.xy(2, 4,CellConstraints
.FILL
,CellConstraints
.FILL
));
1297 /**********Diagnose 1**********************/
1299 FormLayout entlay
= new FormLayout("55dlu","p,p,p");
1300 PanelBuilder ent
= new PanelBuilder(entlay
);
1301 ent
.getPanel().setOpaque(false);
1302 CellConstraints ccent
= new CellConstraints();
1303 lab
= getLabel ("ICD10 - GM");
1304 lab
.setForeground(Color
.RED
);
1305 ent
.add(lab
,ccent
.xy(1, 1));
1306 lab
= getLabel("74");
1307 lab
.setForeground(Color
.RED
);
1308 ent
.add(lab
,ccent
.xy(1, 2));
1309 eltern
.btf
[17] = new JRtaTextField("GROSS",false);
1310 eltern
.btf
[17].setName("F_74");
1311 ent
.add(eltern
.btf
[17],ccent
.xy(1, 3));
1312 tit
.add(ent
.getPanel(),cctit
.xy(4, 4,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1314 entlay
= new FormLayout("40dlu:g","p,p,p");
1315 ent
= new PanelBuilder(entlay
);
1316 ent
.getPanel().setOpaque(false);
1317 ccent
= new CellConstraints();
1318 lab
= getLabel("lokalis.");
1319 lab
.setForeground(Color
.RED
);
1320 ent
.add(lab
,ccent
.xy(1, 1));
1321 lab
= getLabel("79");
1322 lab
.setForeground(Color
.RED
);
1323 ent
.add(lab
,ccent
.xy(1, 2));
1324 eltern
.bcmb
[2] = new JRtaComboBox(seite
);
1325 eltern
.bcmb
[2].setName("F_79");
1326 ent
.add(eltern
.bcmb
[2],ccent
.xy(1, 3));
1327 tit
.add(ent
.getPanel(),cctit
.xy(6, 4,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1329 entlay
= new FormLayout("40dlu:g","p,p,p");
1330 ent
= new PanelBuilder(entlay
);
1331 ent
.getPanel().setOpaque(false);
1332 ccent
= new CellConstraints();
1333 lab
= getLabel("sicherh.");
1334 lab
.setForeground(Color
.RED
);
1335 ent
.add(lab
,ccent
.xy(1, 1));
1336 lab
= getLabel("80");
1337 lab
.setForeground(Color
.RED
);
1338 ent
.add(lab
,ccent
.xy(1, 2));
1339 eltern
.bcmb
[3] = new JRtaComboBox(sicher
);
1340 eltern
.bcmb
[3].setName("F_80");
1341 ent
.add(eltern
.bcmb
[3],ccent
.xy(1, 3));
1342 tit
.add(ent
.getPanel(),cctit
.xy(8, 4,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1344 entlay
= new FormLayout("40dlu:g","p,p,p");
1345 ent
= new PanelBuilder(entlay
);
1346 ent
.getPanel().setOpaque(false);
1347 ccent
= new CellConstraints();
1348 lab
= getLabel("Ergebn.");
1349 lab
.setForeground(Color
.RED
);
1350 ent
.add(lab
,ccent
.xy(1, 1));
1351 lab
= getLabel("81");
1352 lab
.setForeground(Color
.RED
);
1353 ent
.add(lab
,ccent
.xy(1, 2));
1354 eltern
.bcmb
[4] = new JRtaComboBox(erfolg
);
1355 eltern
.bcmb
[4].setName("F_81");
1356 ent
.add(eltern
.bcmb
[4],ccent
.xy(1, 3));
1357 tit
.add(ent
.getPanel(),cctit
.xy(10, 4,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1359 /**********Diagnose 2**********************/
1361 lab
= getLabel("2.");
1362 lab
.setForeground(Color
.RED
);
1363 tit
.add(lab
,cctit
.xy(2,6));
1364 eltern
.bta
[1] = new JTextArea();
1365 eltern
.bta
[1].setName("DIAG2");
1366 tit
.add(eltern
.bta
[1],cctit
.xy(2, 7,CellConstraints
.FILL
,CellConstraints
.FILL
));
1368 entlay
= new FormLayout("55dlu","p,p,p");
1369 ent
= new PanelBuilder(entlay
);
1370 ent
.getPanel().setOpaque(false);
1371 ccent
= new CellConstraints();
1372 lab
= getLabel("82");
1373 lab
.setForeground(Color
.RED
);
1374 ent
.add(lab
,ccent
.xy(1, 2));
1375 eltern
.btf
[18] = new JRtaTextField("GROSS",false);
1376 eltern
.btf
[18].setName("F_82");
1377 ent
.add(eltern
.btf
[18],ccent
.xy(1, 3));
1378 tit
.add(ent
.getPanel(),cctit
.xy(4, 7,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1380 entlay
= new FormLayout("40dlu","p,p,p");
1381 ent
= new PanelBuilder(entlay
);
1382 ent
.getPanel().setOpaque(false);
1383 ccent
= new CellConstraints();
1384 lab
= getLabel("87");
1385 lab
.setForeground(Color
.RED
);
1386 ent
.add(lab
,ccent
.xy(1, 2));
1387 eltern
.bcmb
[5] = new JRtaComboBox(seite
);
1388 eltern
.bcmb
[5].setName("F_87");
1389 ent
.add(eltern
.bcmb
[5],ccent
.xy(1, 3));
1390 tit
.add(ent
.getPanel(),cctit
.xy(6, 7,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1392 entlay
= new FormLayout("40dlu","p,p,p");
1393 ent
= new PanelBuilder(entlay
);
1394 ent
.getPanel().setOpaque(false);
1395 ccent
= new CellConstraints();
1396 lab
= getLabel("88");
1397 lab
.setForeground(Color
.RED
);
1398 ent
.add(lab
,ccent
.xy(1, 2));
1399 eltern
.bcmb
[6] = new JRtaComboBox(sicher
);
1400 eltern
.bcmb
[6].setName("F_88");
1401 ent
.add(eltern
.bcmb
[6],ccent
.xy(1, 3));
1402 tit
.add(ent
.getPanel(),cctit
.xy(8, 7,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1404 entlay
= new FormLayout("40dlu","p,p,p");
1405 ent
= new PanelBuilder(entlay
);
1406 ent
.getPanel().setOpaque(false);
1407 ccent
= new CellConstraints();
1408 lab
= getLabel("89");
1409 lab
.setForeground(Color
.RED
);
1410 ent
.add(lab
,ccent
.xy(1, 2));
1411 eltern
.bcmb
[7] = new JRtaComboBox(erfolg
);
1412 eltern
.bcmb
[7].setName("F_89");
1413 ent
.add(eltern
.bcmb
[7],ccent
.xy(1, 3));
1414 tit
.add(ent
.getPanel(),cctit
.xy(10, 7,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1416 /**********Diagnose 3**********************/
1418 lab
= getLabel("3.");
1419 lab
.setForeground(Color
.RED
);
1420 tit
.add(lab
,cctit
.xy(2,9));
1421 eltern
.bta
[2] = new JTextArea();
1422 eltern
.bta
[2].setName("DIAG3");
1423 tit
.add(eltern
.bta
[2],cctit
.xy(2, 10,CellConstraints
.FILL
,CellConstraints
.FILL
));
1425 entlay
= new FormLayout("55dlu","p,p,p");
1426 ent
= new PanelBuilder(entlay
);
1427 ent
.getPanel().setOpaque(false);
1428 ccent
= new CellConstraints();
1429 lab
= getLabel("90");
1430 lab
.setForeground(Color
.RED
);
1431 ent
.add(lab
,ccent
.xy(1, 2));
1432 eltern
.btf
[19] = new JRtaTextField("GROSS",false);
1433 eltern
.btf
[19].setName("F_90");
1434 ent
.add(eltern
.btf
[19],ccent
.xy(1, 3));
1435 tit
.add(ent
.getPanel(),cctit
.xy(4, 10,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1437 entlay
= new FormLayout("40dlu","p,p,p");
1438 ent
= new PanelBuilder(entlay
);
1439 ent
.getPanel().setOpaque(false);
1440 ccent
= new CellConstraints();
1441 lab
= getLabel("95");
1442 lab
.setForeground(Color
.RED
);
1443 ent
.add(lab
,ccent
.xy(1, 2));
1444 eltern
.bcmb
[8] = new JRtaComboBox(seite
);
1445 eltern
.bcmb
[8].setName("F_95");
1446 ent
.add(eltern
.bcmb
[8],ccent
.xy(1, 3));
1447 tit
.add(ent
.getPanel(),cctit
.xy(6, 10,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1449 entlay
= new FormLayout("40dlu","p,p,p");
1450 ent
= new PanelBuilder(entlay
);
1451 ent
.getPanel().setOpaque(false);
1452 ccent
= new CellConstraints();
1453 lab
= getLabel("96");
1454 lab
.setForeground(Color
.RED
);
1455 ent
.add(lab
,ccent
.xy(1, 2));
1456 eltern
.bcmb
[9] = new JRtaComboBox(sicher
);
1457 eltern
.bcmb
[9].setName("F_96");
1458 ent
.add(eltern
.bcmb
[9],ccent
.xy(1, 3));
1459 tit
.add(ent
.getPanel(),cctit
.xy(8, 10,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1461 entlay
= new FormLayout("40dlu","p,p,p");
1462 ent
= new PanelBuilder(entlay
);
1463 ent
.getPanel().setOpaque(false);
1464 ccent
= new CellConstraints();
1465 lab
= getLabel("97");
1466 lab
.setForeground(Color
.RED
);
1467 ent
.add(lab
,ccent
.xy(1, 2));
1468 eltern
.bcmb
[10] = new JRtaComboBox(erfolg
);
1469 eltern
.bcmb
[10].setName("F_97");
1470 ent
.add(eltern
.bcmb
[10],ccent
.xy(1, 3));
1471 tit
.add(ent
.getPanel(),cctit
.xy(10, 10,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1473 /**********Diagnose 4**********************/
1475 lab
= getLabel("4.");
1476 lab
.setForeground(Color
.RED
);
1477 tit
.add(lab
,cctit
.xy(2,12));
1478 eltern
.bta
[3] = new JTextArea();
1479 //AbstractDocument doc = (AbstractDocument)eltern.bta[3].getDocument();
1480 //doc.setDocumentFilter(new DocumentLineLengthFilter(40));
1482 eltern
.bta
[3].setName("DIAG4");
1483 tit
.add(eltern
.bta
[3],cctit
.xy(2, 13,CellConstraints
.FILL
,CellConstraints
.FILL
));
1485 entlay
= new FormLayout("55dlu","p,p,p");
1486 ent
= new PanelBuilder(entlay
);
1487 ent
.getPanel().setOpaque(false);
1488 ccent
= new CellConstraints();
1489 lab
= getLabel("98");
1490 lab
.setForeground(Color
.RED
);
1491 ent
.add(lab
,ccent
.xy(1, 2));
1492 eltern
.btf
[20] = new JRtaTextField("GROSS",false);
1493 eltern
.btf
[20].setName("F_98");
1494 ent
.add(eltern
.btf
[20],ccent
.xy(1, 3));
1495 tit
.add(ent
.getPanel(),cctit
.xy(4, 13,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1497 entlay
= new FormLayout("40dlu","p,p,p");
1498 ent
= new PanelBuilder(entlay
);
1499 ent
.getPanel().setOpaque(false);
1500 ccent
= new CellConstraints();
1501 lab
= getLabel("103");
1502 lab
.setForeground(Color
.RED
);
1503 ent
.add(lab
,ccent
.xy(1, 2));
1504 eltern
.bcmb
[11] = new JRtaComboBox(seite
);
1505 eltern
.bcmb
[11].setName("F_103");
1506 ent
.add(eltern
.bcmb
[11],ccent
.xy(1, 3));
1507 tit
.add(ent
.getPanel(),cctit
.xy(6, 13,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1509 entlay
= new FormLayout("40dlu","p,p,p");
1510 ent
= new PanelBuilder(entlay
);
1511 ent
.getPanel().setOpaque(false);
1512 ccent
= new CellConstraints();
1513 lab
= getLabel("104");
1514 lab
.setForeground(Color
.RED
);
1515 ent
.add(lab
,ccent
.xy(1, 2));
1516 eltern
.bcmb
[12] = new JRtaComboBox(sicher
);
1517 eltern
.bcmb
[12].setName("F_104");
1518 ent
.add(eltern
.bcmb
[12],ccent
.xy(1, 3));
1519 tit
.add(ent
.getPanel(),cctit
.xy(8, 13,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1521 entlay
= new FormLayout("40dlu","p,p,p");
1522 ent
= new PanelBuilder(entlay
);
1523 ent
.getPanel().setOpaque(false);
1524 ccent
= new CellConstraints();
1525 lab
= getLabel("105");
1526 lab
.setForeground(Color
.RED
);
1527 ent
.add(lab
,ccent
.xy(1, 2));
1528 eltern
.bcmb
[13] = new JRtaComboBox(erfolg
);
1529 eltern
.bcmb
[13].setName("F_105");
1530 ent
.add(eltern
.bcmb
[13],ccent
.xy(1, 3));
1531 tit
.add(ent
.getPanel(),cctit
.xy(10, 13,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1533 /**********Diagnose 5**********************/
1535 lab
= getLabel("5.");
1536 lab
.setForeground(Color
.RED
);
1537 tit
.add(lab
,cctit
.xy(2,15));
1538 eltern
.bta
[4] = new JTextArea();
1539 eltern
.bta
[4].setName("DIAG5");
1540 tit
.add(eltern
.bta
[4],cctit
.xy(2, 16,CellConstraints
.FILL
,CellConstraints
.FILL
));
1542 entlay
= new FormLayout("55dlu","p,p,p");
1543 ent
= new PanelBuilder(entlay
);
1544 ent
.getPanel().setOpaque(false);
1545 ccent
= new CellConstraints();
1546 lab
= getLabel("106");
1547 lab
.setForeground(Color
.RED
);
1548 ent
.add(lab
,ccent
.xy(1, 2));
1549 eltern
.btf
[21] = new JRtaTextField("GROSS",false);
1550 eltern
.btf
[21].setName("F_106");
1551 ent
.add(eltern
.btf
[21],ccent
.xy(1, 3));
1552 tit
.add(ent
.getPanel(),cctit
.xy(4, 16,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1554 entlay
= new FormLayout("40dlu","p,p,p");
1555 ent
= new PanelBuilder(entlay
);
1556 ent
.getPanel().setOpaque(false);
1557 ccent
= new CellConstraints();
1558 lab
= getLabel("111");
1559 lab
.setForeground(Color
.RED
);
1560 ent
.add(lab
,ccent
.xy(1, 2));
1561 eltern
.bcmb
[14] = new JRtaComboBox(seite
);
1562 eltern
.bcmb
[14].setName("F_111");
1563 ent
.add(eltern
.bcmb
[14],ccent
.xy(1, 3));
1564 tit
.add(ent
.getPanel(),cctit
.xy(6, 16,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1566 entlay
= new FormLayout("40dlu","p,p,p");
1567 ent
= new PanelBuilder(entlay
);
1568 ent
.getPanel().setOpaque(false);
1569 ccent
= new CellConstraints();
1570 lab
= getLabel("112");
1571 lab
.setForeground(Color
.RED
);
1572 ent
.add(lab
,ccent
.xy(1, 2));
1573 eltern
.bcmb
[15] = new JRtaComboBox(sicher
);
1574 eltern
.bcmb
[15].setName("F_112");
1575 ent
.add(eltern
.bcmb
[15],ccent
.xy(1, 3));
1576 tit
.add(ent
.getPanel(),cctit
.xy(8, 16,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1578 entlay
= new FormLayout("40dlu","p,p,p");
1579 ent
= new PanelBuilder(entlay
);
1580 ent
.getPanel().setOpaque(false);
1581 ccent
= new CellConstraints();
1582 lab
= getLabel("113");
1583 lab
.setForeground(Color
.RED
);
1584 ent
.add(lab
,ccent
.xy(1, 2));
1585 eltern
.bcmb
[16] = new JRtaComboBox(erfolg
);
1586 eltern
.bcmb
[16].setName("F_113");
1587 ent
.add(eltern
.bcmb
[16],ccent
.xy(1, 3));
1588 tit
.add(ent
.getPanel(),cctit
.xy(10, 16,CellConstraints
.LEFT
,CellConstraints
.BOTTOM
));
1589 // 4 5 6 7 8 9 10 11
1590 entlay
= new FormLayout("140dlu","p,p,p,40dlu,p,p,p,p,p,40dlu,p,p,p,p,p,p");
1591 ent
= new PanelBuilder(entlay
);
1592 ent
.getPanel().setOpaque(false);
1593 ccent
= new CellConstraints();
1594 ent
.add(getLabel("R = rechts"),ccent
.xy(1,1));
1595 ent
.add(getLabel("L = links"),ccent
.xy(1,2));
1596 ent
.add(getLabel("B = beidseits"),ccent
.xy(1,3));
1597 lab
= getLabel("DIAGNOSESICHERHEIT");
1598 lab
.setForeground(Color
.RED
);
1599 ent
.add(lab
,ccent
.xy(1,5));
1600 ent
.add(getLabel("A = ausgeschlossen"),ccent
.xy(1,6));
1601 ent
.add(getLabel("V = Verdachtsdiagnose"),ccent
.xy(1,7));
1602 ent
.add(getLabel("Z = Zustand nach"),ccent
.xy(1,8));
1603 ent
.add(getLabel("G = gesicherten Diagnose"),ccent
.xy(1,9));
1604 lab
= getLabel("BEHANDLUNGS-");
1605 lab
.setForeground(Color
.RED
);
1606 ent
.add(lab
,ccent
.xy(1,11));
1607 lab
= getLabel("ERGEBNIS");
1608 lab
.setForeground(Color
.RED
);
1609 ent
.add(lab
,ccent
.xy(1,12));
1610 ent
.add(getLabel("0 = 1-3 triff nicht zu"),ccent
.xy(1,13));
1611 ent
.add(getLabel("1 = gebessert"),ccent
.xy(1,14));
1612 ent
.add(getLabel("2 = unverändert"),ccent
.xy(1,15));
1613 ent
.add(getLabel("3 = verschlechtert"),ccent
.xy(1,16));
1614 tit
.add(ent
.getPanel(),cctit
.xywh(12, 4,1,14,CellConstraints
.LEFT
,CellConstraints
.TOP
));
1616 /**********Diagnose 6**********************/
1617 lab
= getLabel("6. (Diagnose 6 = weitere Diagnose ohne Verschlüsselung)");
1618 lab
.setForeground(Color
.RED
);
1619 tit
.add(lab
,cctit
.xy(2,18));
1620 eltern
.bta
[10] = new JTextArea();
1621 eltern
.bta
[10].setName("DIAG6");
1622 tit
.add(eltern
.bta
[10],cctit
.xyw(2, 19,9,CellConstraints
.FILL
,CellConstraints
.FILL
));
1625 return tit
.getPanel();
1627 /***************************************************/
1628 private JPanel
getBlock2Links(){ //1 2 3 4 5 6 7
1629 FormLayout laytit
= new FormLayout("4dlu,55dlu,5dlu,55dlu, 5dlu, 50dlu,4dlu",
1630 // 3=Vnr. 5=Name 7=geb 9=stras
1631 // 1 2 3 4 5 6 7 8 9
1632 "0dlu,p, p, 2dlu, p, 2dlu, p, p, p,"+
1633 //11=PLZ 13=Vers.Name
1635 "p, p, p, p, 4dlu");
1637 PanelBuilder tit
= new PanelBuilder(laytit
);
1638 //tit.setBorder(BorderFactory.createLineBorder(Color.BLACK));
1639 tit
.setOpaque(false);
1640 CellConstraints cctit
= new CellConstraints();
1641 JLabel lab
= getLabel("Aufnahmedatum");
1642 lab
.setForeground(Color
.RED
);
1643 tit
.add(lab
,cctit
.xy(2,2));
1644 lab
= getLabel("Entlassdatum");
1645 lab
.setForeground(Color
.RED
);
1646 tit
.add(lab
,cctit
.xy(4,2));
1647 eltern
.btf
[11] = new JRtaTextField("DATUM",false);
1648 eltern
.btf
[11].setName("AUFDAT1");
1649 eltern
.btf
[11].setEnabled(false);
1650 eltern
.btf
[12] = new JRtaTextField("DATUM",false);
1651 eltern
.btf
[12].setName("ENTDAT1");
1652 eltern
.btf
[12].setEnabled(false);
1653 eltern
.btf
[13] = new JRtaTextField("DATUM",false);
1654 eltern
.btf
[13].setName("AUFDAT2");
1655 eltern
.btf
[13].setEnabled(false);
1656 eltern
.btf
[14] = new JRtaTextField("DATUM",false);
1657 eltern
.btf
[14].setName("ENTDAT2");
1658 eltern
.btf
[14].setEnabled(false);
1659 eltern
.btf
[15] = new JRtaTextField("DATUM",false);
1660 eltern
.btf
[15].setName("AUFDAT3");
1661 eltern
.btf
[15].setEnabled(true);
1662 eltern
.btf
[16] = new JRtaTextField("DATUM",false);
1663 eltern
.btf
[16].setName("ENTDAT3");
1664 eltern
.btf
[16].setEnabled(true);
1666 tit
.add(eltern
.btf
[15],cctit
.xy(2,3));
1667 tit
.add(eltern
.btf
[16],cctit
.xy(4,3));
1670 tit.add(eltern.btf[11],cctit.xy(2,3));
1671 tit.add(eltern.btf[12],cctit.xy(4,3));
1672 tit.add(eltern.btf[13],cctit.xy(2,7));
1673 tit.add(eltern.btf[14],cctit.xy(4,7));
1674 tit.add(eltern.btf[15],cctit.xy(2,5));
1675 tit.add(eltern.btf[16],cctit.xy(4,5));
1677 lab = getLabel("stationär");
1678 lab.setForeground(Color.RED);
1679 tit.add(lab,cctit.xy(6,3));
1680 lab = getLabel("ganztägig ambulant");
1681 lab.setForeground(Color.RED);
1682 tit.add(lab,cctit.xy(6,5));
1683 lab = getLabel("ambulant");
1684 lab.setForeground(Color.RED);
1685 tit.add(lab,cctit.xy(6,7));
1687 return tit
.getPanel();
1689 /***************************************************/
1690 /***********************************************/
1691 /***************************************************/
1692 private JPanel
getBlock2Rechts(){ //1 2 3 4 5 6 7 8 9
1693 FormLayout laytit
= new FormLayout("0dlu,25dlu,2dlu,140dlu,20dlu,25dlu,2dlu,140dlu,4dlu",
1694 // 3=Vnr. 5=Name 7=geb 9=stras
1695 // 1 2 3 4 5 6 7 8 9
1696 "0dlu,p, 1dlu, p, p:g, p, p, p, p,"+
1697 //11=PLZ 13=Vers.Name
1699 "p, p, p, p, 4dlu");
1701 PanelBuilder tit
= new PanelBuilder(laytit
);
1702 //tit.setBorder(BorderFactory.createLineBorder(Color.BLACK));
1703 tit
.setOpaque(false);
1704 CellConstraints cctit
= new CellConstraints();
1706 JLabel lab
= getLabel("ART DER DURCHFÜHRUNG");
1707 lab
.setForeground(Color
.RED
);
1708 tit
.add(lab
,cctit
.xy(4, 2));
1710 lab
= getLabel("BESONDERE BEHANDLUNGSFORMEN");
1711 lab
.setForeground(Color
.RED
);
1712 tit
.add(lab
,cctit
.xy(8, 2));
1714 eltern
.bcmb
[20] = new JRtaComboBox(new String
[] {"","1","2","3"});
1715 eltern
.bcmb
[20].setName("F_114");
1716 tit
.add(eltern
.bcmb
[20],cctit
.xy(2, 4));
1717 // 1 2 3 4 5 6 7 8 9 10 11 12
1718 FormLayout entlay
= new FormLayout("p,2dlu,p","p,p,p,p,p,p,p,p,p, p, p, p");
1719 PanelBuilder ent
= new PanelBuilder(entlay
);
1720 ent
.getPanel().setOpaque(false);
1721 CellConstraints ccent
= new CellConstraints();
1722 ent
.add(getLabel("1 = "),ccent
.xy(1,1));
1723 ent
.add(getLabel("stationär"),ccent
.xy(3,1));
1724 ent
.add(getLabel("2 = "),ccent
.xy(1,2));
1725 ent
.add(getLabel("ganztägig ambulant"),ccent
.xy(3,2));
1726 ent
.add(getLabel("3 = "),ccent
.xy(1,3));
1727 ent
.add(getLabel("ambulant"),ccent
.xy(3,3));
1730 tit
.add(ent
.getPanel(),cctit
.xywh(4,4,1,2));
1732 eltern
.bcmb
[21] = new JRtaComboBox(new String
[] {"","0","1","2","3","9"});
1733 eltern
.bcmb
[21].setName("F_117");
1734 tit
.add(eltern
.bcmb
[21],cctit
.xy(6, 4));
1736 entlay
= new FormLayout("p,2dlu,p","p,p,p,p,p,p,p,p,p, p, p, p");
1737 ent
= new PanelBuilder(entlay
);
1738 ent
.getPanel().setOpaque(false);
1739 ccent
= new CellConstraints();
1740 ent
.add(getLabel("0 = "),ccent
.xy(1,1));
1741 ent
.add(getLabel("keine"),ccent
.xy(3,1));
1742 ent
.add(getLabel("1 = "),ccent
.xy(1,2));
1743 ent
.add(getLabel("MBOR"),ccent
.xy(3,2));
1744 ent
.add(getLabel("2 = "),ccent
.xy(1,3));
1745 ent
.add(getLabel("VMO"),ccent
.xy(3,3));
1746 ent
.add(getLabel("3 = "),ccent
.xy(1,4));
1747 ent
.add(getLabel("VOR"),ccent
.xy(3,4));
1748 ent
.add(getLabel("9 = "),ccent
.xy(1,5));
1749 ent
.add(getLabel("Sonstige"),ccent
.xy(3,5));
1751 ent.add(getLabel("9 = "),ccent.xy(1,7));
1752 ent.add(getLabel("Beurteilung nicht erforderlich"),ccent.xy(3,7));
1753 ent.add(getLabel("(Altersrente, Angehörige)"),ccent.xy(3,8));
1755 tit
.add(ent
.getPanel(),cctit
.xywh(8,4,1,2));
1758 return tit
.getPanel();
1761 /***********************************************/
1763 private JPanel
getBlock1Links(){ //1 2 3 4 5 6 7 8
1764 FormLayout laytit
= new FormLayout("4dlu,55dlu,2dlu,80dlu,40dlu,50dlu,4dlu,4dlu",
1765 // 3=Vnr. 5=Name 7=geb 9=stras
1766 // 1 2 3 4 5 6 7 8 9
1767 "4dlu,p, p, p, p, p, p, p, p,"+
1768 //11=PLZ 13=Vers.Name
1770 "p, p, p, p, 4dlu");
1772 PanelBuilder tit
= new PanelBuilder(laytit
);
1773 tit
.setBorder(BorderFactory
.createLineBorder(Color
.BLACK
));
1774 tit
.setOpaque(false);
1775 CellConstraints cctit
= new CellConstraints();
1776 JLabel lab
= getLabel("Versicherungsnummer:");
1777 lab
.setForeground(Color
.RED
);
1778 tit
.add(lab
,cctit
.xyw(2,2,3));
1779 lab
= getLabel("AIGR/BKZ");
1780 lab
.setForeground(Color
.RED
);
1781 tit
.add(lab
,cctit
.xy(6,2));
1783 eltern
.btf
[0] = new JRtaTextField("GROSS",false);
1784 eltern
.btf
[0].setName("VNUMMER");
1785 tit
.add(eltern
.btf
[0],cctit
.xyw(2,3,3));
1786 eltern
.btf
[1] = new JRtaTextField("GROSS",false);
1787 eltern
.btf
[1].setName("AIGR");
1788 tit
.add(eltern
.btf
[1],cctit
.xy(6,3));
1790 lab
= getLabel ("Name, Vorname:");
1791 lab
.setForeground(Color
.RED
);
1792 tit
.add(lab
,cctit
.xyw(2,4,3));
1793 eltern
.btf
[2] = new JRtaTextField("nix",false);
1794 eltern
.btf
[2].setName("NAMEVOR");
1795 tit
.add(eltern
.btf
[2],cctit
.xyw(2,5,5));
1797 lab
= getLabel ("Geburtsdatum:");
1798 lab
.setForeground(Color
.RED
);
1799 tit
.add(lab
,cctit
.xyw(2,6,3));
1800 eltern
.btf
[3] = new JRtaTextField("DATUM",false);
1801 eltern
.btf
[3].setName("GEBOREN");
1802 tit
.add(eltern
.btf
[3],cctit
.xy(2,7));
1803 tit
.add(getLabel("(Sofern nicht in Vers. Nr. enthalten)"),cctit
.xyw(4,7,3));
1805 lab
= getLabel ("Straße,Hausnummer:");
1806 lab
.setForeground(Color
.RED
);
1807 tit
.add(lab
,cctit
.xyw(2,8,3));
1808 eltern
.btf
[4] = new JRtaTextField("nix",false);
1809 eltern
.btf
[4].setName("STRASSE");
1810 tit
.add(eltern
.btf
[4],cctit
.xyw(2,9,5));
1812 lab
= getLabel ("Postleitzahl:");
1813 lab
.setForeground(Color
.RED
);
1814 tit
.add(lab
,cctit
.xy(2,10));
1815 lab
= getLabel ("Wohnort");
1816 lab
.setForeground(Color
.RED
);
1817 tit
.add(lab
,cctit
.xy(4,10));
1818 eltern
.btf
[5] = new JRtaTextField("ZAHLEN",false);
1819 eltern
.btf
[5].setName("PLZ");
1820 tit
.add(eltern
.btf
[5],cctit
.xy(2,11));
1821 eltern
.btf
[6] = new JRtaTextField("nix",false);
1822 eltern
.btf
[6].setName("ORT");
1823 tit
.add(eltern
.btf
[6],cctit
.xyw(4,11,3));
1825 lab
= getLabel("Versicherter (Name, Vorname) falls nicht mit Patient indentisch");
1826 lab
.setForeground(Color
.RED
);
1827 tit
.add(lab
,cctit
.xyw(2,12,5));
1828 eltern
.btf
[7] = new JRtaTextField("nix",false);
1829 eltern
.btf
[7].setName("VNAMEVO");
1830 tit
.add(eltern
.btf
[7],cctit
.xyw(2,13,5));
1831 tit
.getPanel().validate();
1832 return tit
.getPanel();
1835 /***********************************************/
1836 private JPanel
getBlock1Rechts(){ // 1 2 3 4 5 6 7
1837 FormLayout laytit
= new FormLayout("4dlu,40dlu,10dlu,40,100dlu,40dlu,50dlu,4dlu",
1838 // 3=Vnr. 5=Name 7=geb 9=stras
1839 // 1 2 3 4 5 6 7 8 9 10
1840 "4dlu,p, p, p, p, 5dlu,p, p, p, 1dlu,"+
1842 //11 12 13 14 15 16 17 18 19 20 21 22 23
1843 "p, 5dlu, p, 13dlu,p, 1dlu,p, 7dlu,p, 1dlu,p, 0dlu,4dlu");
1844 PanelBuilder tit
= new PanelBuilder(laytit
);
1845 tit
.setBorder(BorderFactory
.createLineBorder(Color
.BLACK
));
1846 tit
.setOpaque(false);
1847 //tit.setBackground(Color.BLUE);
1848 CellConstraints cctit
= new CellConstraints();
1849 JLabel lab
= getLabel("MSNR:");
1850 lab
.setForeground(Color
.RED
);
1851 tit
.add(lab
,cctit
.xy(2,2));
1852 lab
= getLabel("BNR:");
1853 lab
.setForeground(Color
.RED
);
1854 tit
.add(lab
,cctit
.xy(4,2));
1855 eltern
.btf
[8] = new JRtaTextField("nix",false);
1856 eltern
.btf
[8].setName("MSNR");
1857 tit
.add(eltern
.btf
[8],cctit
.xy(2,4));
1858 eltern
.btf
[9] = new JRtaTextField("nix",false);
1859 eltern
.btf
[9].setName("BNR");
1860 tit
.add(eltern
.btf
[9],cctit
.xy(4,4));
1862 lab
= getLabel("Behandlungsstätte:");
1863 lab
.setForeground(Color
.RED
);
1864 tit
.add(lab
,cctit
.xyw(2,7,6));
1865 //SystemConfig.vGutachtenDisplay.get(0);
1866 lab
= getLabel(SystemConfig
.vGutachtenDisplay
.get(0));
1867 lab
.setFont(fontcourier
);
1868 tit
.add(lab
,cctit
.xyw(2,9,6));
1869 lab
= new JLabel(SystemConfig
.vGutachtenDisplay
.get(1));
1870 lab
.setFont(fontcourier
);
1871 tit
.add(lab
,cctit
.xyw(2,11,6));
1872 lab
= new JLabel(SystemConfig
.vGutachtenDisplay
.get(2));
1873 lab
.setFont(fontcourier
);
1874 tit
.add(lab
,cctit
.xyw(2,13,6));
1876 lab
= getLabel("Abteilung:");
1877 lab
.setForeground(Color
.RED
);
1878 tit
.add(lab
,cctit
.xy(2,15));
1880 lab
= new JLabel("ganztägig ambulante Rehabilitation");
1881 lab
.setFont(fontcourier
);
1882 tit
.add(lab
,cctit
.xyw(2,17,6));
1884 lab
= getLabel ("IK-NR:");
1885 lab
.setForeground(Color
.RED
);
1886 tit
.add(lab
,cctit
.xy(2,19));
1888 lab
= getLabel("Abt.NR:");
1889 lab
.setForeground(Color
.RED
);
1890 tit
.add(lab
,cctit
.xy(6,19));
1892 eltern
.btf
[28] = new JRtaTextField("ZAHLEN",false);
1893 eltern
.btf
[28].setName("IK");
1894 eltern
.btf
[28].setText(SystemConfig
.vGutachtenIK
.get(eltern
.cbktraeger
.getSelectedIndex()));
1895 eltern
.btf
[28].setFont(fontcourier
);
1896 eltern
.btf
[28].setForeground(Color
.BLUE
);
1898 tit
.add(eltern
.btf
[28],cctit
.xyw(2,21,3));
1900 eltern
.btf
[10] = new JRtaTextField("ZAHLEN",false);
1901 eltern
.btf
[10].setName("ABTEILUNG");
1902 eltern
.btf
[10].setText("2300");
1903 tit
.add(eltern
.btf
[10],cctit
.xy(6,21));
1905 return tit
.getPanel();
1907 /***********************************************/
1908 private JXPanel
getTitel(){
1909 JXPanel tit
= new JXPanel();
1910 tit
.setOpaque(false);
1911 FormLayout laytit
= new FormLayout("p,33dlu,p","2dlu,p");
1912 CellConstraints cctit
= new CellConstraints();
1913 tit
.setLayout(laytit
);
1915 titel
= new JLabel("Reha-Entlassbericht");
1916 titel
.setFont(fontgross
);
1917 titel
.setForeground(Color
.BLUE
);
1918 tit
.add(titel
,cctit
.xy(1, 2));
1920 titel = new JLabel("Reha-Entlassbericht");
1921 titel.setFont(fontgross);
1922 titel.setForeground(Color.BLUE);
1924 tit
.add(eltern
.cbktraeger
,cctit
.xy(3, 2));
1925 eltern
.cbktraeger
.setActionCommand("empfaenger");
1926 eltern
.cbktraeger
.addActionListener(this);
1931 private JLabel
getLabel(String text
){
1932 JLabel lab
= new JLabel(text
);
1933 lab
.setFont(fontklein
);
1936 private JPanel
getRand(Color col
){
1937 JPanel pan
= new JPanel();
1938 pan
.setOpaque(false);
1939 pan
.setBorder(BorderFactory
.createLineBorder(col
));
1942 class JLabelX
extends JLabel
{
1946 private static final long serialVersionUID
= 1L;
1948 public JLabelX(String text
){
1955 public void actionPerformed(ActionEvent arg0
) {
1959 String cmd
= arg0
.getActionCommand();
1960 if(cmd
.equals("empfaenger")){
1962 if( ((String
)eltern
.cbktraeger
.getSelectedItem()).contains("GKV") ){
1963 //System.out.println("In alte Labels");
1964 setzeNeueLabels(false);
1965 eltern
.ebt
.getTab1().pan
.revalidate();
1966 eltern
.bcmb
[19].setEnabled(false);
1967 eltern
.bta
[6].setEnabled(true);
1969 // Hier noch das RV - Entlassdatum einbauen ggfls. ebenfalls alte labels zeigen
1970 if(eltern
.btf
[15].getText().length()==10){
1971 if(DatFunk
.TageDifferenz("31.12.2007",eltern
.btf
[15].getText() ) < 0){
1972 setzeNeueLabels(false);
1974 setzeNeueLabels(true);
1977 setzeNeueLabels(true);
1979 eltern
.ebt
.getTab1().pan
.revalidate();
1980 eltern
.bcmb
[19].setEnabled(true);
1981 eltern
.bta
[6].setEnabled(false);
1985 public void testeObAlt(){
1986 if( ((String
)eltern
.cbktraeger
.getSelectedItem()).contains("GKV") ){
1987 //System.out.println("In alte Labels");
1988 setzeNeueLabels(false);
1989 eltern
.ebt
.getTab1().pan
.revalidate();
1990 eltern
.bcmb
[19].setEnabled(false);
1991 eltern
.bta
[6].setEnabled(true);
1993 // Hier noch das RV - Entlassdatum einbauen ggfls. ebenfalls alte labels zeigen
1994 if(EBerichtPanel
.UseNeueRvVariante
){
1995 setzeNeueLabels(true);
1996 eltern
.ebt
.getTab1_2015().pan
.revalidate();
1997 eltern
.bcmb
[19].setEnabled(true);
1998 eltern
.bta
[6].setEnabled(false);
2000 if(eltern
.btf
[15].getText().length()==10){
2002 if(DatFunk
.TageDifferenz("31.12.2007",eltern
.btf
[15].getText() ) < 0){
2003 setzeNeueLabels(false);
2005 setzeNeueLabels(true);
2007 }catch(Exception ex
){
2008 setzeNeueLabels(true);
2011 setzeNeueLabels(true);
2013 eltern
.ebt
.getTab1().pan
.revalidate();
2014 eltern
.bcmb
[19].setEnabled(true);
2015 eltern
.bta
[6].setEnabled(false);
2019 public void testeIK(){
2020 //System.out.println(SystemConfig.vGutachtenAbsAdresse);
2021 eltern
.btf
[28].setText(SystemConfig
.vGutachtenIK
.get(eltern
.cbktraeger
.getSelectedIndex()));
2022 eltern
.btf
[28].validate();
2023 eltern
.btf
[28].repaint();
2025 public void setzeNeueLabels(boolean neu
){
2026 //System.out.println("Setze neue Labels");
2027 for(int i
= 0; i
< 17; i
++){
2028 for(int t
= 0; t
< labstitel
[i
].length
; t
++){
2029 //System.out.println("Durchlauf "+i);
2031 if(t
< 3){labsheadline
[t
].setText(headlineneu
[t
]);}
2032 //System.out.println(stitelneu[i][t]);
2033 labstitel
[i
][t
].setText(stitelneu
[i
][t
]);
2034 if(t
== 16){ ((JComponent
)labstitel
[i
][t
].getParent()).revalidate() ; }
2036 if(t
< 3){labsheadline
[t
].setText(headlinealt
[t
]);}
2037 labstitel
[i
][t
].setText(stitelalt
[i
][t
]);
2038 if(t
== 16){ ((JComponent
)labstitel
[i
][t
].getParent()).revalidate() ; }
2044 public void componentHidden(ComponentEvent e
) {
2045 // TODO Auto-generated method stub
2049 public void componentMoved(ComponentEvent e
) {
2050 // TODO Auto-generated method stub
2054 public void componentResized(ComponentEvent e
) {
2058 public void componentShown(ComponentEvent e
) {
2059 // TODO Auto-generated method stub
2062 public final void refreshSize() {
2066 eltern
.ebtab
.revalidate();
2067 //System.out.println("Aufruf refreshSize in EB1");
2070 //pan.setVisible(true);
2071 // ... and just in case, call validate() on the top-level window as well
2072 final Window window1
= SwingUtilities
.getWindowAncestor(jscr
);
2073 if (window1
!= null) {
2077 /**********************************************/
2078 /**********************************************/
2079 class DocumentLineLengthFilter
extends DocumentFilter
2088 public DocumentLineLengthFilter(int maxLineLen
,int bta
)
2092 this.maxLineLen
= maxLineLen
;
2099 private boolean validOperation(Document document
, int offset
, int removedLength
, String insertedString
)
2101 throws BadLocationException
2105 String text
= document
.getText(0, document
.getLength());
2107 //System.out.println("Text:\n"+text);
2109 //System.out.println("Operation: removing "+removedLength+" at "+offset+", inserting "+insertedString.length());
2111 String newTextPrefix
= text
.substring(0, offset
);
2113 String newTextSuffix
= text
.substring(offset
+removedLength
, text
.length());
2115 String newText
= newTextPrefix
+insertedString
+newTextSuffix
;
2117 //System.out.println("New Text:\n"+newText);
2119 return allLineLengthsValid(newText
);
2125 private boolean allLineLengthsValid(String text
)
2129 StringTokenizer st
= new StringTokenizer(text
, "\n");
2133 while (st
.hasMoreTokens())
2137 String line
= st
.nextToken();
2139 if (line
.length() > maxLineLen
)
2143 //System.out.println("Line "+count+" will become too long! ("+line.length()+">"+maxLineLen+")");
2144 eltern
.bta
[bta
].setForeground(Color
.RED
);
2153 eltern
.bta
[bta
].setForeground(Color
.RED
);
2161 public void remove(DocumentFilter
.FilterBypass fb
, int offset
, int length
)
2163 throws BadLocationException
2167 if (validOperation(fb
.getDocument(), offset
, length
, ""))
2171 //System.out.println("Removing "+length+" at "+offset+ " is OK");
2172 eltern
.bta
[bta
].setForeground(Color
.BLUE
);
2173 super.remove(fb
, offset
, length
);
2181 super.remove(fb
, offset
, length
);
2182 //System.out.println("Removing "+length+" at "+offset+ " is OK");
2183 eltern
.bta
[bta
].setForeground(Color
.RED
);
2185 //System.out.println("Removing "+length+" at "+offset+ " is NOT OK");
2186 eltern
.bta
[bta
].setForeground(Color
.RED
);
2200 public void insertString(FilterBypass fb
, int offset
, String str
, AttributeSet a
)
2202 throws BadLocationException
2206 if (validOperation(fb
.getDocument(), offset
, 0, str
))
2210 //System.out.println("Inserting "+str+" at "+offset+ " is OK");
2211 eltern
.bta
[bta
].setForeground(Color
.BLUE
);
2212 super.insertString(fb
, offset
, str
, a
);
2219 //System.out.println("Inserting "+str+" at "+offset+ " is NOT OK");
2220 eltern
.bta
[bta
].setForeground(Color
.RED
);
2230 public void replace(FilterBypass fb
, int offset
, int length
, String str
, AttributeSet a
)
2232 throws BadLocationException
2236 if (validOperation(fb
.getDocument(), offset
, length
, str
))
2240 //System.out.println("Replacing with "+str+" at "+offset+" is OK");
2241 eltern
.bta
[bta
].setForeground(Color
.BLUE
);
2242 super.replace(fb
, offset
, length
, str
, a
);
2251 if(str
.length() > 1 || str
.equals("\n")){
2252 super.insertString(fb
, offset
, str
, a
);
2253 //System.out.println("Replacing with "+str+" at "+offset+" is OK");
2254 eltern
.bta
[bta
].setForeground(Color
.RED
);
2256 eltern
.bta
[bta
].setForeground(Color
.RED
);
2257 //System.out.println("Replacing with "+str+" at "+offset+" is NOT OK");
2270 /**********************************************/