|
|
|
@@ -13,6 +13,8 @@ import javafx.collections.ObservableList; |
|
|
|
import javafx.event.ActionEvent; |
|
|
|
import javafx.fxml.FXML; |
|
|
|
import javafx.scene.control.*; |
|
|
|
import javafx.scene.paint.Color; |
|
|
|
import javafx.scene.text.Text; |
|
|
|
|
|
|
|
import java.sql.SQLException; |
|
|
|
|
|
|
|
@@ -86,11 +88,27 @@ public class UntersuchungenController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* untsList.setCellFactory(lv -> { |
|
|
|
untsList.setCellFactory(lv -> { |
|
|
|
return new ListCell<Untersuchung>(){ |
|
|
|
|
|
|
|
} |
|
|
|
});*/ |
|
|
|
@Override |
|
|
|
protected void updateItem(Untersuchung item, boolean empty) { |
|
|
|
super.updateItem(item, empty); |
|
|
|
if(item==null||empty){ |
|
|
|
setText(null); |
|
|
|
setGraphic(null); |
|
|
|
return; |
|
|
|
} |
|
|
|
setText(item.toString()); |
|
|
|
if(item.getStorniert()){ |
|
|
|
setTextFill(Color.GRAY); |
|
|
|
setGraphic(new Text("<storniert> ")); |
|
|
|
}else{ |
|
|
|
setTextFill(Color.BLACK); |
|
|
|
setGraphic(null); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@FXML |
|
|
|
@@ -165,9 +183,9 @@ public class UntersuchungenController { |
|
|
|
|
|
|
|
private void clearFields(){ |
|
|
|
|
|
|
|
//untersCreateTime.setText("<auto>"); |
|
|
|
//untersCreator.setText("<auto>"); |
|
|
|
//untersEditTime.setText("<auto>"); |
|
|
|
untsCreateTime.setText(""); |
|
|
|
untsCreator.setText(""); |
|
|
|
untsChangeTime.setText(""); |
|
|
|
// untersEditor.setText("<auto>"); |
|
|
|
|
|
|
|
untsOpsCode.setValue(null); |
|
|
|
|