In this patch we are doing enhancement in HumanResource Leave Module. Initially we can only create new leave application for a partyId. But there was not functionality available for approval of leave. So in this patch we have given functionality for Leave approval as well as leave creation. + A better French label git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831249 13f79535-47bb-0310-9956-ffa450edef68
310 lines
23 KiB
XML
310 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.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<form name="ListSkillTypes" type="multi" title="" target="updateSkillType"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="SkillType"><order-by field-name="skillTypeId"/></entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateSkillType" default-field-type="hidden"/>
|
|
<field name="skillTypeId" title="${uiLabelMap.HumanResSkillTypeId}"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteSkillType" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="skillTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
<form name="AddSkillType" type="single" target="createSkillType" default-map-name="skillType"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createSkillType" default-field-type="hidden"/>
|
|
<field name="skillTypeId" title="${uiLabelMap.HumanResSkillTypeId}"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="ListResponsibilityTypes" type="multi" list-name="responsibilityTypes" target="updateResponsibilityType"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="ResponsibilityType"><order-by field-name="responsibilityTypeId"/></entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateResponsibilityType" default-field-type="hidden"/>
|
|
<field name="responsibilityTypeId" title="${uiLabelMap.HumanResResponsibilityTypeId}"><display/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteResponsibilityType" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="responsibilityTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
<form name="AddResponsibilityType" type="single" target="createResponsibilityType" title="" default-map-name="responsibilityType">
|
|
<auto-fields-service service-name="createResponsibilityType" default-field-type="hidden"/>
|
|
<field name="responsibilityTypeId" title="${uiLabelMap.HumanResResponsibilityTypeId}"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="ListTerminationTypes" type="multi" title="" target="updateTerminationType"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="TerminationType"><order-by field-name="terminationTypeId"/></entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateTerminationType" default-field-type="hidden"/>
|
|
<field name="terminationTypeId" title="${uiLabelMap.HumanResTerminationTypeId}"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteTerminationType" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="terminationTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
<form name="AddTerminationType" type="single" target="createTerminationType" default-map-name="TerminationType"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createTerminationType" default-field-type="hidden"/>
|
|
<field name="terminationTypeId"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="FindEmplPositionTypes" type="single" header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-entity entity-name="EmplPositionType" default-field-type="find"/>
|
|
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
|
<field name="emplPositionTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="EmplPositionType" description="${description}" key-field-name="emplPositionTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="ListEmplPositionTypes" type="list" list-name="listIt" target="updateEmplPositionType"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
|
<field-map field-name="inputFields" from-field="emplPositionTypeCtx"/>
|
|
<field-map field-name="entityName" value="EmplPositionType"/>
|
|
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
|
<field-map field-name="viewSize" from-field="viewSize"/>
|
|
</service>
|
|
</actions>
|
|
<auto-fields-service service-name="updateEmplPositionType" default-field-type="hidden"/>
|
|
<field name="emplPositionTypeId" title="${uiLabelMap.HumanResEmplPositionType}">
|
|
<hyperlink also-hidden="false" description="${emplPositionTypeId}" target="EditEmplPositionTypes">
|
|
<parameter param-name="emplPositionTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteEmplPositionType" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="emplPositionTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
</form>
|
|
<form name="EditEmplPositionTypes" type="single" target="updateEmplPositionType" default-map-name="emplPositionType"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<alt-target use-when="emplPositionType==null" target="createEmplPositionType"/>
|
|
<auto-fields-service service-name="updateEmplPositionType"/>
|
|
<field name="emplPositionTypeId" use-when="emplPositionType==null"><text/></field>
|
|
<field name="emplPositionTypeId" use-when="emplPositionType!=null"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" use-when="emplPositionType!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="ListEmplPositionTypeRates" type="list" title="" target="deleteEmplPositionTypeRate"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<set field="nowDate" value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString("yyyy-MM-dd HH:mm:ss.S")}" type="String"/>
|
|
<entity-condition entity-name="EmplPositionTypeRateAndAmount" filter-by-date="true">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="emplPositionTypeId" from-field="parameters.emplPositionTypeId" operator="equals"/>
|
|
<condition-list combine="or">
|
|
<condition-expr field-name="rateAmountFromDate" from-field="null" operator="equals"/>
|
|
<condition-expr field-name="rateAmountFromDate" from-field="nowDate" operator="less"/>
|
|
</condition-list>
|
|
<condition-list combine="or">
|
|
<condition-expr field-name="rateAmountThruDate" from-field="null" operator="equals"/>
|
|
<condition-expr field-name="rateAmountThruDate" from-field="nowDate" operator="greater"/>
|
|
</condition-list>
|
|
</condition-list>
|
|
<order-by field-name="rateTypeId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<field name="rateCurrencyUomId"><hidden/></field>
|
|
<field name="emplPositionTypeId"><hidden/></field>
|
|
<field name="fromDate"><hidden/></field>
|
|
<field name="rateAmountFromDate"><hidden/></field>
|
|
<field name="rateTypeId"><display-entity entity-name="RateType" description="${description}"/></field>
|
|
<field name="periodTypeId"><display-entity entity-name="PeriodType" description="${description}"/></field>
|
|
<field name="payGradeId"><display-entity entity-name="PayGrade" description="${description}"/></field>
|
|
<field name="salaryStepSeqId" title="${uiLabelMap.HumanResSalaryStepSeqId}"><display/></field>
|
|
<field name="rateAmount"><display type="currency" currency="${rateCurrencyUomId}"/></field>
|
|
<field name="deleteButton" widget-style="buttontext"><submit/></field>
|
|
</form>
|
|
<form name="AddEmplPositionTypeRate" type="single" target="updateEmplPositionTypeRate" default-map-name="emplPositionTypeRate" paginate-target="EditEmplPositionTypeRates"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<actions>
|
|
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
|
|
</actions>
|
|
<field name="emplPositionTypeId"><hidden value="${parameters.emplPositionTypeId}"/></field>
|
|
<field name="rateTypeId" tooltip="${uiLabelMap.CommonRequired}" widget-style="required">
|
|
<drop-down>
|
|
<entity-options description="${description}" key-field-name="rateTypeId" entity-name="RateType">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="payGradeId" position="2"><lookup target-form-name="LookupPayGrade"/></field>
|
|
<field name="periodTypeId" tooltip="${uiLabelMap.CommonRequired}" widget-style="required">
|
|
<drop-down allow-empty="false" no-current-selected-key="RATE_MONTH">
|
|
<entity-options description="${description}" key-field-name="periodTypeId" entity-name="PeriodType">
|
|
<entity-order-by field-name="periodTypeId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="salaryStepSeqId" title="${uiLabelMap.HumanResSalaryStepSeqId}" position="2"><lookup target-form-name="LookupSalaryStep"/></field>
|
|
<field name="rateAmount"><text/></field>
|
|
<field name="rateCurrencyUomId" position="2">
|
|
<drop-down allow-empty="true" no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
|
|
<entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom">
|
|
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="ListTerminationReasons" type="multi" title="" target="updateTerminationReason" paginate-target="EditTerminationReasons"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="TerminationReason"><order-by field-name="terminationReasonId"/></entity-condition>
|
|
</actions>
|
|
<auto-fields-service default-field-type="display" service-name="updateTerminationReason"/>
|
|
<field name="terminationReasonId" title="${uiLabelMap.HumanResTerminationReasonId}"><display/></field>
|
|
<field name="description"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteTerminationReason" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="terminationReasonId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
</form>
|
|
<form name="AddTerminationReason" type="single" target="createTerminationReason" title="" default-map-name = "terminationReason"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createTerminationReason"/>
|
|
<field name="terminationReasonId"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="ListJobInterviewType" type="multi" target="updateJobInterviewType" odd-row-style="alternate-row" header-row-style="header-row-2"
|
|
default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="JobInterviewType"><order-by field-name="jobInterviewTypeId"/></entity-condition>
|
|
</actions>
|
|
<field name="jobInterviewTypeId"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteJobInterviewType">
|
|
<parameter param-name="jobInterviewTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
<form name="AddJobInterviewType" type="single" target="createJobInterviewType" header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="jobInterviewTypeId"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="ListTrainingTypes" type="multi" title="" target="updateTrainingTypes" odd-row-style="alternate-row" header-row-style="header-row-2"
|
|
default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="TrainingClassType"><order-by field-name="trainingClassTypeId"/></entity-condition>
|
|
</actions>
|
|
<field name="trainingClassTypeId" title="${uiLabelMap.HumanResTrainingClassType}"><display/></field>
|
|
<field name="parentTypeId" title="${uiLabelMap.HumanResPreRequisiteSkill}" widget-style="buttontext"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteTrainingTypes">
|
|
<parameter param-name="trainingClassTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
<form name="AddTrainingTypes" type="single" target="createTrainingTypes" header-row-style="header-row" default-table-style="basic-table">
|
|
<field name="trainingClassTypeId" title="${uiLabelMap.HumanResTrainingClassType}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="parentTypeId" title="${uiLabelMap.HumanResPreRequisiteSkill}"><lookup target-form-name="LookupTraining"/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="AddEmplLeaveType" type="single" target="createEmplLeaveType" default-map-name="emplLeaveType"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createEmplLeaveType" default-field-type="hidden"/>
|
|
<field name="leaveTypeId"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="ListEmplLeaveTypes" type="multi" title="" target="updateEmplLeaveType"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="EmplLeaveType"><order-by field-name="leaveTypeId"/></entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateEmplLeaveType" default-field-type="hidden"/>
|
|
<field name="leaveTypeId"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteEmplLeaveType" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="leaveTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
<form name="AddEmplLeaveReasonType" type="single" target="createEmplLeaveReasonType" default-map-name="emplLeaveReasonType"
|
|
header-row-style="header-row" default-table-style="basic-table">
|
|
<auto-fields-service service-name="createEmplLeaveReasonType" default-field-type="hidden"/>
|
|
<field name="emplLeaveReasonTypeId"><text/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
|
</form>
|
|
<form name="ListEmplLeaveReasonTypes" type="multi" title="" target="updateEmplLeaveReasonType"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="EmplLeaveReasonType"><order-by field-name="emplLeaveReasonTypeId"/></entity-condition>
|
|
</actions>
|
|
<auto-fields-service service-name="updateEmplLeaveReasonType" default-field-type="hidden"/>
|
|
<field name="emplLeaveReasonTypeId"><display/></field>
|
|
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
|
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
|
|
<hyperlink target="deleteEmplLeaveReasonType" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
|
<parameter param-name="emplLeaveReasonTypeId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
|
|
</form>
|
|
</forms>
|