From ffda3a2549b52f53d2eb15ab522ea6bb0064ca3b Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Sat, 4 Oct 2014 22:51:54 +0700 Subject: [PATCH] improve visit --- netforce_clinic/actions/clinic_dialyzer.xml | 2 +- netforce_clinic/actions/clinic_hd_case.xml | 2 +- .../actions/clinic_import_payment.xml | 6 +++ netforce_clinic/actions/clinic_visit.xml | 2 +- .../layouts/clinic_doctor_form.xml | 5 +- .../layouts/clinic_import_payment_form.xml | 29 ++++++++++ .../layouts/clinic_import_payment_list.xml | 5 ++ netforce_clinic/layouts/clinic_menu.xml | 20 ++++--- netforce_clinic/layouts/clinic_nurse_form.xml | 5 +- .../layouts/clinic_visit_calendar.xml | 2 +- netforce_clinic/layouts/clinic_visit_form.xml | 7 +-- netforce_clinic/layouts/clinic_visit_list.xml | 3 +- netforce_clinic/models/__init__.py | 1 + netforce_clinic/models/doctor.py | 5 +- netforce_clinic/models/hd_case.py | 2 +- netforce_clinic/models/import_payment.py | 48 +++++++++++++++++ netforce_clinic/models/nurse.py | 5 +- netforce_clinic/models/visit.py | 53 +++++++++++++++---- netforce_clinic/todo.txt | 44 +++++++++++++++ 19 files changed, 214 insertions(+), 32 deletions(-) create mode 100644 netforce_clinic/actions/clinic_import_payment.xml create mode 100644 netforce_clinic/layouts/clinic_import_payment_form.xml create mode 100644 netforce_clinic/layouts/clinic_import_payment_list.xml create mode 100644 netforce_clinic/models/import_payment.py diff --git a/netforce_clinic/actions/clinic_dialyzer.xml b/netforce_clinic/actions/clinic_dialyzer.xml index d7fcd4e..f9b970e 100644 --- a/netforce_clinic/actions/clinic_dialyzer.xml +++ b/netforce_clinic/actions/clinic_dialyzer.xml @@ -1,5 +1,5 @@ - Dialyzer + Dialyzers multi_view clinic.dialyzer [["All",[]],["New",[["state","=","new"]]],["Active",[["state","=","active"]]],["Drop",[["state","=","drop"]]],["Expire",[["state","=","expire"]]],["Cancelled",[["state","=","cancelled"]]]] diff --git a/netforce_clinic/actions/clinic_hd_case.xml b/netforce_clinic/actions/clinic_hd_case.xml index 117d905..2d908e7 100644 --- a/netforce_clinic/actions/clinic_hd_case.xml +++ b/netforce_clinic/actions/clinic_hd_case.xml @@ -1,5 +1,5 @@ - HD Case Treatments + Treatments multi_view clinic.hd.case [["All",[]],["Draft",[["state","=","draft"]]],["Confirmed",[["state","=","confirmed"]]],["Approved",[["state","=","approved"]]],["Paid",[["state","=","paid"]]],["Cancelled",[["state","=","cancelled"]]]] diff --git a/netforce_clinic/actions/clinic_import_payment.xml b/netforce_clinic/actions/clinic_import_payment.xml new file mode 100644 index 0000000..22cf382 --- /dev/null +++ b/netforce_clinic/actions/clinic_import_payment.xml @@ -0,0 +1,6 @@ + + Import Payments From Government + multi_view + clinic.import.payment + clinic_menu + diff --git a/netforce_clinic/actions/clinic_visit.xml b/netforce_clinic/actions/clinic_visit.xml index ef83221..bdb81f1 100644 --- a/netforce_clinic/actions/clinic_visit.xml +++ b/netforce_clinic/actions/clinic_visit.xml @@ -2,7 +2,7 @@ Visits multi_view clinic.visit - [["All",[]],["Pending",[["state","=","pending"]]],["Confirmed",[["state","=","confirmed"]]],["Cancelled",[["state","=","cancelled"]]]] + [["All",[]],["Draft",[["state","=","draft"]]],["Waiting Treatment",[["state","=","waiting_treatment"]]],["Treatment",[["state","=","treatment"]]],["Cancelled",[["state","=","cancelled"]]]] list,calendar,form clinic_menu diff --git a/netforce_clinic/layouts/clinic_doctor_form.xml b/netforce_clinic/layouts/clinic_doctor_form.xml index 8788f07..f84c1ef 100644 --- a/netforce_clinic/layouts/clinic_doctor_form.xml +++ b/netforce_clinic/layouts/clinic_doctor_form.xml @@ -13,8 +13,8 @@ - + @@ -30,6 +30,9 @@ + + + diff --git a/netforce_clinic/layouts/clinic_import_payment_form.xml b/netforce_clinic/layouts/clinic_import_payment_form.xml new file mode 100644 index 0000000..811d58c --- /dev/null +++ b/netforce_clinic/layouts/clinic_import_payment_form.xml @@ -0,0 +1,29 @@ +
+ + + + + + + + + +