From d0395e9fcf94051de7f9b0dce2732f4032ce2c67 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Mon, 17 Nov 2014 07:59:19 +0700 Subject: [PATCH] demo --- .../actions/clinic_cycle_dialy.xml | 10 +- .../actions/clinic_cycle_dialy.xml.old | 11 ++ .../actions/clinic_schedule_copy.xml | 6 + .../actions/clinic_visit_dialy.xml | 16 +- .../actions/clinic_visit_widget.xml | 1 + .../layouts/clinic_cycle_dialy_form.xml | 16 ++ .../layouts/clinic_cycle_dialy_list.xml | 3 + .../layouts/clinic_cycle_item_form.xml | 3 + netforce_clinic/layouts/clinic_menu.xml | 2 +- .../layouts/clinic_schedule_copy_form.xml | 17 ++ .../layouts/clinic_schedule_form.xml | 4 +- .../layouts/clinic_schedule_list.xml | 1 + .../layouts/clinic_visit_calendar.xml | 3 +- .../layouts/clinic_visit_dialy.xml | 3 + netforce_clinic/layouts/clinic_visit_form.xml | 3 + .../layouts/clinic_visit_widget.xml | 2 + netforce_clinic/models/__init__.py | 2 + netforce_clinic/models/cycle_dialy.py | 27 ++++ netforce_clinic/models/cycle_item.py | 35 +++- netforce_clinic/models/gen_visit.py | 1 - netforce_clinic/models/load_nurse.py | 7 +- netforce_clinic/models/schedule.py | 17 +- netforce_clinic/models/schedule_copy.py | 153 ++++++++++++++++++ netforce_clinic/models/visit.py | 12 +- netforce_clinic/models/visit_dialy.py | 68 +++++++- netforce_clinic/reports/visit_dialy.xlsx | Bin 0 -> 5043 bytes netforce_clinic/templates/visit_dialy.hbs | 33 ++++ netforce_clinic/todo.txt | 6 +- 28 files changed, 417 insertions(+), 45 deletions(-) create mode 100644 netforce_clinic/actions/clinic_cycle_dialy.xml.old create mode 100644 netforce_clinic/actions/clinic_schedule_copy.xml create mode 100644 netforce_clinic/layouts/clinic_cycle_dialy_form.xml create mode 100644 netforce_clinic/layouts/clinic_cycle_dialy_list.xml create mode 100644 netforce_clinic/layouts/clinic_schedule_copy_form.xml create mode 100644 netforce_clinic/layouts/clinic_visit_dialy.xml create mode 100644 netforce_clinic/models/cycle_dialy.py create mode 100644 netforce_clinic/models/schedule_copy.py create mode 100644 netforce_clinic/reports/visit_dialy.xlsx create mode 100644 netforce_clinic/templates/visit_dialy.hbs diff --git a/netforce_clinic/actions/clinic_cycle_dialy.xml b/netforce_clinic/actions/clinic_cycle_dialy.xml index 5df7a10..2271659 100644 --- a/netforce_clinic/actions/clinic_cycle_dialy.xml +++ b/netforce_clinic/actions/clinic_cycle_dialy.xml @@ -1,11 +1,7 @@ Cycle Dialy - report_view - clinic.cycle.item - - date - cycle_id - - + multi_view + clinic.cycle.dialy + list,form clinic_menu diff --git a/netforce_clinic/actions/clinic_cycle_dialy.xml.old b/netforce_clinic/actions/clinic_cycle_dialy.xml.old new file mode 100644 index 0000000..5df7a10 --- /dev/null +++ b/netforce_clinic/actions/clinic_cycle_dialy.xml.old @@ -0,0 +1,11 @@ + + Cycle Dialy + report_view + clinic.cycle.item + + date + cycle_id + + + clinic_menu + diff --git a/netforce_clinic/actions/clinic_schedule_copy.xml b/netforce_clinic/actions/clinic_schedule_copy.xml new file mode 100644 index 0000000..db43ab9 --- /dev/null +++ b/netforce_clinic/actions/clinic_schedule_copy.xml @@ -0,0 +1,6 @@ + + Copy Schedule + form_popup + clinic.schedule.copy + _popup + diff --git a/netforce_clinic/actions/clinic_visit_dialy.xml b/netforce_clinic/actions/clinic_visit_dialy.xml index b49b346..dfbc3c2 100644 --- a/netforce_clinic/actions/clinic_visit_dialy.xml +++ b/netforce_clinic/actions/clinic_visit_dialy.xml @@ -1,10 +1,8 @@ - + Visit Dialy - report_view - clinic.visit - - visit_date - visit_date,cycle_id - - clinic_menu - + report + clinic.visit.dialy + visit_dialy + visit_dialy + clinic_menu + diff --git a/netforce_clinic/actions/clinic_visit_widget.xml b/netforce_clinic/actions/clinic_visit_widget.xml index 9b8637a..0b9159d 100644 --- a/netforce_clinic/actions/clinic_visit_widget.xml +++ b/netforce_clinic/actions/clinic_visit_widget.xml @@ -2,6 +2,7 @@ list_view clinic.visit [["state","not in",["confirmed"]]] + clinic_visit_widget 10 diff --git a/netforce_clinic/layouts/clinic_cycle_dialy_form.xml b/netforce_clinic/layouts/clinic_cycle_dialy_form.xml new file mode 100644 index 0000000..5215aee --- /dev/null +++ b/netforce_clinic/layouts/clinic_cycle_dialy_form.xml @@ -0,0 +1,16 @@ +
+ + + + + + + + + + + + + + diff --git a/netforce_clinic/layouts/clinic_cycle_dialy_list.xml b/netforce_clinic/layouts/clinic_cycle_dialy_list.xml new file mode 100644 index 0000000..6792cf3 --- /dev/null +++ b/netforce_clinic/layouts/clinic_cycle_dialy_list.xml @@ -0,0 +1,3 @@ + + + diff --git a/netforce_clinic/layouts/clinic_cycle_item_form.xml b/netforce_clinic/layouts/clinic_cycle_item_form.xml index d8aa5d3..431cd7b 100644 --- a/netforce_clinic/layouts/clinic_cycle_item_form.xml +++ b/netforce_clinic/layouts/clinic_cycle_item_form.xml @@ -16,6 +16,9 @@
+ + + @@ -19,7 +19,7 @@ - + diff --git a/netforce_clinic/layouts/clinic_schedule_list.xml b/netforce_clinic/layouts/clinic_schedule_list.xml index 565d306..34cb5de 100644 --- a/netforce_clinic/layouts/clinic_schedule_list.xml +++ b/netforce_clinic/layouts/clinic_schedule_list.xml @@ -1,4 +1,5 @@ + diff --git a/netforce_clinic/layouts/clinic_visit_calendar.xml b/netforce_clinic/layouts/clinic_visit_calendar.xml index f5515a7..11d8e9f 100644 --- a/netforce_clinic/layouts/clinic_visit_calendar.xml +++ b/netforce_clinic/layouts/clinic_visit_calendar.xml @@ -4,5 +4,6 @@ - + + diff --git a/netforce_clinic/layouts/clinic_visit_dialy.xml b/netforce_clinic/layouts/clinic_visit_dialy.xml new file mode 100644 index 0000000..3a275c4 --- /dev/null +++ b/netforce_clinic/layouts/clinic_visit_dialy.xml @@ -0,0 +1,3 @@ +
+ + diff --git a/netforce_clinic/layouts/clinic_visit_form.xml b/netforce_clinic/layouts/clinic_visit_form.xml index 44c2815..f667683 100644 --- a/netforce_clinic/layouts/clinic_visit_form.xml +++ b/netforce_clinic/layouts/clinic_visit_form.xml @@ -25,6 +25,9 @@ + + +