From 700cc56e18e1c46ae68952e70c06062ad5861fc5 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 25 Nov 2014 18:39:53 +0700 Subject: [PATCH] replace personal to staff (need to migrate) --- .../{clinic_personal.xml => clinic_staff.xml} | 4 +- ...sonal_level.xml => clinic_staff_categ.xml} | 4 +- ...sonal_categ.xml => clinic_staff_level.xml} | 4 +- ...ersonal_move.xml => clinic_staff_move.xml} | 4 +- .../layouts/clinic_cycle_dialy_form.xml | 4 +- .../layouts/clinic_hd_case_form.xml | 6 +- netforce_clinic/layouts/clinic_menu.xml | 14 +- .../clinic_report_nurse_fee_detail.xml | 2 +- ...g_form.xml => clinic_staff_categ_form.xml} | 2 +- ...g_list.xml => clinic_staff_categ_list.xml} | 2 +- ...ersonal_form.xml => clinic_staff_form.xml} | 3 +- ...l_form.xml => clinic_staff_level_form.xml} | 2 +- ...l_list.xml => clinic_staff_level_list.xml} | 3 +- ...ersonal_list.xml => clinic_staff_list.xml} | 2 +- ...ve_form.xml => clinic_staff_move_form.xml} | 4 +- ...ve_list.xml => clinic_staff_move_list.xml} | 4 +- netforce_clinic/models/__init__.py | 13 +- netforce_clinic/models/address.py | 2 +- netforce_clinic/models/cycle_dialy_line.py | 6 +- netforce_clinic/models/cycle_item.py | 42 +++--- netforce_clinic/models/cycle_item_doctor.py | 18 --- netforce_clinic/models/cycle_item_line.py | 3 +- netforce_clinic/models/cycle_item_nurse.py | 4 +- netforce_clinic/models/gen_visit.py | 8 +- netforce_clinic/models/gen_visit_line.py | 2 +- netforce_clinic/models/hd_case.py | 18 ++- .../{hd_case_personal.py => hd_case_staff.py} | 10 +- netforce_clinic/models/load_nurse.py | 4 +- netforce_clinic/models/load_nurse_line.py | 2 +- netforce_clinic/models/patient.py | 4 +- .../models/report_nurse_fee_detail.py | 46 +++---- .../models/report_nurse_fee_sum.py | 6 +- netforce_clinic/models/schedule.py | 4 +- netforce_clinic/models/schedule.py.old | 130 ------------------ netforce_clinic/models/schedule_line.py | 4 +- netforce_clinic/models/setting.py | 4 +- netforce_clinic/models/setting_level.py | 2 +- .../models/{personal.py => staff.py} | 28 ++-- .../{personal_categ.py => staff_categ.py} | 12 +- .../{personal_cycle.py => staff_cycle.py} | 10 +- .../{personal_level.py => staff_level.py} | 18 ++- .../{personal_move.py => staff_move.py} | 12 +- netforce_clinic/models/utils.py | 4 +- netforce_clinic/models/visit.py | 15 +- netforce_clinic/templates/hd_case_dialy.hbs | 2 +- .../templates/report_nurse_fee_detail.hbs | 12 +- netforce_clinic/todo.txt | 19 +++ 47 files changed, 196 insertions(+), 332 deletions(-) rename netforce_clinic/actions/{clinic_personal.xml => clinic_staff.xml} (76%) rename netforce_clinic/actions/{clinic_personal_level.xml => clinic_staff_categ.xml} (60%) rename netforce_clinic/actions/{clinic_personal_categ.xml => clinic_staff_level.xml} (59%) rename netforce_clinic/actions/{clinic_personal_move.xml => clinic_staff_move.xml} (51%) rename netforce_clinic/layouts/{clinic_personal_categ_form.xml => clinic_staff_categ_form.xml} (75%) rename netforce_clinic/layouts/{clinic_personal_categ_list.xml => clinic_staff_categ_list.xml} (70%) rename netforce_clinic/layouts/{clinic_personal_form.xml => clinic_staff_form.xml} (97%) rename netforce_clinic/layouts/{clinic_personal_level_form.xml => clinic_staff_level_form.xml} (87%) rename netforce_clinic/layouts/{clinic_personal_level_list.xml => clinic_staff_level_list.xml} (61%) rename netforce_clinic/layouts/{clinic_personal_list.xml => clinic_staff_list.xml} (84%) rename netforce_clinic/layouts/{clinic_personal_move_form.xml => clinic_staff_move_form.xml} (78%) rename netforce_clinic/layouts/{clinic_personal_move_list.xml => clinic_staff_move_list.xml} (78%) delete mode 100644 netforce_clinic/models/cycle_item_doctor.py rename netforce_clinic/models/{hd_case_personal.py => hd_case_staff.py} (65%) delete mode 100644 netforce_clinic/models/schedule.py.old rename netforce_clinic/models/{personal.py => staff.py} (84%) rename netforce_clinic/models/{personal_categ.py => staff_categ.py} (61%) rename netforce_clinic/models/{personal_cycle.py => staff_cycle.py} (71%) rename netforce_clinic/models/{personal_level.py => staff_level.py} (63%) rename netforce_clinic/models/{personal_move.py => staff_move.py} (68%) diff --git a/netforce_clinic/actions/clinic_personal.xml b/netforce_clinic/actions/clinic_staff.xml similarity index 76% rename from netforce_clinic/actions/clinic_personal.xml rename to netforce_clinic/actions/clinic_staff.xml index a8c385b..85eec9a 100644 --- a/netforce_clinic/actions/clinic_personal.xml +++ b/netforce_clinic/actions/clinic_staff.xml @@ -1,7 +1,7 @@ - Personals + Staffs multi_view - clinic.personal + clinic.staff [["All",[]],["Archived",[["active","=",false]]],["Doctor",[["type","=","doctor"]]],["Nurse",[["type","=","nurse"]]]] list,page,form clinic_menu diff --git a/netforce_clinic/actions/clinic_personal_level.xml b/netforce_clinic/actions/clinic_staff_categ.xml similarity index 60% rename from netforce_clinic/actions/clinic_personal_level.xml rename to netforce_clinic/actions/clinic_staff_categ.xml index fd79478..c0d057a 100644 --- a/netforce_clinic/actions/clinic_personal_level.xml +++ b/netforce_clinic/actions/clinic_staff_categ.xml @@ -1,7 +1,7 @@ - Personal Levels + Staff Categories multi_view - clinic.personal.level + clinic.staff.categ list,page,form clinic_menu diff --git a/netforce_clinic/actions/clinic_personal_categ.xml b/netforce_clinic/actions/clinic_staff_level.xml similarity index 59% rename from netforce_clinic/actions/clinic_personal_categ.xml rename to netforce_clinic/actions/clinic_staff_level.xml index 0f49c15..3e21a70 100644 --- a/netforce_clinic/actions/clinic_personal_categ.xml +++ b/netforce_clinic/actions/clinic_staff_level.xml @@ -1,7 +1,7 @@ - Personal Categories + Staff Levels multi_view - clinic.personal.categ + clinic.staff.level list,page,form clinic_menu diff --git a/netforce_clinic/actions/clinic_personal_move.xml b/netforce_clinic/actions/clinic_staff_move.xml similarity index 51% rename from netforce_clinic/actions/clinic_personal_move.xml rename to netforce_clinic/actions/clinic_staff_move.xml index 9fe02fc..3658897 100644 --- a/netforce_clinic/actions/clinic_personal_move.xml +++ b/netforce_clinic/actions/clinic_staff_move.xml @@ -1,6 +1,6 @@ - Personal Moves + Staff Moves multi_view - clinic.personal.move + clinic.staff.move clinic_menu diff --git a/netforce_clinic/layouts/clinic_cycle_dialy_form.xml b/netforce_clinic/layouts/clinic_cycle_dialy_form.xml index 1810c58..2be38c1 100644 --- a/netforce_clinic/layouts/clinic_cycle_dialy_form.xml +++ b/netforce_clinic/layouts/clinic_cycle_dialy_form.xml @@ -12,7 +12,7 @@ - + @@ -21,7 +21,7 @@
- + diff --git a/netforce_clinic/layouts/clinic_hd_case_form.xml b/netforce_clinic/layouts/clinic_hd_case_form.xml index cbd19f6..dff986d 100644 --- a/netforce_clinic/layouts/clinic_hd_case_form.xml +++ b/netforce_clinic/layouts/clinic_hd_case_form.xml @@ -77,11 +77,11 @@ - - + + - + diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index 32d6d00..74db761 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -1,16 +1,16 @@ - - - - + + + +
- +
- - + + diff --git a/netforce_clinic/layouts/clinic_report_nurse_fee_detail.xml b/netforce_clinic/layouts/clinic_report_nurse_fee_detail.xml index 24efed2..f55d7c8 100644 --- a/netforce_clinic/layouts/clinic_report_nurse_fee_detail.xml +++ b/netforce_clinic/layouts/clinic_report_nurse_fee_detail.xml @@ -2,6 +2,6 @@ - + diff --git a/netforce_clinic/layouts/clinic_personal_categ_form.xml b/netforce_clinic/layouts/clinic_staff_categ_form.xml similarity index 75% rename from netforce_clinic/layouts/clinic_personal_categ_form.xml rename to netforce_clinic/layouts/clinic_staff_categ_form.xml index 396f1c9..41bf585 100644 --- a/netforce_clinic/layouts/clinic_personal_categ_form.xml +++ b/netforce_clinic/layouts/clinic_staff_categ_form.xml @@ -1,4 +1,4 @@ -
+ diff --git a/netforce_clinic/layouts/clinic_personal_categ_list.xml b/netforce_clinic/layouts/clinic_staff_categ_list.xml similarity index 70% rename from netforce_clinic/layouts/clinic_personal_categ_list.xml rename to netforce_clinic/layouts/clinic_staff_categ_list.xml index 3b8b4fd..6a20945 100644 --- a/netforce_clinic/layouts/clinic_personal_categ_list.xml +++ b/netforce_clinic/layouts/clinic_staff_categ_list.xml @@ -1,4 +1,4 @@ - + diff --git a/netforce_clinic/layouts/clinic_personal_form.xml b/netforce_clinic/layouts/clinic_staff_form.xml similarity index 97% rename from netforce_clinic/layouts/clinic_personal_form.xml rename to netforce_clinic/layouts/clinic_staff_form.xml index 288478c..90063b4 100644 --- a/netforce_clinic/layouts/clinic_personal_form.xml +++ b/netforce_clinic/layouts/clinic_staff_form.xml @@ -1,4 +1,4 @@ - +