From 4a3b4da09a8197889068b6dd23d1f3210fa997f2 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Thu, 27 Nov 2014 07:47:38 +0700 Subject: [PATCH] refactor --- ...cycle_dialy.xml => clinic_cycle_daily.xml} | 6 +- .../actions/clinic_cycle_dialy.xml.old | 11 -- .../actions/clinic_cycle_monthly.xml | 8 ++ ...ase_dialy.xml => clinic_hd_case_daily.xml} | 8 +- ...y_form.xml => clinic_cycle_daily_form.xml} | 4 +- ...y_list.xml => clinic_cycle_daily_list.xml} | 2 +- .../layouts/clinic_cycle_item_form.xml | 4 +- netforce_clinic/layouts/clinic_cycle_list.xml | 2 +- .../layouts/clinic_cycle_monthly_form.xml | 49 +++++++++ .../layouts/clinic_cycle_monthly_list.xml | 4 + ...ase_dialy.xml => clinic_hd_case_daily.xml} | 2 +- netforce_clinic/layouts/clinic_menu.xml | 3 +- .../layouts/clinic_schedule_form.xml | 6 +- netforce_clinic/models/__init__.py | 6 +- .../models/{cycle_dialy.py => cycle_daily.py} | 20 ++-- ...ycle_dialy_line.py => cycle_daily_line.py} | 10 +- netforce_clinic/models/cycle_item.py | 31 +++--- netforce_clinic/models/cycle_monthly.py | 97 ++++++++++++++++++ netforce_clinic/models/cycle_monthly_line.py | 24 +++++ .../models/report_nurse_fee_detail.py | 12 +-- .../models/report_nurse_fee_sum.py | 8 +- netforce_clinic/models/schedule.py | 19 +++- netforce_clinic/models/schedule_line.py | 7 +- ...{hd_case_dialy.xlsx => hd_case_daily.xlsx} | Bin .../{hd_case_dialy.hbs => hd_case_daily.hbs} | 0 25 files changed, 269 insertions(+), 74 deletions(-) rename netforce_clinic/actions/{clinic_cycle_dialy.xml => clinic_cycle_daily.xml} (53%) delete mode 100644 netforce_clinic/actions/clinic_cycle_dialy.xml.old create mode 100644 netforce_clinic/actions/clinic_cycle_monthly.xml rename netforce_clinic/actions/{clinic_hd_case_dialy.xml => clinic_hd_case_daily.xml} (66%) rename netforce_clinic/layouts/{clinic_cycle_dialy_form.xml => clinic_cycle_daily_form.xml} (96%) rename netforce_clinic/layouts/{clinic_cycle_dialy_list.xml => clinic_cycle_daily_list.xml} (63%) create mode 100644 netforce_clinic/layouts/clinic_cycle_monthly_form.xml create mode 100644 netforce_clinic/layouts/clinic_cycle_monthly_list.xml rename netforce_clinic/layouts/{clinic_hd_case_dialy.xml => clinic_hd_case_daily.xml} (53%) rename netforce_clinic/models/{cycle_dialy.py => cycle_daily.py} (87%) rename netforce_clinic/models/{cycle_dialy_line.py => cycle_daily_line.py} (78%) create mode 100644 netforce_clinic/models/cycle_monthly.py create mode 100644 netforce_clinic/models/cycle_monthly_line.py rename netforce_clinic/reports/{hd_case_dialy.xlsx => hd_case_daily.xlsx} (100%) rename netforce_clinic/templates/{hd_case_dialy.hbs => hd_case_daily.hbs} (100%) diff --git a/netforce_clinic/actions/clinic_cycle_dialy.xml b/netforce_clinic/actions/clinic_cycle_daily.xml similarity index 53% rename from netforce_clinic/actions/clinic_cycle_dialy.xml rename to netforce_clinic/actions/clinic_cycle_daily.xml index dba30fd..29643ad 100644 --- a/netforce_clinic/actions/clinic_cycle_dialy.xml +++ b/netforce_clinic/actions/clinic_cycle_daily.xml @@ -1,8 +1,8 @@ - Cycle Dialy + Cycle Daily multi_view - clinic.cycle.dialy - [["All",[]],["Draft",[["state","=","draft"]]],["Confirmed",[["state","=","confirmed"]]],["Done",[["state","=","done"]]]] + clinic.cycle.daily + [["All",[]],["Draft",[["state","=","draft"]]],["Confirmed",[["state","=","confirmed"]]]] list,form clinic_menu diff --git a/netforce_clinic/actions/clinic_cycle_dialy.xml.old b/netforce_clinic/actions/clinic_cycle_dialy.xml.old deleted file mode 100644 index 5df7a10..0000000 --- a/netforce_clinic/actions/clinic_cycle_dialy.xml.old +++ /dev/null @@ -1,11 +0,0 @@ - - Cycle Dialy - report_view - clinic.cycle.item - - date - cycle_id - - - clinic_menu - diff --git a/netforce_clinic/actions/clinic_cycle_monthly.xml b/netforce_clinic/actions/clinic_cycle_monthly.xml new file mode 100644 index 0000000..b4eadea --- /dev/null +++ b/netforce_clinic/actions/clinic_cycle_monthly.xml @@ -0,0 +1,8 @@ + + Cycle Monthly + multi_view + clinic.cycle.monthly + [["All",[]],["Draft",[["state","=","draft"]]],["Approved",[["state","=","approved"]]]] + list,form + clinic_menu + diff --git a/netforce_clinic/actions/clinic_hd_case_dialy.xml b/netforce_clinic/actions/clinic_hd_case_daily.xml similarity index 66% rename from netforce_clinic/actions/clinic_hd_case_dialy.xml rename to netforce_clinic/actions/clinic_hd_case_daily.xml index 5a13d45..898f79a 100644 --- a/netforce_clinic/actions/clinic_hd_case_dialy.xml +++ b/netforce_clinic/actions/clinic_hd_case_daily.xml @@ -1,8 +1,8 @@ - HD Case Dialy + HD Case Daily report - clinic.hd.case.dialy - hd_case_dialy - hd_case_dialy + clinic.hd.case.daily + hd_case_daily + hd_case_daily clinic_menu diff --git a/netforce_clinic/layouts/clinic_cycle_dialy_form.xml b/netforce_clinic/layouts/clinic_cycle_daily_form.xml similarity index 96% rename from netforce_clinic/layouts/clinic_cycle_dialy_form.xml rename to netforce_clinic/layouts/clinic_cycle_daily_form.xml index 2be38c1..5674a30 100644 --- a/netforce_clinic/layouts/clinic_cycle_dialy_form.xml +++ b/netforce_clinic/layouts/clinic_cycle_daily_form.xml @@ -1,4 +1,4 @@ -
+ @@ -50,7 +50,7 @@ - + diff --git a/netforce_clinic/layouts/clinic_cycle_list.xml b/netforce_clinic/layouts/clinic_cycle_list.xml index dfb0e3f..740e6b1 100644 --- a/netforce_clinic/layouts/clinic_cycle_list.xml +++ b/netforce_clinic/layouts/clinic_cycle_list.xml @@ -2,5 +2,5 @@ - + diff --git a/netforce_clinic/layouts/clinic_cycle_monthly_form.xml b/netforce_clinic/layouts/clinic_cycle_monthly_form.xml new file mode 100644 index 0000000..65ada86 --- /dev/null +++ b/netforce_clinic/layouts/clinic_cycle_monthly_form.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -36,6 +37,5 @@