|
|
@@ -5,9 +5,7 @@ package de.uniluebeck.mi.projmi6.controller; |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
import de.uniluebeck.mi.projmi6.Main; |
|
|
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.model.*; |
|
|
import de.uniluebeck.mi.projmi6.view.DateTimePicker; |
|
|
import de.uniluebeck.mi.projmi6.view.DateTimePicker; |
|
|
import javafx.event.ActionEvent; |
|
|
import javafx.event.ActionEvent; |
|
|
import javafx.fxml.FXML; |
|
|
import javafx.fxml.FXML; |
|
|
@@ -18,7 +16,7 @@ public class UntersuchungenController { |
|
|
/** |
|
|
/** |
|
|
* The examination that is shown in the edit window, or null if a new examination should be created. |
|
|
* The examination that is shown in the edit window, or null if a new examination should be created. |
|
|
*/ |
|
|
*/ |
|
|
// private Untersuchung untersuchung = null; |
|
|
|
|
|
|
|
|
private Untersuchung untersuchung = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private MainController mainController; |
|
|
private MainController mainController; |
|
|
@@ -80,7 +78,7 @@ public class UntersuchungenController { |
|
|
void clickedUntsSave(ActionEvent event) { |
|
|
void clickedUntsSave(ActionEvent event) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|
public void setUntersuchung(Untersuchung untersuchung){ |
|
|
public void setUntersuchung(Untersuchung untersuchung){ |
|
|
this.untersuchung = untersuchung; |
|
|
this.untersuchung = untersuchung; |
|
|
if(untersuchung==null){ |
|
|
if(untersuchung==null){ |
|
|
@@ -89,18 +87,47 @@ public class UntersuchungenController { |
|
|
copyUntersuchungDataIntoFields(); |
|
|
copyUntersuchungDataIntoFields(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void 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()); |
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
// untsList.setText(Integer.toString(untersuchung.getUntersID())); |
|
|
|
|
|
untsOpsCode.setValue(untersuchung.getOpscode()); |
|
|
|
|
|
untsArzt.setValue(untersuchung.getDurchfuehrenderArzt()); |
|
|
|
|
|
dtTmUntersuchungszeitpunkt.setDateTime(untersuchung.getUntersuchungsdatum()); |
|
|
|
|
|
|
|
|
|
|
|
untsCreator.setText(Integer.toString(untersuchung.getErsteller())); |
|
|
|
|
|
untsCreateTime.setText(untersuchung.getErstellDatumZeit().toString()); |
|
|
|
|
|
untsChanger.setText(Integer.toString(untersuchung.getBearbeiter())); |
|
|
|
|
|
untsChangeTime.setText(untersuchung.getBearbeitetDatumZeit().toString()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void copyFieldDataIntoUntersuchung(Untersuchung untersuchung){ |
|
|
|
|
|
|
|
|
|
|
|
untersuchung.setOpscode(untsOpsCode.getValue()); |
|
|
|
|
|
untersuchung.setDurchfuehrenderArzt(untsArzt.getValue()); |
|
|
|
|
|
// untersuchung.set?(untsList.getValue()); |
|
|
|
|
|
untersuchung.setUntersuchungsdatum(dtTmUntersuchungszeitpunkt.getDateTime()); |
|
|
|
|
|
|
|
|
|
|
|
// untersCreateTime.setText(untersuchung.getErstellDatumZeit().toString()); |
|
|
|
|
|
// untersCreator.setText(Integer.toString(untersuchung.getErsteller())); |
|
|
|
|
|
// untersEditTime.setText(untersuchung.getBearbeitetDatumZeit().toString()); |
|
|
|
|
|
// untersEditor.setText(Integer.toString(untersuchung.getBearbeiter())); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void clearFields(){ |
|
|
|
|
|
|
|
|
|
|
|
//untersCreateTime.setText("<auto>"); |
|
|
|
|
|
//untersCreator.setText("<auto>"); |
|
|
|
|
|
//untersEditTime.setText("<auto>"); |
|
|
|
|
|
// untersEditor.setText("<auto>"); |
|
|
|
|
|
|
|
|
|
|
|
untsOpsCode.setValue(null); |
|
|
|
|
|
untsArzt.setValue(null); |
|
|
|
|
|
dtTmUntersuchungszeitpunkt.setDateTime(null); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|