@FXML
public void felderSetzen()
{
int a;
int b;
int l;
String x;
String y = "";
DateTimeFormatter formatter;
int c;
int d;
String di1;
String di2;
String di3;
String di4;
String df1;
String df2;
String df3;
String dd1;
String dd2;
String dt;
Vital.fensterFelder.Ueberschrift();
setAnzeigeText(1, String.valueOf((char) 169)+"LINDOFT Verwalten Medizindaten Version: "+Vital.fensterFelder.einfeldVersion+" Datum: "+Vital.fensterFelder.einfeldAktDatum);
setAnzeigeBackground(1, Color.LIGHTYELLOW);
setAnzeigeBackground(2, Color.LIGHTYELLOW);
setAnzeigeText(2, "");
setAnzeigeBackground(3, Color.LIGHTYELLOW);
setAnzeigeBackground(4, Color.LIGHTYELLOW);
setAnzeigeBackground(5, Color.LIGHTYELLOW);
anzeige1.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;");
anzeige2.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;");
anzeige3.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;");
anzeige4.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;");
anzeige5.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;");
stringgrid.getItems().clear();
stringgridXPos = 2650;
stringgridSetXPos();
stringgridAnz = 1;
stringgridYPos = stringgridAnz * 35;
stringgridSetYPos();
vorname.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
nachname.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
geburtsdatum.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
datum.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
uhrzeit.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
systole.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
diastole.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
puls.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
spo2.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
temperatur.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
groesse.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
gewicht.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
bemerkung.setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #ffffe0;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
vorname.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
nachname.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
geburtsdatum.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
datum.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
uhrzeit.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
systole.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
diastole.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
puls.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
spo2.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
temperatur.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
groesse.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
gewicht.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
bemerkung.getStyleableNode().setStyle("-fx-font: 18px \"system\";"+
"-fx-font-weight: bold;"+
"-fx-background-color: #00ff00;"+
"-fx-text-fill: #0000ff;"+
"-fx-text-inner-color: #0000ff;"+
"-fx-text-background-color: #0000ff;"+
"-fx-fill: #0000ff;");
vorname.setCellValueFactory(new PropertyValueFactory<>("vorname"));
nachname.setCellValueFactory(new PropertyValueFactory<>("nachname"));
geburtsdatum.setCellValueFactory(new PropertyValueFactory<>("geburtsdatum"));
datum.setCellValueFactory(new PropertyValueFactory<>("datum"));
uhrzeit.setCellValueFactory(new PropertyValueFactory<>("uhrzeit"));
systole.setCellValueFactory(new PropertyValueFactory<>("systole"));
diastole.setCellValueFactory(new PropertyValueFactory<>("diastole"));
puls.setCellValueFactory(new PropertyValueFactory<>("puls"));
spo2.setCellValueFactory(new PropertyValueFactory<>("spo2"));
temperatur.setCellValueFactory(new PropertyValueFactory<>("temperatur"));
groesse.setCellValueFactory(new PropertyValueFactory<>("groesse"));
gewicht.setCellValueFactory(new PropertyValueFactory<>("gewicht"));
bemerkung.setCellValueFactory(new PropertyValueFactory<>("bemerkung"));
VitalShowController.anzeintraege = 0;
VitalShowController.dLesArt = 2;
x = "SELECT * FROM "+Vital.datenbank.dbTabelle+" ORDER BY Nachname, Vorname, Geburtsdatum, Datum DESC, Uhrzeit DESC";
lesenDatenbank(x);
a = VitalShowController.anzeintraege;
if (Vital.datenbank.dbRet == 0)
{
if (VitalShowController.anzeintraege > 0)
{
stringgridAnz = 1;
stringgridYPos = stringgridAnz * 35;
stringgridSetYPos();
stringgrid.getItems().clear();
for (c=0; c<VitalShowController.anzeintraege; c++)
{
dDaten = VitalShowController.eintraege[c];
d = dDaten.length();
if (d > 11)
{
datenTeilen();
formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale.GERMAN);
dd1 = formatter.format(dgeburtsdatum);
formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale.GERMAN);
dd2 = formatter.format(ddatum);
formatter = DateTimeFormatter.ofPattern("HH:mm:ss", Locale.GERMAN);
dt = formatter.format(duhrzeit);
di1 = String.valueOf(dsystole);
di2 = String.valueOf(ddiastole);
di3 = String.valueOf(dpuls);
di4 = String.valueOf(dspo2);
df1 = String.valueOf(dtemperatur);
df2 = String.valueOf(dgroesse);
df3 = String.valueOf(dgewicht);
eintrag = new Eintrag(dvorname, dnachname, dd1, dd2, dt, di1, di2, di3, di4, df1, df2, df3, dbemerkung);
stringgrid.getItems().add(eintrag);
stringgridAnz++;
stringgridYPos = stringgridAnz * 35;
stringgridSetYPos();
}
}
}
}
}