private void initMyComponents() { orderLabel.setFont(new Font("fans serif", Font.BOLD, 14)); orderLabel.setText("" + order.getOrderNumber()); dateLabel.setFont(new Font("Georgia", Font.PLAIN, 14)); dateLabel.setText("" + order.getDate()); orderPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, typBrun)); datePanel.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, typBrun)); }
public String showMedicalHistory() throws Exception { client = ClientDao.getClientById(getId()); medicalHistory = MedicalHistoryDao.getMedicalHistoryByClientId(client.getId()); visitsList = VisitDao.getVisitsListByMedicalHistoryId(medicalHistory.getId()); for (Visit visit : visitsList) { Order order = OrderDao.getOrderById(visit.getOrderId()); Doctor doctor = DoctorDao.getDoctorById(order.getDoctorId()); visit.setDoctorFullname(doctor.getFullname()); visit.setDoctorSpeciality(doctor.getSpeciality()); visit.setDate(UnixTimeConverter.convertUnixTimeToTime(order.getDate(), "yyyy-MM-dd")); } return Action.SUCCESS; }