git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688244 13f79535-47bb-0310-9956-ffa450edef68
296 lines
17 KiB
XML
296 lines
17 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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
<screen name="FindTimeSheet">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindTimeSheet"/>
|
|
<set field="headerItem" value="timesheet"/>
|
|
<set field="labelTitleProperty" value="ProjectMgrFindTimeSheet"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleFindTimeSheet}">
|
|
<include-form name="FindTimeSheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PageTitleTimesheets}" navigation-form-name="ListFindTimeSheet">
|
|
<include-form name="ListFindTimeSheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="Timesheet">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleTimesheet"/>
|
|
<set field="headerItem" value="timesheet"/>
|
|
<set field="tabButtonItem" value="editTimesheet"/>
|
|
<set field="labelTitleProperty" value="ProjectMgrTimeSheetMyTime"/>
|
|
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/EditWeekTimesheet.bsh"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} week: ${weekNumber} ${uiLabelMap.CommonFrom} ${bsh:timesheet.get("fromDate").toString().substring(0,10)} ${uiLabelMap.CommonTo} ${bsh:timesheet.get("thruDate").toString().substring(0,10)}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-form name="WeekTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<include-form name="EditWeekTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</fail-widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleAddATimesheet}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="AddWeeklyTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<include-screen name="ListTimesheets"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTimeSheet">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindTimesheet"/>
|
|
<set field="headerItem" value="timesheet"/>
|
|
<set field="tabButtonItem" value="edittimesheet"/>
|
|
<set field="labelTitleProperty" value="PageTitleAddTimesheet"/>
|
|
<entity-one entity-name="Timesheet" value-name="timesheet"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleEditTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId}</label></container>
|
|
<container style="screenlet-body">
|
|
<include-form name="EditTimesheet" location="component://workeffort/widget/TimesheetForms.xml"/>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="addWeeklyTimesheet">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindTimesheet"/>
|
|
<set field="headerItem" value="timesheet"/>
|
|
<set field="tabButtonItem" value="addtimesheet"/>
|
|
<set field="labelTitleProperty" value="PageTitleAddTimesheet"/>
|
|
<entity-one entity-name="Timesheet" value-name="timesheet"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddTimesheet}</label></container>
|
|
<container style="screenlet-body">
|
|
<include-form name="AddWeeklyTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="MyTimesheet">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="TimesheetMyTime"/>
|
|
<set field="tabButtonItem" value="edittimesheet"/>
|
|
<set field="labelTitleProperty" value="PageTitleAddTimesheet"/>
|
|
<set field="my" value="My"/><!-- change link and target -->
|
|
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/EditWeekTimesheet.bsh"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonMyTimeDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-screen name="CurrentTimesheet"/>
|
|
<include-screen name="AddTimesheet"/>
|
|
<include-screen name="ListTimesheets"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTimeSheetEntries">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTimesheetEntries"/>
|
|
<set field="tabButtonItem" value="TimesheetEntries"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTimesheetEntries"/>
|
|
|
|
<set field="timesheetId" from-field="parameters.timesheetId"/>
|
|
<entity-one entity-name="Timesheet" value-name="timesheet"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><link text="${uiLabelMap.TimesheetCreate}" target="EditTimesheet" style="linktext"/></container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleEditTimesheetEntries}</label></container>
|
|
<container style="screenlet-body">
|
|
<include-form name="ListTimesheetEntries" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddTimesheetEntry}</label></container>
|
|
<container style="screenlet-body">
|
|
<include-form name="AddTimesheetEntry" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTimesheetRoles">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTimesheetRoles"/>
|
|
<set field="tabButtonItem" value="TimesheetRoles"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTimesheetRoles"/>
|
|
|
|
<set field="timesheetId" from-field="parameters.timesheetId"/>
|
|
<entity-one entity-name="Timesheet" value-name="timesheet"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTimesheetDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container><link text="${uiLabelMap.TimesheetCreate}" target="EditTimesheet" style="linktext"/></container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleEditTimesheetRoles}</label></container>
|
|
<container style="screenlet-body">
|
|
<include-form name="ListTimesheetRoles" location="component://workeffort/widget/TimesheetForms.xml"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddTimesheetRole}</label></container>
|
|
<container style="screenlet-body">
|
|
<include-form name="AddTimesheetRole" location="component://workeffort/widget/TimesheetForms.xml"/>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CurrentTimesheet">
|
|
<section>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleCurrentTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} ${uiLabelMap.ProjectMgrWeek}: ${weekNumber} ${uiLabelMap.CommonFrom} ${bsh:timesheet.get("fromDate").toString().substring(0,10)} ${uiLabelMap.CommonTo} ${bsh:timesheet.get("thruDate").toString().substring(0,10)}"
|
|
navigation-form-name="WeekTimesheet">
|
|
<include-form name="WeekTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleCurrentTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} ${uiLabelMap.ProjectMgrWeek}: ${weekNumber} ${uiLabelMap.CommonFrom} ${bsh:timesheet.get("fromDate").toString().substring(0,10)} ${uiLabelMap.CommonTo} ${bsh:timesheet.get("thruDate").toString().substring(0,10)}"
|
|
navigation-menu-name="TimesheetBar">
|
|
<include-menu name="TimesheetBar" location="component://projectmgr/widget/Menus.xml"/>
|
|
<include-form name="EditWeekTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</screenlet>
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddTimesheet">
|
|
<section>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleAddATimesheet}">
|
|
<include-form name="AddMyWeeklyTimesheet" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ListTimesheets">
|
|
<section>
|
|
<actions>
|
|
<entity-one entity-name="PartyNameView" value-name="partyNameView">
|
|
<field-map field-name="partyId" env-name="timesheet.partyId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleTimesheets} ${uiLabelMap.CommonOf} ${partyNameView.firstName} ${partyNameView.middleName} ${partyNameView.lastName}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="ListTimeSheets" location="component://projectmgr/widget/forms/TimeSheetForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens> |