From eee6a11129f990eaffc7ddb495fbf2d0dd3397d1 Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Sat, 1 Dec 2007 05:55:59 +0000 Subject: [PATCH] add planned and actual hours to projectoverview + some faults fixing git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@600050 13f79535-47bb-0310-9956-ffa450edef68 --- .../config/ProjectMgrUiLabels.properties | 6 +- .../org/ofbiz/project/ProjectServices.xml | 214 +++++++++++++++--- projectmgr/servicedef/services.xml | 20 +- .../WEB-INF/actions/getProjectId.bsh | 10 +- projectmgr/widget/CommonScreens.xml | 1 - projectmgr/widget/ProjectScreens.xml | 85 ++++--- projectmgr/widget/TaskScreens.xml | 22 +- projectmgr/widget/forms/ProjectForms.xml | 60 ++--- projectmgr/widget/forms/TaskForms.xml | 19 +- 9 files changed, 322 insertions(+), 115 deletions(-) diff --git a/projectmgr/config/ProjectMgrUiLabels.properties b/projectmgr/config/ProjectMgrUiLabels.properties index 8d4ef24e8..fb5a58463 100644 --- a/projectmgr/config/ProjectMgrUiLabels.properties +++ b/projectmgr/config/ProjectMgrUiLabels.properties @@ -48,8 +48,10 @@ PageTitleFindTask=Find Task PageTitleListPartyAssigns=Party Assigns PageTitleListProjectNotes=List Project Notes PageTitleListTaskNotes=List Task Notes -PageTitleTasksBefore=Tasks to be executed before the current task +PageTitleProjectInformation=Project Information PageTitleTasksAfter=Tasks to be executed after the current task +PageTitleTasksBefore=Tasks to be executed before the current task +PageTitleTaskInformation=Task information PageTitleUnassignedTask=Unassigned Task ProjectMgrActualHours=Actual Hours ProjectMgrCompanyName=Ofbiz Company @@ -72,6 +74,7 @@ ProjectMgrPartyList=List of Parties ProjectMgrProjectCurrent=Current Project ProjectMgrPhaseDetails=Enter the Phase Details below ProjectMgrPhaseName=Phase Name +ProjectMgrPhaseList=List of project Phases ProjectMgrPhases=Phases ProjectMgrPhaseTaskList=List of Phases and Tasks ProjectMgrProjectName=Project Name @@ -88,6 +91,7 @@ ProjectMgrSubProjectList=List of SubProjects ProjectMgrSubTasks=Sub Tasks ProjectMgrTaskCurrent=Current Task ProjectMgrTaskDetails=Enter the Task Details below +ProjectMgrTaskList=List of Project Tasks ProjectMgrTaskName=Task Name ProjectMgrTasks=Tasks ProjectMgrTaskList=List of Task diff --git a/projectmgr/script/org/ofbiz/project/ProjectServices.xml b/projectmgr/script/org/ofbiz/project/ProjectServices.xml index 95d622a7d..035368bc9 100644 --- a/projectmgr/script/org/ofbiz/project/ProjectServices.xml +++ b/projectmgr/script/org/ofbiz/project/ProjectServices.xml @@ -1,26 +1,26 @@ - + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> + @@ -41,10 +41,6 @@ under the License. - - - - @@ -63,7 +59,9 @@ under the License. - + + + @@ -75,6 +73,7 @@ under the License. + @@ -96,6 +95,8 @@ under the License. + + @@ -112,24 +113,130 @@ under the License. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -189,7 +296,17 @@ under the License. - + + + + + + + + + + + @@ -204,14 +321,43 @@ under the License. - - - - + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + diff --git a/projectmgr/servicedef/services.xml b/projectmgr/servicedef/services.xml index 158d8fe54..139840178 100644 --- a/projectmgr/servicedef/services.xml +++ b/projectmgr/servicedef/services.xml @@ -26,7 +26,7 @@ under the License. location="org/ofbiz/project/ProjectServices.xml" invoke="getProject"> Get project information and realated phase and task info. - + - Get project task information and related timesheet info. + Get project phase information and related task info. + + Get project task information and related timesheet info. + + + + + + + Get project information by party + + + + + diff --git a/projectmgr/webapp/projectmgr/WEB-INF/actions/getProjectId.bsh b/projectmgr/webapp/projectmgr/WEB-INF/actions/getProjectId.bsh index 62c361ff8..f988295de 100644 --- a/projectmgr/webapp/projectmgr/WEB-INF/actions/getProjectId.bsh +++ b/projectmgr/webapp/projectmgr/WEB-INF/actions/getProjectId.bsh @@ -23,12 +23,12 @@ import org.ofbiz.entity.*; import org.ofbiz.base.util.*; import org.ofbiz.base.util.UtilMisc; import javolution.util.FastMap; - +Debug.logInfo("==========workEffortId:" + parameters.get("workEffortId"),""); if (parameters.get("workEffortId") != null) { workEffortId = parameters.get("workEffortId"); - project = delegator.findByAnd("ProjectAndPhaseAndTask", UtilMisc.toMap("workEffortId", workEffortId)); - if (UtilValidate.isNotEmpty(project)) { - context.put("projectId", project.get(0).getString("projectId")); - context.put("projectName", project.get(0).getString("projectName")); + projects = delegator.findByAnd("ProjectAndPhaseAndTask", UtilMisc.toMap("workEffortId", workEffortId)); + if (UtilValidate.isNotEmpty(projects)) { + context.put("projectId", projects.get(0).getString("projectId")); + context.put("projectName", projects.get(0).getString("projectName")); } } \ No newline at end of file diff --git a/projectmgr/widget/CommonScreens.xml b/projectmgr/widget/CommonScreens.xml index 098a7c10c..600f33668 100644 --- a/projectmgr/widget/CommonScreens.xml +++ b/projectmgr/widget/CommonScreens.xml @@ -98,7 +98,6 @@ under the License.
-