From c1e21426292d9144a7915732da5eee8dd7025a20 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 25 Nov 2014 17:26:10 +0700 Subject: [PATCH] refactor --- ...linic_data_nhso.xml => clinic_data_uc.xml} | 0 netforce_clinic/actions/clinic_patient.xml | 2 +- ...visit_dialy.xml => clinic_visit_board.xml} | 8 +- ...t_clinic_nhso.xml => import_clinic_uc.xml} | 2 +- ..._nhso_form.xml => clinic_data_uc_form.xml} | 2 +- ..._nhso_list.xml => clinic_data_uc_list.xml} | 3 +- netforce_clinic/layouts/clinic_menu.xml | 2 +- .../layouts/clinic_menu_inherit.xml | 4 +- .../layouts/clinic_personal_list.xml | 1 + ...visit_dialy.xml => clinic_visit_board.xml} | 3 +- .../layouts/fin_clinic_settings.xml | 6 +- netforce_clinic/layouts/import_clinic_mg.xml | 12 -- .../layouts/import_clinic_nhso.xml | 13 -- netforce_clinic/layouts/import_clinic_uc.xml | 10 ++ netforce_clinic/models/__init__.py | 5 +- netforce_clinic/models/fin_setting.py | 6 +- netforce_clinic/models/gen_visit.py | 2 +- netforce_clinic/models/hd_case.py | 4 +- netforce_clinic/models/import_data_mg.py | 11 -- ...{import_data_nhso.py => import_data_uc.py} | 6 +- netforce_clinic/models/import_payment.py | 10 +- netforce_clinic/models/patient.py | 8 +- .../models/report_hd_case_summary.py | 10 +- .../models/report_medical_summary.py | 8 +- netforce_clinic/models/utils.py | 57 +++++-- netforce_clinic/models/visit.py | 5 +- netforce_clinic/models/visit_board.py | 142 ++++++++++++++++++ netforce_clinic/models/visit_dialy.py | 102 ------------- .../templates/report_hd_case_summary.hbs | 8 +- .../templates/report_medical_summary.hbs | 8 +- netforce_clinic/templates/visit_board.hbs | 46 ++++++ netforce_clinic/templates/visit_dialy.hbs | 37 ----- netforce_clinic/todo.txt | 3 + 33 files changed, 301 insertions(+), 245 deletions(-) rename netforce_clinic/actions/{clinic_data_nhso.xml => clinic_data_uc.xml} (100%) rename netforce_clinic/actions/{clinic_visit_dialy.xml => clinic_visit_board.xml} (66%) rename netforce_clinic/actions/{import_clinic_nhso.xml => import_clinic_uc.xml} (75%) rename netforce_clinic/layouts/{clinic_data_nhso_form.xml => clinic_data_uc_form.xml} (93%) rename netforce_clinic/layouts/{clinic_data_nhso_list.xml => clinic_data_uc_list.xml} (75%) rename netforce_clinic/layouts/{clinic_visit_dialy.xml => clinic_visit_board.xml} (53%) delete mode 100644 netforce_clinic/layouts/import_clinic_mg.xml delete mode 100644 netforce_clinic/layouts/import_clinic_nhso.xml create mode 100644 netforce_clinic/layouts/import_clinic_uc.xml delete mode 100644 netforce_clinic/models/import_data_mg.py rename netforce_clinic/models/{import_data_nhso.py => import_data_uc.py} (90%) create mode 100644 netforce_clinic/models/visit_board.py delete mode 100644 netforce_clinic/models/visit_dialy.py create mode 100644 netforce_clinic/templates/visit_board.hbs delete mode 100644 netforce_clinic/templates/visit_dialy.hbs diff --git a/netforce_clinic/actions/clinic_data_nhso.xml b/netforce_clinic/actions/clinic_data_uc.xml similarity index 100% rename from netforce_clinic/actions/clinic_data_nhso.xml rename to netforce_clinic/actions/clinic_data_uc.xml diff --git a/netforce_clinic/actions/clinic_patient.xml b/netforce_clinic/actions/clinic_patient.xml index 0fde6ba..2738622 100644 --- a/netforce_clinic/actions/clinic_patient.xml +++ b/netforce_clinic/actions/clinic_patient.xml @@ -2,6 +2,6 @@ Patients multi_view clinic.patient - [["All",[]],["Archived",[["active","=","False"]]],["Social Security",[["type","=","sc"]]],["NHSO(30฿)",[["type","=","nhso"]]],["Personal",[["type","=","personal"]]],["Others",[["type","=","others"]]]] + [["All",[]],["Archived",[["active","=","False"]]],["Social Security",[["type","=","sc"]]],["UC",[["type","=","uc"]]],["Others",[["type","=","others"]]]] clinic_menu diff --git a/netforce_clinic/actions/clinic_visit_dialy.xml b/netforce_clinic/actions/clinic_visit_board.xml similarity index 66% rename from netforce_clinic/actions/clinic_visit_dialy.xml rename to netforce_clinic/actions/clinic_visit_board.xml index dfbc3c2..e8d0be6 100644 --- a/netforce_clinic/actions/clinic_visit_dialy.xml +++ b/netforce_clinic/actions/clinic_visit_board.xml @@ -1,8 +1,8 @@ - Visit Dialy + Visit Board report - clinic.visit.dialy - visit_dialy - visit_dialy + clinic.visit.board + visit_board + visit_board clinic_menu diff --git a/netforce_clinic/actions/import_clinic_nhso.xml b/netforce_clinic/actions/import_clinic_uc.xml similarity index 75% rename from netforce_clinic/actions/import_clinic_nhso.xml rename to netforce_clinic/actions/import_clinic_uc.xml index 8c00759..4c1ba41 100644 --- a/netforce_clinic/actions/import_clinic_nhso.xml +++ b/netforce_clinic/actions/import_clinic_uc.xml @@ -1,6 +1,6 @@ form_view clinic.import.payment - import_clinic_nhso + import_clinic_uc account_menu diff --git a/netforce_clinic/layouts/clinic_data_nhso_form.xml b/netforce_clinic/layouts/clinic_data_uc_form.xml similarity index 93% rename from netforce_clinic/layouts/clinic_data_nhso_form.xml rename to netforce_clinic/layouts/clinic_data_uc_form.xml index 974e91d..755b1de 100644 --- a/netforce_clinic/layouts/clinic_data_nhso_form.xml +++ b/netforce_clinic/layouts/clinic_data_uc_form.xml @@ -1,4 +1,4 @@ -
+ diff --git a/netforce_clinic/layouts/clinic_data_nhso_list.xml b/netforce_clinic/layouts/clinic_data_uc_list.xml similarity index 75% rename from netforce_clinic/layouts/clinic_data_nhso_list.xml rename to netforce_clinic/layouts/clinic_data_uc_list.xml index 4e88632..b63b0d7 100644 --- a/netforce_clinic/layouts/clinic_data_nhso_list.xml +++ b/netforce_clinic/layouts/clinic_data_uc_list.xml @@ -1,5 +1,4 @@ - - + diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index 6045a04..32d6d00 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -34,7 +34,7 @@ - + diff --git a/netforce_clinic/layouts/clinic_menu_inherit.xml b/netforce_clinic/layouts/clinic_menu_inherit.xml index 5a7e502..622a222 100644 --- a/netforce_clinic/layouts/clinic_menu_inherit.xml +++ b/netforce_clinic/layouts/clinic_menu_inherit.xml @@ -4,12 +4,12 @@
- +
- + diff --git a/netforce_clinic/layouts/clinic_personal_list.xml b/netforce_clinic/layouts/clinic_personal_list.xml index 75817ac..773584d 100644 --- a/netforce_clinic/layouts/clinic_personal_list.xml +++ b/netforce_clinic/layouts/clinic_personal_list.xml @@ -1,6 +1,7 @@ + diff --git a/netforce_clinic/layouts/clinic_visit_dialy.xml b/netforce_clinic/layouts/clinic_visit_board.xml similarity index 53% rename from netforce_clinic/layouts/clinic_visit_dialy.xml rename to netforce_clinic/layouts/clinic_visit_board.xml index 2505e6f..4df5be1 100644 --- a/netforce_clinic/layouts/clinic_visit_dialy.xml +++ b/netforce_clinic/layouts/clinic_visit_board.xml @@ -1,4 +1,5 @@ - + + diff --git a/netforce_clinic/layouts/fin_clinic_settings.xml b/netforce_clinic/layouts/fin_clinic_settings.xml index 4297c88..7a4ed18 100644 --- a/netforce_clinic/layouts/fin_clinic_settings.xml +++ b/netforce_clinic/layouts/fin_clinic_settings.xml @@ -1,12 +1,10 @@ - - - - + + diff --git a/netforce_clinic/layouts/import_clinic_mg.xml b/netforce_clinic/layouts/import_clinic_mg.xml deleted file mode 100644 index b8b8982..0000000 --- a/netforce_clinic/layouts/import_clinic_mg.xml +++ /dev/null @@ -1,12 +0,0 @@ -
- - - - - - - - -