Files
ofbiz-plugins/projectmgr/widget/Menus.xml
T
Bruno Busco 885241097f Removed "Help" menu items in MyPortal and ProjectMgr Applications.
For those a relative *HelpUrls.xml file has been created to point to the same Confluence pages.
(At the moment, when entering Confluence with those links, Confluence complains that the requested page is actually present in a different space and offers a link to go there. We should consider to move ALL linked pages in the same space)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@754641 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 09:28:21 +00:00

513 lines
28 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.WorkEffortTimesheetMyTime}"><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.WorkEffortTimesheet}">
<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>
<menu name="ProjectTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<actions>
<set field="projectId" from-field="parameters.projectId" default-value="${parameters.workEffortId}"/>
<set field="hasUpdatePermission" value="${bsh:
result = dispatcher.runSync(&quot;projectMgrPermission&quot;,
org.ofbiz.base.util.UtilMisc.toMap(&quot;userLogin&quot;, parameters.get(&quot;userLogin&quot;),
&quot;resourceDescription&quot;, &quot;Project&quot;,
&quot;mainAction&quot;, &quot;UPDATE&quot;,
&quot;projectId&quot;, projectId));
return result.get(&quot;hasPermission&quot;); }" type="Boolean"/>
<set field="hasViewPermission" value="${bsh:
result = dispatcher.runSync(&quot;projectMgrPermission&quot;,
org.ofbiz.base.util.UtilMisc.toMap(&quot;userLogin&quot;, parameters.get(&quot;userLogin&quot;),
&quot;resourceDescription&quot;, &quot;Project&quot;,
&quot;mainAction&quot;, &quot;VIEW&quot;,
&quot;projectId&quot;, projectId));
return result.get(&quot;hasPermission&quot;); }" type="Boolean"/>
</actions>
<menu-item name="ganttchart" title="${uiLabelMap.ProjectMgrGanttChart}">
<condition>
<if-compare field="hasViewPermission" operator="equals" value="true"/>
</condition>
<link target="ganttChart?projectId=${projectId}"/>
</menu-item>
<menu-item name="projectView" title="${uiLabelMap.ProjectMgrProjectSummary}">
<condition>
<if-compare field="hasViewPermission" operator="equals" value="true"/>
</condition>
<link target="projectView?projectId=${projectId}"/>
</menu-item>
<menu-item name="editproject" title="${uiLabelMap.ProjectMgrEditProject}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="EditProject?projectId=${projectId}"/>
</menu-item>
<menu-item name="phases" title="${uiLabelMap.ProjectMgrPhases}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="FindPhase?projectId=${projectId}"/>
</menu-item>
<menu-item name="tasks" title="${uiLabelMap.ProjectMgrTasks}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="EditProjectTasks?projectId=${projectId}"/>
</menu-item>
<menu-item name="orders" title="${uiLabelMap.Orders}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="EditProjectOrders?projectId=${projectId}"/>
</menu-item>
<menu-item name="parties" title="${uiLabelMap.ProjectMgrResources}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="ListWorkEffortPartyAssigns?projectId=${projectId}"/>
</menu-item>
<menu-item name="projectContent" title="${uiLabelMap.CommonContent}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="EditProjectContents?projectId=${projectId}"/>
</menu-item>
<menu-item name="notes" title="${uiLabelMap.CommonNotes}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
</and>
</condition>
<link target="EditWorkEffortNotes?projectId=${projectId}"/>
</menu-item>
<menu-item name="subprojects" title="${uiLabelMap.ProjectMgrSubProjects}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="ListSubProjects?projectId=${projectId}&amp;subProjects=true"/>
</menu-item>
<menu-item name="billing" title="${uiLabelMap.ProjectMgrBilling}">
<condition>
<and>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
</and>
</condition>
<link target="projectBilling?projectId=${projectId}"/>
</menu-item>
</menu>
<menu name="ProjectSubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
menu-container-style="button-bar button-style-2">
<actions>
<set field="projectId" from-field="parameters.projectId" default-value="${parameters.workEffortId}"/>
<set field="hasUpdatePermission" value="${bsh:
result = dispatcher.runSync(&quot;projectMgrPermission&quot;,
org.ofbiz.base.util.UtilMisc.toMap(&quot;userLogin&quot;, parameters.get(&quot;userLogin&quot;),
&quot;resourceDescription&quot;, &quot;Project&quot;,
&quot;mainAction&quot;, &quot;UPDATE&quot;,
&quot;projectId&quot;, projectId));
return result.get(&quot;hasPermission&quot;); }" type="Boolean"/>
</actions>
<menu-item name="newProject" title="${uiLabelMap.ProjectMgrNewProject}">
<condition>
<and>
<if-compare field="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="project"/>
</not>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
</and>
</condition>
<link target="copyProject?projectId=${projectId}"></link>
</menu-item>
<menu-item name="schedule" title="${uiLabelMap.ProjectMgrSchedule}">
<condition>
<and>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
<not>
<if-empty field="project"/>
</not>
<if-compare field="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="project"/>
</not>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
</and>
</condition>
<link target="copyProjectToTemplate?projectId=${projectId}"></link>
</menu-item>
<menu-item name="close" title="${uiLabelMap.CommonClose}">
<condition>
<and>
<if-compare field="project.currentStatusId" operator="not-equals" value="PRJ_CLOSED"/>
<not>
<if-empty field="project"/>
</not>
<if-compare field="hasUpdatePermission" operator="equals" value="true"/>
</and>
</condition>
<link target="javascript:confirmActionLink('Are you sure you want to close this project?','updateProject?workEffortId=${parameters.projectId}&amp;currentStatusId=PRJ_CLOSED')" url-mode="plain"/>
</menu-item>
</menu>
<menu name="TaskTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="taskView" title="${uiLabelMap.ProjectMgrTaskSummary}">
<condition>
<not><if-empty field="workEffort"/></not>
</condition>
<link target="taskView?workEffortId=${workEffortId}"/>
</menu-item>
<menu-item name="edittask" title="${uiLabelMap.ProjectMgrEditTask}">
<condition>
<and>
<not><if-empty field="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
<if-compare field="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="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
<if-compare field="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="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
<if-compare field="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="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
<if-compare field="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="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELLED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
</and>
</condition>
<link target="EditTimeEntries?workEffortId=${workEffortId}"/>
</menu-item>
<menu-item name="taskContent" title="${uiLabelMap.CommonContent}">
<condition>
<and>
<not><if-empty field="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_COMPLETED"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_ON_HOLD"/>
<if-compare field="workEffort.currentStatusId" operator="not-equals" value="PTS_CANCELED"/>
</and>
</condition>
<link target="EditTaskContents?workEffortId=${workEffortId}"/>
</menu-item>
<menu-item name="notes" title="${uiLabelMap.CommonNotes}">
<condition>
<not><if-empty field="workEffort"/></not>
</condition>
<link target="EditTaskNotes?workEffortId=${workEffortId}"/>
</menu-item>
</menu>
<menu name="TaskSubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
menu-container-style="button-bar button-style-2">
<menu-item name="new" title="${uiLabelMap.CommonNew}">
<condition>
<or>
<not><if-empty field="workEffort"/></not>
<and>
<if-empty field="workEffort"/>
<if-compare field="tabButtonItem" operator="equals" value="find"/>
</and>
</or>
</condition>
<link target="EditTask"/>
</menu-item>
<menu-item name="setonhold" title="${uiLabelMap.ProjectMgrSetOnHold}" >
<condition>
<and>
<not><if-empty field="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="equals" value="PTS_CREATED"/>
</and>
</condition>
<link target="setTaskStatus?workEffortId=${workEffortId}&amp;currentStatusId=PTS_ON_HOLD"/>
</menu-item>
<menu-item name="setcomplete" title="${uiLabelMap.ProjectMgrSetComplete}" >
<condition>
<and>
<not><if-empty field="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="equals" value="PTS_CREATED"/>
</and>
</condition>
<link target="setTaskStatusToComplete?workEffortId=${workEffortId}"/>
</menu-item>
<menu-item name="release" title="${uiLabelMap.ProjectMgrRelease}" >
<condition>
<and>
<not><if-empty field="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="equals" value="PTS_ON_HOLD"/>
</and>
</condition>
<link target="setTaskStatus?workEffortId=${workEffortId}&amp;currentStatusId=PTS_CREATED"/>
</menu-item>
<menu-item name="cancel" title="${uiLabelMap.CommonCancel}" >
<condition>
<and>
<not><if-empty field="workEffort"/></not>
<if-compare field="workEffort.currentStatusId" operator="equals" value="PTS_CREATED"/>
</and>
</condition>
<link target="setTaskStatus?workEffortId=${workEffortId}&amp;currentStatusId=PTS_CANCELLED"/>
</menu-item>
</menu>
<menu name="TimesheetTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<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" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
menu-container-style="button-bar button-style-2" default-menu-item-name="StatustoProgress">
<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="timesheet"/></not>
<if-compare field="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
</and>
</condition>
<link target="TimeSheetStatusToComplete?timesheetId=${timesheet.timesheetId}&amp;statusId=TIMESHEET_COMPLETED"/>
</menu-item>
<menu-item name="TimeSheetStatustoProgress" title="${uiLabelMap.ProjectMgrSetStatusInProgress}">
<condition>
<and>
<not><if-empty field="timesheet"/></not>
<if-compare field="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/>
</and>
</condition>
<link target="TimeSheetStatustoProgress?timesheetId=${timesheet.timesheetId}&amp;statusId=TIMESHEET_IN_PROCESS"/>
</menu-item>
</menu>
<menu name="MyTimeSubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
menu-container-style="button-bar button-style-2">
<menu-item name="TimeSheetStatusToComplete" title="${uiLabelMap.CommonStatustoComplete}">
<condition>
<and>
<not><if-empty field="timesheet"/></not>
<if-compare field="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
</and>
</condition>
<link target="myTimeSheetStatusToComplete?timesheetId=${timesheet.timesheetId}&amp;statusId=TIMESHEET_COMPLETED"/>
</menu-item>
</menu>
<menu name="ResourceTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
default-menu-item-name="edittimesheet">
<menu-item name="ResourcesProfile" title="${uiLabelMap.PartyProfile}">
<link target="viewprofile?partyId=${partyId}"/>
</menu-item>
<menu-item name="viewroles" title="${uiLabelMap.PartyRoles}">
<link target="viewroles?partyId=${partyId}"/>
</menu-item>
<menu-item name="listResourcesProject" title="${uiLabelMap.ProjectMgrProjects}">
<link target="listResourcesProject?partyId=${partyId}"></link>
</menu-item>
<menu-item name="listResourcesTask" title="${uiLabelMap.ProjectMgrTasks}">
<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="ListBillingHours" title="${uiLabelMap.ProjectMgrBilling}">
<link target="ListResourceBillingHours?partyId=${partyId}"></link>
</menu-item>
</menu>
<menu name="RequestTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="ViewRequest" title="${uiLabelMap.ProjectMgrView}">
<condition>
<not><if-empty field="custRequest"/></not>
</condition>
<link target="ViewRequest?custRequestId=${parameters.custRequestId}"/>
</menu-item>
<menu-item name="editRequest" title="${uiLabelMap.ProjectMgrEdit}">
<condition>
<and>
<not><if-empty field="custRequest"/></not>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_CANCELLED"/>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
</and>
</condition>
<link target="EditRequest?custRequestId=${parameters.custRequestId}"/>
</menu-item>
<menu-item name="custRequestContent" title="${uiLabelMap.ContentContent}">
<condition>
<and>
<not><if-empty field="custRequest"/></not>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_CANCELLED"/>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
</and>
</condition>
<link target="EditCustRequestContent?custRequestId=${custRequest.custRequestId}"/>
</menu-item>
</menu>
<menu name="TimesheetBar">
<menu-item name="setToComplete" title="${uiLabelMap.CommonStatustoComplete}">
<condition>
<if-compare field="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
</condition>
<link target="${my}StatusToComplete?timesheetId=${timesheet.timesheetId}&amp;statusId=TIMESHEET_COMPLETED"/>
</menu-item>
</menu>
<menu name="RequestSubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
menu-container-style="button-bar button-style-2">
<menu-item name="cancelledRequest" title="${uiLabelMap.CommonCancel} ${uiLabelMap.OrderRequest}" >
<condition>
<and>
<not><if-empty field="custRequest"/></not>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_CANCELLED"/>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
</and>
</condition>
<link target="setCustRequestStatus?custRequestId=${custRequestId}&amp;statusId=CRQ_CANCELLED"/>
</menu-item>
<menu-item name="addContent" title="${uiLabelMap.PageTitleAddContent}">
<condition>
<and>
<not><if-empty field="custRequest"/></not>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_CANCELLED"/>
<if-compare field="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
</and>
</condition>
<link target="EditCustRequestContent?custRequestId=${custRequest.custRequestId}"/>
</menu-item>
</menu>
</menus>