package de.uniluebeck.mi.projmi6.controller; /** * Created by 626947 on 12.11.15. */ import de.uniluebeck.mi.projmi6.Main; import de.uniluebeck.mi.projmi6.model.Mitarbeiter; import de.uniluebeck.mi.projmi6.model.OpsCode; import de.uniluebeck.mi.projmi6.model.Patient; import de.uniluebeck.mi.projmi6.view.DateTimePicker; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.*; public class UntersuchungenController { /** * The examination that is shown in the edit window, or null if a new examination should be created. */ // private Untersuchung untersuchung = null; private MainController mainController; @FXML private Button btnUntsCancel; @FXML private Button btnUntsCreate; @FXML private DateTimePicker dtTmUntersuchungszeitpunkt; @FXML private Button btnUntsSave; @FXML private Label untsChanger; @FXML private Label untsCreator; @FXML private Label untsChangeTime; @FXML private Label untsCreateTime; @FXML private ListView untsList; @FXML private ComboBox untsOpsCode; @FXML private ComboBox untsArzt; public UntersuchungenController (MainController mainController){ this.mainController = mainController; } @FXML public void initialize(){ untsOpsCode.itemsProperty().bind(mainController.opsCodesProperty()); } @FXML void clickedUntsCreate(ActionEvent event) { } @FXML void clickedUntsAbort(ActionEvent event) { } @FXML void clickedUntsSave(ActionEvent event) { } /* public void setUntersuchung(Untersuchung untersuchung){ this.untersuchung = untersuchung; if(untersuchung==null){ clearFields(); }else { copyUntersuchungDataIntoFields(); } }*/ /* private void copyUntersuchungDataIntoFields(){ untsList.setText(Integer.toString(patient.getPatID())); untsOpsCode.setText(patient.getGeburtsname()); untsArzt.setText(patient.getNachname()); untsCreator.setText(Integer.toString(patient.getErsteller())); untsCreateTime.setText(patient.getErstellDatumZeit().toString()); untsChanger.setText(Integer.toString(patient.getBearbeiter())); untsChangeTime.setText(patient.getBearbeitetDatumZeit().toString()); }*/ }