From 63bdaff4d978ad18513733a299f2f97ccbdb4304 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Sat, 1 Nov 2014 10:48:22 +0700 Subject: [PATCH] gen visit --- .../actions/clinic_gen_visit_form.xml | 6 ++ netforce_clinic/actions/clinic_hd_case.xml | 2 +- .../layouts/clinic_gen_visit_form.xml | 60 +++++++++++------- .../layouts/clinic_hd_case_form.xml | 21 ++++--- .../layouts/clinic_hd_case_list.xml | 4 -- netforce_clinic/layouts/clinic_menu.xml | 5 +- netforce_clinic/models/__init__.py | 1 + netforce_clinic/models/gen_visit.py | 62 +++++++++---------- netforce_clinic/models/gen_visit_line.py | 2 + netforce_clinic/models/hd_case.py | 37 ++++++----- netforce_clinic/models/hd_case_personal.py | 19 ++++++ netforce_clinic/models/patient.py | 2 +- netforce_clinic/models/personal.py | 2 +- netforce_clinic/models/visit.py | 12 ++-- netforce_clinic/todo.txt | 3 + 15 files changed, 150 insertions(+), 88 deletions(-) create mode 100644 netforce_clinic/actions/clinic_gen_visit_form.xml create mode 100644 netforce_clinic/models/hd_case_personal.py diff --git a/netforce_clinic/actions/clinic_gen_visit_form.xml b/netforce_clinic/actions/clinic_gen_visit_form.xml new file mode 100644 index 0000000..6137987 --- /dev/null +++ b/netforce_clinic/actions/clinic_gen_visit_form.xml @@ -0,0 +1,6 @@ + + Generate Visit + form_view + clinic.gen.visit + clinic_menu + diff --git a/netforce_clinic/actions/clinic_hd_case.xml b/netforce_clinic/actions/clinic_hd_case.xml index 43c34eb..d0caf61 100644 --- a/netforce_clinic/actions/clinic_hd_case.xml +++ b/netforce_clinic/actions/clinic_hd_case.xml @@ -1,5 +1,5 @@ - Treatments + HD Cases multi_view clinic.hd.case [["All",[]],["Draft",[["state","=","draft"]]],["In Progress",[["state","=","in_progress"]]],["Waiting Payment",[["state","=","waiting_payment"]]],["Completed",[["state","=","completed"]]],["In Completed",[["state","=","in_completed"]]]] diff --git a/netforce_clinic/layouts/clinic_gen_visit_form.xml b/netforce_clinic/layouts/clinic_gen_visit_form.xml index e5fc08b..ef455c7 100644 --- a/netforce_clinic/layouts/clinic_gen_visit_form.xml +++ b/netforce_clinic/layouts/clinic_gen_visit_form.xml @@ -1,28 +1,46 @@
- - - - - - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -