예제 #1
0
 private void doRezeptZeigen(String pat_intern, String reznum) {
   // System.out.println("Hole Daten von Patient "+pat_intern+" Rezept "+reznum);
   JComponent patient = AktiveFenster.getFensterAlle("PatientenVerwaltung");
   if (patient != null) {
     if (Reha.thisClass.patpanel.aktPatID.equals(pat_intern.trim())) {
       Reha.thisClass.patpanel.aktRezept.holeRezepte(pat_intern.trim(), reznum);
       // Reha.thisClass.patpanel.aktRezept.holeRezepte(pat_intern.trim(), reznum);
     } else {
       posteAktualisierung(pat_intern, reznum);
     }
     // Reha.thisClass.patpanel.aktRezept.holeRezepte(pat_intern, reznum);
     return;
   } else {
     Reha.thisClass.progLoader.ProgPatientenVerwaltung(0);
     long zeit = System.currentTimeMillis();
     while ((patient = AktiveFenster.getFensterAlle("PatientenVerwaltung")) == null) {
       try {
         Thread.sleep(10);
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
       if ((System.currentTimeMillis() - zeit) > 5000) {
         return;
       }
     }
     if (Reha.thisClass.patpanel.aktPatID.equals(pat_intern.trim())) {
       Reha.thisClass.patpanel.aktRezept.holeRezepte(pat_intern.trim(), reznum);
     } else {
       posteAktualisierung(pat_intern, reznum);
     }
     // Reha.thisClass.patpanel.aktRezept.holeRezepte(pat_intern, reznum);
     return;
   }
 }
예제 #2
0
 @Override
 public void internalFrameClosed(InternalFrameEvent arg0) {
   Reha.thisClass.desktops[this.desktop].remove(this);
   this.removeInternalFrameListener(this);
   thisContent.removeKeyListener(this);
   thisContent.removeMouseListener(this);
   thisContent.removeAncestorListener(this);
   thisContent.removeMouseMotionListener(this);
   thisContent.removeComponentListener(this);
   thisContent.removeFocusListener(fl);
   fl = null;
   thisContent = null;
   Reha.thisFrame.requestFocus();
   Reha.thisClass.aktiviereNaechsten(this.desktop);
   AktiveFenster.loescheFenster(this.getName());
 }