瀏覽代碼

Update Patient

hapi
Nils Dittberner 10 年之前
父節點
當前提交
80fb9a9cd7
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      src/main/java/de/uniluebeck/mi/projmi6/controller/PatientEditorController.java

+ 9
- 0
src/main/java/de/uniluebeck/mi/projmi6/controller/PatientEditorController.java 查看文件

@@ -3,6 +3,8 @@ package de.uniluebeck.mi.projmi6.controller;
/**
* Created by 631806 on 12.11.15.
*/

import de.uniluebeck.mi.projmi6.db.DBHandler;
import de.uniluebeck.mi.projmi6.model.Kasse;
import de.uniluebeck.mi.projmi6.model.Patient;
import javafx.collections.FXCollections;
@@ -11,6 +13,8 @@ import javafx.scene.control.*;
import javafx.event.ActionEvent;
import javafx.stage.Stage;

import java.sql.SQLException;

public class PatientEditorController {

/**
@@ -191,6 +195,11 @@ public class PatientEditorController {
}else{
copyFieldDataIntoPatient(patient);
//Update db entry... TODO
try {
DBHandler.updatePatient(patient, 1005); // TODO: MitarbeiterID uebergeben!
} catch (SQLException e) {
e.printStackTrace();
}
}
((Stage)patNachname.getScene().getWindow()).close();
}


Loading…
取消
儲存