git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@602651 13f79535-47bb-0310-9956-ffa450edef68
176 lines
10 KiB
XML
176 lines
10 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.
|
|
-->
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<form name="EditWeekTimesheet" type="multi" list-name="timeEntries" use-row-submit="true"
|
|
separate-columns="true" target="updateMyTimesheet">
|
|
<field name="timesheetId"><hidden/></field>
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrTaskName}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="ProjectAndPhaseAndTask" description="${workEffortName} -- ${phaseName} -- ${projectName}">
|
|
<entity-order-by field-name="projectName"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="0" parameter-name="hoursDay0" title="Sun"><text size="5"/></field>
|
|
<field name="1" parameter-name="hoursDay1" title="Mon"><text size="5"/></field>
|
|
<field name="2" parameter-name="hoursDay2" title="Tue"><text size="5"/></field>
|
|
<field name="3" parameter-name="hoursDay3" title="Wen"><text size="5"/></field>
|
|
<field name="4" parameter-name="hoursDay4" title="Thu"><text size="5"/></field>
|
|
<field name="5" parameter-name="hoursDay5" title="Fri"><text size="5"/></field>
|
|
<field name="6" parameter-name="hoursDay6" title="Sat"><text size="5"/></field>
|
|
<field name="total" title="Act Total"><display/></field>
|
|
<field name="plannedHours" title="Plan.Hrs"><display/></field>
|
|
<field name="update"><submit button-type="button"/></field>
|
|
<field name="_rowSubmit"><hidden value="Y"/></field>
|
|
</form>
|
|
|
|
<form name="ListTimeSheets" type="list" list-name="timesheets" paginate-target="EditTimesheet">
|
|
<field name="timesheetId" title="${uiLabelMap.TimesheetTimesheetId}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${timesheetId}" target="MyTimesheets?timesheetId=${timesheetId}"/>
|
|
</field>
|
|
<field name="weekNumber"><display/></field>
|
|
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
|
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display type="date"/></field>
|
|
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date"/></field>
|
|
<field name="hours"><display/></field>
|
|
<field name="comments" title="${uiLabelMap.CommonComments}"><display/></field>
|
|
</form>
|
|
<form name="ListFindTimeSheet" type="list" list-name="timeSheetList" paginate-target="FindTimeSheet">
|
|
<field name="timesheetId" title="${uiLabelMap.TimesheetTimesheetId}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${timesheetId}" target="EditTimeSheet?timesheetId=${timesheetId}"/>
|
|
</field>
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><display/></field>
|
|
<field name="clientPartyId" title="${uiLabelMap.FormFieldTitle_clientPartyId}"><display/></field>
|
|
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display/></field>
|
|
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display/></field>
|
|
<field name="comments" title="${uiLabelMap.CommonComments}"><display/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteTimeSheet?timesheetId=${timesheetId}&findAll=Y"
|
|
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="AddTimesheetEntry" type="single" target="createTimesheetEntry" title="">
|
|
<auto-fields-service service-name="createTimeEntry"/>
|
|
|
|
<field name="timeEntryId"><ignored/><!-- don't pass, will be sequenced --></field>
|
|
<field name="timesheetId"><hidden/></field>
|
|
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><lookup target-form-name="LookupPartyName" default-value="${timesheet.partyId}"/></field>
|
|
<field name="rateTypeId" title="${uiLabelMap.TimesheetRateType}" widget-style="selectBox">
|
|
<drop-down no-current-selected-key="STANDARD">
|
|
<entity-options entity-name="RateType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrTaskName}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="ProjectAndPhaseAndTask" key-field-name="workEffortId" description="${projectName}--${phaseName}--${workEffortName}">
|
|
<entity-order-by field-name="projectName"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="invoiceId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field>
|
|
<field name="invoiceItemSeqId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field>
|
|
|
|
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="QuickCreateTimeEntry" target="createQuickTimeEntry" title="" type="single">
|
|
<actions>
|
|
<entity-one entity-name="WorkEffort">
|
|
<field-map field-name="workEffortId" env-name=""/>
|
|
</entity-one>
|
|
</actions>
|
|
<field name="timesheetId" map-name="currentTimesheet"><hidden/></field>
|
|
<field name="partyId" map-name="userLogin"><hidden/></field>
|
|
<field name="rateTypeId" title="${uiLabelMap.TimesheetRateType}" widget-style="selectBox">
|
|
<drop-down no-current-selected-key="STANDARD" >
|
|
<entity-options entity-name="RateType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="workEffortId"><drop-down allow-empty="false">
|
|
<entity-options entity-name="ProjectPartyAndPhaseAndTask" description="${projectName}--${phaseName}--${workEffortName}">
|
|
<entity-constraint name="partyId" env-name="userLogin.partyId"/>
|
|
<entity-order-by field-name="projectName"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
</drop-down></field>
|
|
<field name="hours"><text size="5"/></field>
|
|
<field name="comments"><text size="40"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="ListTimesheetEntries" type="list" list-name="timesheetEntries" target="updateTimesheetEntry">
|
|
<actions>
|
|
<entity-condition entity-name="TimeEntry">
|
|
<condition-expr field-name="timesheetId" env-name="timesheetId"/>
|
|
<order-by field-name="partyId"/>
|
|
<order-by field-name="rateTypeId"/>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateTimeEntry"/>
|
|
|
|
<field name="timeEntryId"><hidden/></field>
|
|
<field name="timesheetId"><hidden/></field>
|
|
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><lookup size="12" target-form-name="LookupPartyName" default-value="${timesheet.partyId}"/></field>
|
|
<field name="rateTypeId" title="${uiLabelMap.TimesheetRateType}" widget-style="selectBox">
|
|
<drop-down>
|
|
<entity-options entity-name="RateType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
|
|
<field name="workEffortId" title="${uiLabelMap.ProjectMgrTaskName}">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="ProjectAndPhaseAndTask" key-field-name="workEffortId" description="${projectName}--${phaseName}--${workEffortName}">
|
|
<entity-order-by field-name="projectName"/>
|
|
<entity-order-by field-name="phaseName"/>
|
|
<entity-order-by field-name="workEffortName"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
|
|
<field name="invoiceId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field>
|
|
<field name="invoiceItemSeqId"><ignored/><!-- don't pass, will be populated when this is added to an invoice later --></field>
|
|
|
|
<field name="comments"><text size="60"/></field>
|
|
|
|
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
|
|
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink target="deleteTimesheetEntry?timesheetId=${timesheetId}&timeEntryId=${timeEntryId}"
|
|
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
|
|
</field>
|
|
</form>
|
|
|
|
|
|
</forms>
|