git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688656 13f79535-47bb-0310-9956-ffa450edef68
399 lines
23 KiB
XML
399 lines
23 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
|
<menu name="ProjectMgrAppBar" title="${uiLabelMap.ProjectMgrApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
|
|
|
<menu-item name="mytasks" title="${uiLabelMap.WorkEffortMyTasks}"><link target="MyTasks"/></menu-item>
|
|
<menu-item name="mytime" title="${uiLabelMap.TimesheetMyTime}"><link target="MyTimesheet"/></menu-item>
|
|
<menu-item name="projects" title="${uiLabelMap.WorkEffortProjects}"><link target="FindProject"/></menu-item>
|
|
<menu-item name="task" title="${uiLabelMap.ProjectMgrTasks}"><link target="FindTask"/></menu-item>
|
|
<menu-item name="resources" title="${uiLabelMap.ProjectMgrResources}">
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR_ADMIN"/>
|
|
</condition>
|
|
<link target="FindResource"/>
|
|
</menu-item>
|
|
<menu-item name="timesheet" title="${uiLabelMap.Timesheet}">
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR_ADMIN"/>
|
|
</condition>
|
|
<link target="FindTimeSheet"/>
|
|
</menu-item>
|
|
<menu-item name="SkillType" title="${uiLabelMap.ProjectMgrSkillType}">
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR_ADMIN"/>
|
|
</condition>
|
|
<link target="findSkillTypes"/>
|
|
</menu-item>
|
|
<!--menu-item name="calendar" title="${uiLabelMap.WorkEffortCalendar}"><link target="day"/></menu-item-->
|
|
<menu-item name="request" title="${uiLabelMap.WorkEffortRequestList}">
|
|
<condition>
|
|
<if-has-permission permission="PROJECTMGR_ADMIN"/>
|
|
</condition>
|
|
<link target="requestlist"/>
|
|
</menu-item>
|
|
|
|
<menu-item name="help" title="${uiLabelMap.CommonHelp}" align-style="opposed">
|
|
<link target="http://docs.ofbiz.org/display/OFBENDUSER/Project+Manager+Application+Roles?decorator=printable" url-mode="plain" target-window="new"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="ProjectTabBar" type="simple" menu-container-style="button-bar tab-bar" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<actions>
|
|
<set field="projectId" from-field="parameters.projectId" default-value="${parameters.workEffortId}"/>
|
|
<set field="hasUpdatePermission" value="${bsh:
|
|
result = dispatcher.runSync("projectMgrPermission",
|
|
org.ofbiz.base.util.UtilMisc.toMap("userLogin", parameters.get("userLogin"),
|
|
"resourceDescription", "Project",
|
|
"mainAction", "UPDATE",
|
|
"projectId", projectId));
|
|
return result.get("hasPermission"); }" type="Boolean"/>
|
|
<set field="hasViewPermission" value="${bsh:
|
|
result = dispatcher.runSync("projectMgrPermission",
|
|
org.ofbiz.base.util.UtilMisc.toMap("userLogin", parameters.get("userLogin"),
|
|
"resourceDescription", "Project",
|
|
"mainAction", "VIEW",
|
|
"projectId", projectId));
|
|
return result.get("hasPermission"); }" type="Boolean"/>
|
|
</actions>
|
|
<menu-item name="ganttchart" title="${uiLabelMap.ProjectMgrGanttChart}">
|
|
<condition>
|
|
<if-compare field-name="hasViewPermission" operator="equals" value="true"/>
|
|
</condition>
|
|
<link target="ganttChart?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="projectView" title="${uiLabelMap.ProjectMgrProjectSummary}">
|
|
<condition>
|
|
<if-compare field-name="hasViewPermission" operator="equals" value="true"/>
|
|
</condition>
|
|
<link target="projectView?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="editproject" title="${uiLabelMap.ProjectMgrEditPoject}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditProject?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="phases" title="${uiLabelMap.ProjectMgrPhases}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="FindPhase?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="tasks" title="${uiLabelMap.ProjectMgrTasks}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditProjectTasks?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="parties" title="${uiLabelMap.ProjectMgrResources}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="ListWorkEffortPartyAssigns?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="notes" title="${uiLabelMap.CommonNotes}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditWorkEffortNotes?projectId=${projectId}"/>
|
|
</menu-item>
|
|
<menu-item name="subprojects" title="${uiLabelMap.ProjectMgrSubProjects}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="ListSubProjects?projectId=${projectId}&subProjects=true"/>
|
|
</menu-item>
|
|
<menu-item name="billing" title="${uiLabelMap.ProjectMgrBilling}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
<if-compare field-name="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="projectBilling?projectId=${projectId}"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="ProjectSubTabBar" type="simple" menu-container-style="button-bar button-style-2" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<actions>
|
|
<set field="projectId" from-field="parameters.projectId" default-value="${parameters.workEffortId}"/>
|
|
<set field="hasUpdatePermission" value="${bsh:
|
|
result = dispatcher.runSync("projectMgrPermission",
|
|
org.ofbiz.base.util.UtilMisc.toMap("userLogin", parameters.get("userLogin"),
|
|
"resourceDescription", "Project",
|
|
"mainAction", "UPDATE",
|
|
"projectId", projectId));
|
|
return result.get("hasPermission"); }" type="Boolean"/>
|
|
</actions>
|
|
<menu-item name="newProject" title="${uiLabelMap.ProjectMgrNewProject}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditProject"></link>
|
|
</menu-item>
|
|
<menu-item name="copyProject" title="${uiLabelMap.ProjectMgrCopyProject}">
|
|
<condition>
|
|
<and>
|
|
<not>
|
|
<if-empty field-name="project"/>
|
|
</not>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
</and>
|
|
</condition>
|
|
<link target="copyProject?projectId=${projectId}"></link>
|
|
</menu-item>
|
|
<menu-item name="schedule" title="${uiLabelMap.ProjectMgrSchedule}">
|
|
<condition>
|
|
<and>
|
|
<not>
|
|
<if-empty field-name="project"/>
|
|
</not>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
</and>
|
|
</condition>
|
|
<link target="scheduleProject?projectId=${projectId}"></link>
|
|
</menu-item>
|
|
<menu-item name="copyProjectToTemplate" title="${uiLabelMap.ProjectMgrSaveAsTemplate}">
|
|
<condition>
|
|
<and>
|
|
<not>
|
|
<if-empty field-name="project"/>
|
|
</not>
|
|
<if-compare field-name="hasUpdatePermission" operator="equals" value="true"/>
|
|
</and>
|
|
</condition>
|
|
<link target="copyProjectToTemplate?projectId=${projectId}"></link>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="TaskTabBar" type="simple" menu-container-style="button-bar tab-bar" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="taskView" title="${uiLabelMap.ProjectMgrTaskSummary}">
|
|
<condition>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
</condition>
|
|
<link target="taskView?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
<menu-item name="edittask" title="${uiLabelMap.ProjectMgrEditTask}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditTask?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
<menu-item name="dependencies" title="${uiLabelMap.ProjectMgrDependencies}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="Dependencies?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
<menu-item name="parties" title="${uiLabelMap.ProjectMgrResources}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditTaskPartyAssigns?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
<menu-item name="projectskills" title="${uiLabelMap.ProjectMgrSkillStandards}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditTaskSkills?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
<menu-item name="timeEntries" title="${uiLabelMap.ProjectMgrTimeEntries}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="EditTimeEntries?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
<menu-item name="notes" title="${uiLabelMap.CommonNotes}">
|
|
<condition>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
</condition>
|
|
<link target="EditTaskNotes?workEffortId=${workEffortId}"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="TaskSubTabBar" menu-container-style="button-bar button-style-2" default-selected-style="selected">
|
|
<menu-item name="new" title="${uiLabelMap.CommonNew}" >
|
|
<link target="addProjectTask"/>
|
|
</menu-item>
|
|
<menu-item name="setonhold" title="${uiLabelMap.ProjectMgrSetOnHold}" >
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="setTaskStatus?workEffortId=${workEffortId}&currentStatusId=PTS_ON_HOLD"/>
|
|
</menu-item>
|
|
<menu-item name="release" title="${uiLabelMap.ProjectMgrRelease}" >
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="equals" value="PTS_ON_HOLD"/>
|
|
</and>
|
|
</condition>
|
|
<link target="setTaskStatus?workEffortId=${workEffortId}&currentStatusId=PTS_CREATED"/>
|
|
</menu-item>
|
|
<menu-item name="cancel" title="${uiLabelMap.CommonCancel}" >
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="workEffort"/></not>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
|
|
<if-compare field-name="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="setTaskStatus?workEffortId=${workEffortId}&currentStatusId=PTS_CANCELLED"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="TimesheetTabBar" menu-container-style="button-bar tab-bar" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="findtimesheet" title="${uiLabelMap.CommonFind}">
|
|
<link target="FindTimeSheet"/>
|
|
</menu-item>
|
|
<menu-item name="addTimesheet" title="${uiLabelMap.CommonAdd}">
|
|
<link target="addWeeklyTimesheet"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="TimesheetSubTabBar" menu-container-style="button-bar button-style-2" default-menu-item-name="StatustoProgress" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="addTimesheet" title="${uiLabelMap.CommonNew}">
|
|
<link target="addWeeklyTimesheet"/>
|
|
</menu-item>
|
|
<menu-item name="TimeSheetStatusToComplete" title="${uiLabelMap.CommonStatustoComplete}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="timesheet"/></not>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
|
|
</and>
|
|
</condition>
|
|
<link target="TimeSheetStatusToComplete?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
|
|
</menu-item>
|
|
<menu-item name="TimeSheetStatustoProgress" title="Set status to In Progress">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="timesheet"/></not>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/>
|
|
</and>
|
|
</condition>
|
|
<link target="TimeSheetStatustoProgress?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_IN_PROCESS"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="MyTimeSubTabBar" menu-container-style="button-bar button-style-2" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="TimeSheetStatusToComplete" title="${uiLabelMap.CommonStatustoComplete}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="timesheet"/></not>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
|
|
</and>
|
|
</condition>
|
|
<link target="myTimeSheetStatusToComplete?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="ResourceTabBar" menu-container-style="button-bar tab-bar" default-menu-item-name="edittimesheet" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="ResourcesProfile" title="${uiLabelMap.PartyProfile}">
|
|
<link target="viewprofile?partyId=${partyId}"/>
|
|
</menu-item>
|
|
<menu-item name="listResourcesProject" title="${uiLabelMap.ProjectMgrProjectId}">
|
|
<link target="listResourcesProject?partyId=${partyId}"></link>
|
|
</menu-item>
|
|
<menu-item name="listResourcesTask" title="${uiLabelMap.ProjectMgrTaskId}">
|
|
<link target="listResourcesTask?partyId=${partyId}"></link>
|
|
</menu-item>
|
|
<menu-item name="EditPartyRates" title="${uiLabelMap.ProjectMgrRates}">
|
|
<link target="EditPartyRates?partyId=${partyId}"></link>
|
|
</menu-item>
|
|
<menu-item name="ListUnBilledHours" title="${uiLabelMap.ProjectMgrBilling}">
|
|
<link target="ListResourcesUnBilledHours?partyId=${partyId}"></link>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="RequestTabBar" menu-container-style="button-bar tab-bar" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="ViewRequest" title="${uiLabelMap.ProjectMgrView}">
|
|
<link target="ViewRequest?custRequestId=${parameters.custRequestId}"/>
|
|
</menu-item>
|
|
<menu-item name="editRequest" title="${uiLabelMap.ProjectMgrEdit}">
|
|
<link target="EditRequest?custRequestId=${parameters.custRequestId}"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="TimesheetBar">
|
|
<menu-item name="setToComplete" title="${uiLabelMap.CommonStatustoComplete}">
|
|
<condition>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
|
|
</condition>
|
|
<link target="${my}StatusToComplete?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
|
|
</menu-item>
|
|
</menu>
|
|
</menus>
|