@@ -76,17 +76,32 @@
Earliest finish |
- @project.earliest_finish_date@ |
+
+ @project.earliest_finish_date@ |
+
+
+ Ongoing |
+
Deadline |
- @project.planned_end_date@ |
+
+ @project.planned_end_date@ |
+
+
+ Ongoing |
+
Latest finish |
- @project.latest_finish_date@ |
+
+ @project.latest_finish_date@ |
+
+
+ Ongoing |
+
@@ -97,10 +112,32 @@
+
+
+
+ Project information |
+
+
+
+
+
+ |
+
+
+
+
+
+
Categories |
@@ -123,26 +160,15 @@
-
-
-
- Project information |
-
-
-
-
-
-
-
Add subproject
Subprojects:
- People:
-
+
Index: openacs-4/contrib/packages/project-manager/www/one.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/one.tcl,v
diff -u -r1.26.2.4 -r1.26.2.5
--- openacs-4/contrib/packages/project-manager/www/one.tcl 10 Jan 2004 01:04:02 -0000 1.26.2.4
+++ openacs-4/contrib/packages/project-manager/www/one.tcl 4 Feb 2004 20:17:19 -0000 1.26.2.5
@@ -360,6 +360,8 @@
db_1row custom_query { } -column_array custom
+set custom(pretty_target_rollout) [lc_time_fmt $custom(target_rollout) "%x"]
+
# end of customizations
Index: openacs-4/contrib/packages/project-manager/www/task-add-edit-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-add-edit-postgresql.xql,v
diff -u -r1.11.2.2 -r1.11.2.3
--- openacs-4/contrib/packages/project-manager/www/task-add-edit-postgresql.xql 10 Jan 2004 01:04:02 -0000 1.11.2.2
+++ openacs-4/contrib/packages/project-manager/www/task-add-edit-postgresql.xql 4 Feb 2004 20:17:19 -0000 1.11.2.3
@@ -22,7 +22,6 @@
select pm_task__new_task_item (
- null,
:project_item_id,
:p_task_title,
:p_description,
Index: openacs-4/contrib/packages/project-manager/www/task-one-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-one-postgresql.xql,v
diff -u -r1.16.2.1 -r1.16.2.2
--- openacs-4/contrib/packages/project-manager/www/task-one-postgresql.xql 10 Jan 2004 01:04:02 -0000 1.16.2.1
+++ openacs-4/contrib/packages/project-manager/www/task-one-postgresql.xql 4 Feb 2004 20:17:19 -0000 1.16.2.2
@@ -53,13 +53,17 @@
t.estimated_hours_work_min,
t.estimated_hours_work_max,
t.percent_complete,
- i.live_revision
+ i.live_revision,
+ p.first_names || ' ' || p.last_name as creation_user
FROM
- pm_tasks_revisionsx t, cr_items i
+ pm_tasks_revisionsx t,
+ cr_items i,
+ persons p
WHERE
t.item_id = :task_id and
t.revision_id = :task_revision_id and
- t.item_id = i.item_id
+ t.item_id = i.item_id and
+ t.creation_user = p.person_id
@@ -70,17 +74,18 @@
t.revision_id,
i.live_revision,
t.title as task_title,
- t.description,
+ t.description || ' -- ' || p.first_names || ' ' || p.last_name as description,
to_char(t.end_date,'MM/DD/YYYY') as end_date,
t.percent_complete,
t.estimated_hours_work_min,
t.estimated_hours_work_max,
t.actual_hours_worked
FROM
- pm_tasks_revisionsx t, cr_items i
+ pm_tasks_revisionsx t, cr_items i, persons p
WHERE
t.item_id = :task_id and
- t.item_id = i.item_id
+ t.item_id = i.item_id and
+ t.creation_user = p.person_id
[template::list::orderby_clause -name revisions -orderby]
Index: openacs-4/contrib/packages/project-manager/www/task-one.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-one.adp,v
diff -u -r1.19.2.2 -r1.19.2.3
--- openacs-4/contrib/packages/project-manager/www/task-one.adp 10 Jan 2004 01:04:02 -0000 1.19.2.2
+++ openacs-4/contrib/packages/project-manager/www/task-one.adp 4 Feb 2004 20:17:19 -0000 1.19.2.3
@@ -28,6 +28,8 @@
Description |
@task_info.description;noquote@
+ |
+ | -- @task_info.creation_user@ |
Index: openacs-4/contrib/packages/project-manager/www/tasks-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/tasks-postgresql.xql,v
diff -u -r1.1.2.3 -r1.1.2.4
--- openacs-4/contrib/packages/project-manager/www/tasks-postgresql.xql 15 Jan 2004 01:20:49 -0000 1.1.2.3
+++ openacs-4/contrib/packages/project-manager/www/tasks-postgresql.xql 4 Feb 2004 20:17:19 -0000 1.1.2.4
@@ -10,7 +10,11 @@
t.task_revision_id,
t.title,
t.description,
- to_char(t.end_date,'YYYY-MM-DD HH24:MI') as end_date,
+ to_char(t.earliest_start,'J') as earliest_start_j,
+ to_char(current_timestamp,'J') as today_j,
+ to_char(t.latest_start,'J') as latest_start_j,
+ to_char(t.latest_start,'YYYY-MM-DD HH24:MI') as latest_start,
+ to_char(t.latest_finish,'YYYY-MM-DD HH24:MI') as latest_finish,
t.percent_complete,
t.estimated_hours_work,
t.estimated_hours_work_min,
Index: openacs-4/contrib/packages/project-manager/www/tasks.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/tasks.tcl,v
diff -u -r1.1.2.4 -r1.1.2.5
--- openacs-4/contrib/packages/project-manager/www/tasks.tcl 10 Jan 2004 01:04:02 -0000 1.1.2.4
+++ openacs-4/contrib/packages/project-manager/www/tasks.tcl 4 Feb 2004 20:17:19 -0000 1.1.2.5
@@ -62,6 +62,7 @@
label "\#"
link_url_col item_url
link_html { title "View this project version" }
+ display_template {@tasks.task_id@}
}
title {
label "Subject"
@@ -73,9 +74,15 @@
description {
label "Description"
}
- end_date {
- label "Deadline"
+ slack_time {
+ label "Slack time"
}
+ latest_start_pretty {
+ label "Latest Start"
+ }
+ latest_finish_pretty {
+ label "Latest Finish"
+ }
actual_hours_worked {
label "Hours completed"
display_template "@tasks.actual_hours_worked@/@tasks.estimated_hours_work@"
@@ -93,13 +100,10 @@
-filters {
searchterm {
label "Search"
- where_clause {
- t.title ilike '%:searchterm%'
- }
}
party_id {
label "People"
- values {[db_list_of_lists get_people "select first_names || ' ' || last_name, u.party_id from all_users u, pm_task_assignment a where u.party_id = a.party_id order by upper(first_names), upper(last_name)"]}
+ values {[db_list_of_lists get_people "select distinct(first_names || ' ' || last_name) as fullname, u.person_id from persons u, pm_task_assignment a where u.person_id = a.party_id order by fullname"]}
where_clause {
t.party_id = :party_id
}
@@ -126,9 +130,24 @@
}
-db_multirow -extend { item_url } tasks tasks {
+db_multirow -extend { item_url latest_start_pretty latest_finish_pretty slack_time} tasks tasks {
} {
set item_url [export_vars -base "task-one" {task_id}]
+
+ set latest_start_pretty [lc_time_fmt $latest_start "%x"]
+ set latest_finish_pretty [lc_time_fmt $latest_finish "%x"]
+
+ if {[exists_and_not_null earliest_start_j]} {
+ if {$earliest_start_j < $today_j} {
+ set slack_time "[expr $latest_start_j - $today_j] days"
+ } else {
+ set slack_time "[expr $latest_start_j - $earliest_start_j] days"
+ }
+ } else {
+ set slack_time "n/a"
+ }
+
+
}