This reverts commit 17eb2e4cf7.
It does not work when using <<target="javascript:........>>
I could change those cases but it's easier and safer to simply revert back to
target-type!
Thanks: James for report
278 lines
16 KiB
XML
278 lines
16 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" xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
|
|
<grid name="ListMyTimesheets" target="" title="" list-name="timesheets" paginate-target="MyTimesheets" paginate="true"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-and entity-name="Timesheet" list="timesheets">
|
|
<field-map field-name="partyId" from-field="userLogin.partyId"/>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-and>
|
|
</actions>
|
|
<auto-fields-entity entity-name="Timesheet"/>
|
|
<field name="timesheetId" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}" widget-style="buttontext">
|
|
<hyperlink description="${timesheetId}" target="EditTimesheet" also-hidden="false">
|
|
<parameter param-name="timesheetId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="partyId"><hidden/></field>
|
|
<field name="clientPartyId"><display-entity entity-name="PartyNameView" key-field-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
|
|
</grid>
|
|
|
|
<grid name="ListMyRates" target="" title="" list-name="partyRates" paginate="false"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-and entity-name="PartyRate" list="partyRates">
|
|
<field-map field-name="partyId" from-field="userLogin.partyId"/>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-and>
|
|
</actions>
|
|
<auto-fields-entity entity-name="PartyRate" default-field-type="display"/>
|
|
<field name="rateTypeId" title="${uiLabelMap.WorkEffortTimesheetRateType}"><display-entity entity-name="RateType"/></field>
|
|
<field name="partyId"><hidden/></field>
|
|
</grid>
|
|
|
|
<form name="QuickCreateTimeEntry" target="createQuickTimeEntry" title="" type="single"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="timesheetId" map-name="currentTimesheet"><hidden/></field>
|
|
<field name="partyId" map-name="userLogin"><hidden/></field>
|
|
<field name="rateTypeId" title="${uiLabelMap.WorkEffortTimesheetRateType}">
|
|
<drop-down no-current-selected-key="STANDARD" >
|
|
<entity-options entity-name="RateType">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="workEffortId"><lookup target-form-name="LookupWorkEffort"/></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="FindTimesheet" default-map-name="timesheet" target="FindTimesheet" title="" type="single"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-entity entity-name="Timesheet" default-field-type="find"/>
|
|
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><lookup target-form-name="LookupPartyName"/></field>
|
|
|
|
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<grid name="ListTimesheets" target="" title="" list-name="listIt" paginate-target="FindTimesheet" paginate="true"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<service result-map-list="listIt" result-map="result" service-name="performFind">
|
|
<field-map field-name="inputFields" from-field="parameters"/>
|
|
<field-map field-name="entityName" value="Timesheet"/>
|
|
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
|
<field-map field-name="viewSize" from-field="viewSize"/>
|
|
</service>
|
|
</actions>
|
|
<auto-fields-entity entity-name="Timesheet" default-field-type="display"/>
|
|
<field name="timesheetId" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}" widget-style="buttontext">
|
|
<hyperlink description="${timesheetId}" target="EditTimesheet" also-hidden="false">
|
|
<parameter param-name="timesheetId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
|
|
</grid>
|
|
|
|
<form name="EditTimesheet" default-map-name="timesheet" target="updateTimesheet" title="" type="single"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<alt-target target="createTimesheet" use-when="timesheet==null"/>
|
|
<auto-fields-service service-name="updateTimesheet"/>
|
|
|
|
<field name="timesheetId" use-when="timesheet!=null" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}"><display/></field>
|
|
<field name="timesheetId" use-when="timesheet==null&&timesheetId==null" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}"><ignored/></field>
|
|
<field name="timesheetId" use-when="timesheet==null&&timesheetId!=null" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}" tooltip="${uiLabelMap.CommonCannotBeFound}: [${timesheetId}]"><display also-hidden="false"/></field>
|
|
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}*"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="clientPartyId"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="fromDate"><date-time default-value="${nowTimestamp}"/></field>
|
|
<field name="statusId" title="${uiLabelMap.CommonStatus}*" position="1">
|
|
<drop-down no-current-selected-key="TIMESHEET_IN_PROCESS">
|
|
<entity-options entity-name="StatusItem" key-field-name="statusId">
|
|
<entity-constraint name="statusTypeId" value="TIMESHEET_STATUS"/>
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<grid name="DisplayTimesheetEntries" list-name="timesheetEntries"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="TimeEntry">
|
|
<condition-expr field-name="timesheetId" from-field="timesheetId"/>
|
|
<order-by field-name="partyId"/>
|
|
<order-by field-name="rateTypeId"/>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<auto-fields-entity entity-name="TimeEntry" default-field-type="display"/>
|
|
|
|
<field name="timeEntryId"><hidden/></field>
|
|
<field name="timesheetId"><hidden/></field>
|
|
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"/>
|
|
<field name="rateTypeId" title="${uiLabelMap.WorkEffortTimesheetRateType}"><display-entity entity-name="RateType"/></field>
|
|
<field name="workEffortId">
|
|
<display-entity entity-name="WorkEffort" description="${workEffortName}">
|
|
<sub-hyperlink target="WorkEffortSummary" description="${workEffortId}" link-style="buttontext">
|
|
<parameter param-name="workEffortId"/>
|
|
</sub-hyperlink>
|
|
</display-entity>
|
|
</field>
|
|
<field name="invoiceId" widget-style="buttontext">
|
|
<hyperlink description="${invoiceId}" target="/accounting/control/invoiceOverview" target-type="inter-app">
|
|
<parameter param-name="invoiceId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</grid>
|
|
|
|
<form name="AddTimesheetToInvoice" target="addTimesheetToInvoice" title="" type="single"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="timesheetId"><hidden/></field>
|
|
<field name="invoiceId"><lookup target-form-name="LookupInvoice"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.PageTitleAddWorkEffortTimeToInvoice}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="AddTimesheetToNewInvoice" target="addTimesheetToNewInvoice" title="" type="single"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="timesheetId"><hidden/></field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.WorkEffortTimeBillFromParty}"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="partyId" title="${uiLabelMap.WorkEffortTimeBillToParty}"><lookup target-form-name="LookupPartyName" default-value="${timesheet.clientPartyId}"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.PageTitleAddWorkEffortTimeToNewInvoice}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<!-- TimesheetRole -->
|
|
<grid name="ListTimesheetRoles" list-name="timesheetRoles" target=""
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="TimesheetRole">
|
|
<condition-expr field-name="timesheetId" from-field="timesheetId"/>
|
|
<order-by field-name="roleTypeId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
|
|
<field name="timesheetId"><hidden/></field>
|
|
<field name="roleTypeId" title="${uiLabelMap.PartyRole}"><display-entity entity-name="RoleType"/></field>
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName} [${partyId}]"/></field>
|
|
|
|
<field name="deleteLink" title=" " widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.CommonDelete}" target="deleteTimesheetRole" also-hidden="false">
|
|
<parameter param-name="timesheetId"/>
|
|
<parameter param-name="partyId"/>
|
|
<parameter param-name="roleTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</grid>
|
|
|
|
<form name="AddTimesheetRole" type="single" target="createTimesheetRole" title=""
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createTimesheetRole"/>
|
|
|
|
<field name="timesheetId"><hidden/></field>
|
|
<field name="partyId" title="${uiLabelMap.PartyParty}"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="roleTypeId" title="${uiLabelMap.PartyRole}">
|
|
<drop-down>
|
|
<entity-options entity-name="RoleType">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<!-- TimesheetEntry -->
|
|
<grid name="ListTimesheetEntries" list-name="timesheetEntries" target="updateTimesheetEntry"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="TimeEntry">
|
|
<condition-expr field-name="timesheetId" from-field="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.WorkEffortTimesheetRateType}">
|
|
<drop-down>
|
|
<entity-options entity-name="RateType">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
|
|
<field name="workEffortId">
|
|
<lookup size="10" target-form-name="LookupWorkEffort">
|
|
<sub-hyperlink target="EditWorkEffort" link-style="buttontext" description="${uiLabelMap.WorkEffortWorkEffort}:${workEffortId}">
|
|
<parameter param-name="workEffortId"/>
|
|
</sub-hyperlink>
|
|
</lookup>
|
|
</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=" " widget-style="buttontext">
|
|
<hyperlink description="${uiLabelMap.CommonDelete}" target="deleteTimesheetEntry" also-hidden="false">
|
|
<parameter param-name="timesheetId"/>
|
|
<parameter param-name="timeEntryId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</grid>
|
|
|
|
<form name="AddTimesheetEntry" type="single" target="createTimesheetEntry" title=""
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<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.WorkEffortTimesheetRateType}">
|
|
<drop-down no-current-selected-key="STANDARD">
|
|
<entity-options entity-name="RateType">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
|
|
<field name="workEffortId"><lookup target-form-name="LookupWorkEffort"/></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>
|
|
</forms>
|