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 @@ -