From be9976cb6ef39e0346ab1431f7f1eac01f18794e Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Mon, 12 Jun 2017 00:35:26 +0700 Subject: [PATCH] report hdcase summary , dispose, reactive --- netforce_clinic/controllers/__init__.py | 1 + .../controllers/del_patient_move.py | 15 +++ .../layouts/clinic_patient_form.xml | 4 +- .../layouts/clinic_patient_list.xml | 1 + netforce_clinic/layouts/new_patient.xml | 14 ++- netforce_clinic/layouts/patient_move_form.xml | 5 +- netforce_clinic/models/new_patient.py | 99 +++++++++++++++---- netforce_clinic/models/new_patient_line.py | 3 + netforce_clinic/models/patient.py | 31 ++++++ netforce_clinic/models/patient_move.py | 42 +++++++- .../models/report_hdcase_summary.py | 11 ++- .../templates/report_hdcase_summary.hbs | 43 ++++++++ 12 files changed, 244 insertions(+), 25 deletions(-) create mode 100644 netforce_clinic/controllers/del_patient_move.py diff --git a/netforce_clinic/controllers/__init__.py b/netforce_clinic/controllers/__init__.py index e69de29..28d05a8 100644 --- a/netforce_clinic/controllers/__init__.py +++ b/netforce_clinic/controllers/__init__.py @@ -0,0 +1 @@ +from . import del_patient_move diff --git a/netforce_clinic/controllers/del_patient_move.py b/netforce_clinic/controllers/del_patient_move.py new file mode 100644 index 0000000..a878e64 --- /dev/null +++ b/netforce_clinic/controllers/del_patient_move.py @@ -0,0 +1,15 @@ +from netforce.controller import Controller + + +class DelPatientMove(Controller): + _path="/del_patient_move" + + def get(self): + try: + id=self.get_argument("id") + id=int(id) + get_model("clinic.patient.move").delete([id]) + except Exception as e: + print("ERROR ", e) + +DelPatientMove.register() diff --git a/netforce_clinic/layouts/clinic_patient_form.xml b/netforce_clinic/layouts/clinic_patient_form.xml index ae27786..154e604 100644 --- a/netforce_clinic/layouts/clinic_patient_form.xml +++ b/netforce_clinic/layouts/clinic_patient_form.xml @@ -174,7 +174,7 @@ -