Ejemplo n.º 1
0
 /**
  * カルテがオープンされているかどうかを返す。
  *
  * @return オープンされている時 true
  */
 private boolean isKarteOpened(PatientModel patient) {
   if (patient != null) {
     boolean opened = false;
     List<ChartImpl> allCharts = ChartImpl.getAllChart();
     for (ChartImpl chart : allCharts) {
       if (chart.getPatient().getId() == patient.getId()) {
         opened = true;
         break;
       }
     }
     return opened;
   }
   return false;
 }