Files
ofbiz-framework/applications/humanres/widget/forms/EmplPositionForms.xml
T
Ashish Vijaywargiya d4e47f16c3 Patch from JIRA issue # https://issues.apache.org/jira/browse/OFBIZ-1839.
Container to Screenlet conversion is done on Human Resource component.

Thanks Harsha Chadhar for your patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667014 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 09:36:32 +00:00

286 lines
20 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="ListEmplPositions" type="list" separate-columns="true" default-entity-name="EmplPosition" list-name="listIt" paginate-target="FindEmplPositions" paginate="true"
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-name="result" result-map-list-name="listIt">
<field-map field-name="inputFields" env-name="parameters"/>
<field-map field-name="entityName" value="EmplPosition"/>
<field-map field-name="orderBy" value="emplPositionId"/>
</service>
</actions>
<auto-fields-entity entity-name="EmplPosition" default-field-type="display"/>
<field name="emplPositionId" title="${uiLabelMap.HumanResEmployeePositionId}" widget-style="linktext">
<hyperlink also-hidden="false" description="${emplPositionId}" target="emplPositionView?emplPositionId=${emplPositionId}"/>
</field>
<field name="partyId" title="${uiLabelMap.PartyPartyId}">
<display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView">
<sub-hyperlink target="viewprofile?partyId=${partyId}" link-style="smallSubmit" target-type="inter-app" description="${partyId}"/>
</display-entity>
</field>
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
<field name="emplPositionTypeId"><display-entity entity-name="EmplPositionType" description="${description}"/></field>
</form>
<form name="EditEmplPosition" type="single" target="updateEmplPosition" title="" default-map-name="emplPosition"
header-row-style="header-row" default-table-style="basic-table">
<alt-target use-when="emplPosition==null" target="createEmplPosition"/>
<auto-fields-service service-name="createEmplPosition"/>
<field use-when="emplPosition!=null" name="emplPositionId" title="${uiLabelMap.HumanResEmplPositionId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
<field use-when="emplPosition==null&amp;&amp;emplPositionId==null" name="emplPositionId" title="${uiLabelMap.HumanResEmplPositionId}"><lookup target-form-name="LookupEmplPosition"/></field>
<field use-when="emplPosition==null&amp;&amp;emplPositionId!=null" name="emplPositionId" title="${uiLabelMap.HumanResEmplPositionId}" tooltip="${uiLabelMap.CommonCannotBeFound}: [${emplPositionId}]"><display/></field>
<field name="partyId" parameter-name="partyId">
<drop-down allow-empty="false">
<entity-options description="${partyId}" entity-name="PartyRole" key-field-name="partyId">
<entity-constraint name="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
<entity-order-by field-name="partyId"/>
</entity-options>
</drop-down>
</field>
<field name="partyId" use-when="emplPosition!=null" title="${uiLabelMap.PartyPartyId}">
<display-entity description="${groupName}" entity-name="PartyNameView">
<sub-hyperlink target="viewprofile?partyId=${partyId}" link-style="smallSubmit" target-type="inter-app" description="${partyId}"/>
</display-entity>
</field>
<field name="statusId" title="status Id">
<drop-down allow-empty="false">
<entity-options description="${description}" key-field-name="statusId" entity-name="StatusItem">
<entity-constraint name="statusTypeId" operator="equals" value="EMPL_POSITION_STATUS"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="budgetId"><lookup target-form-name="LookupBudget"/></field>
<field name="budgetItemSeqId"><lookup target-form-name="LookupBudgetItem"/></field>
<field name="emplPositionTypeId" title="${uiLabelMap.HumanResEmployeePositionTypeId}">
<drop-down allow-empty="false">
<entity-options description="${description}" key-field-name="emplPositionTypeId" entity-name="EmplPositionType">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" use-when="emplPosition==null" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
<field name="submitButton" use-when="emplPosition!=null" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListEmplPositionFulfillments" type="list" target="updateEmplPositionFulfillment" title="" paginate-target="findEmplPositionFulfillments"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="EmplPositionFulfillment">
<condition-expr field-name="emplPositionId" operator="equals" env-name="parameters.emplPositionId"/>
<order-by field-name="emplPositionId"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateEmplPositionFulfillment"/>
<field name="partyId" title="${uiLabelMap.PartyPartyId}">
<display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView">
<sub-hyperlink target="viewprofile?partyId=${partyId}" link-style="smallSubmit" target-type="inter-app" description="${partyId}"/>
</display-entity>
</field>
<field name="emplPositionId"><hidden/></field>
<field name="fromDate" title="${uiLabelMap.CommonDate}"><display/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/> </field>
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="deleteEmplPositionFulfillment?emplPositionId=${emplPositionId}&amp;partyId=${partyId}&amp;fromDate=${fromDate}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
<form name="AddEmplPositionFulfillment" type="single" target="createEmplPositionFulfillment" title=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-service service-name="createEmplPositionFulfillment"/>
<field name="emplPositionId"><hidden /></field>
<field name="partyId" title="${uiLabelMap.PartyPartyId}" tooltip="${uiLabelMap.CommonRequired}"><lookup target-form-name="LookupPartyName"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}" tooltip="${uiLabelMap.CommonRequired}"/>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="ListReportsToEmplPositionReportingStructs" type="list" target="updateEmplPositionReportingStruct" title="" paginate-target="EditReportsToEmplPositionReportingStruct"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="EmplPositionReportingStruct" list-name="emplPositionReportingStructList">
<condition-expr field-name="emplPositionIdManagedBy" env-name="parameters.emplPositionId"/>
<order-by field-name="emplPositionIdManagedBy"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateEmplPositionReportingStruct"/>
<field name="emplPositionId"><hidden value="${parameters.emplPositionId}"/></field>
<field name="emplPositionIdReportingTo"><display/></field>
<field name="emplPositionIdManagedBy"><display/></field>
<field name="fromDate"><display/></field>
<field name="comments"><text/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/> </field>
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="deleteEmplPositionReportingStruct?emplPositionIdReportingTo=${emplPositionIdReportingTo}&amp;emplPositionIdManagedBy=${emplPositionIdManagedBy}&amp;fromDate=${fromDate}&amp;emplPositionId=${parameters.emplPositionId}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
<form name="AddReportsToEmplPositionReportingStruct" type="single" target="createEmplPositionReportingStruct" title=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-service service-name="createEmplPositionReportingStruct"/>
<field name="emplPositionId"><hidden value="${parameters.emplPositionId}"/></field>
<field name="emplPositionIdReportingTo" tooltip="${uiLabelMap.CommonRequired}"><lookup target-form-name="LookupEmplPosition"/></field>
<field name="emplPositionIdManagedBy" tooltip="${uiLabelMap.CommonRequired}"><hidden value="${parameters.emplPositionId}"/></field>
<field name="fromDate" tooltip="${uiLabelMap.CommonRequired}"/>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="ListReportedToEmplPositionReportingStructs" type="list" target="updateEmplPositionReportingStruct" title="" paginate-target="EditReportedToEmplPositionReportingStruct"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="EmplPositionReportingStruct" list-name="emplPositionReportingStructList">
<condition-expr field-name="emplPositionIdReportingTo" env-name="parameters.emplPositionId"/>
<order-by field-name="emplPositionIdReportingTo"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateEmplPositionReportingStruct"/>
<field name="emplPositionId"><hidden value="${parameters.emplPositionId}"/></field>
<field name="emplPositionIdManagedBy"><display/></field>
<field name="emplPositionIdReportingTo"><display/></field>
<field name="fromDate"><display/></field>
<field name="comments"><text/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/> </field>
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="deleteEmplPositionReportingStruct?emplPositionIdReportingTo=${emplPositionIdReportingTo}&amp;emplPositionIdManagedBy=${emplPositionIdManagedBy}&amp;fromDate=${fromDate}&amp;emplPositionId=${parameters.emplPositionId}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
<form name="AddReportedToEmplPositionReportingStruct" type="single" target="createEmplPositionReportingStruct" title=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-service service-name="createEmplPositionReportingStruct"/>
<field name="emplPositionId"><hidden value="${parameters.emplPositionId}"/></field>
<field name="emplPositionIdReportingTo"><hidden value="${parameters.emplPositionId}"/></field>
<field name="emplPositionIdManagedBy" tooltip="${uiLabelMap.CommonRequired}"><lookup target-form-name="LookupEmplPosition"/></field>
<field name="fromDate" tooltip="${uiLabelMap.CommonRequired}"/>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="ListEmplPositionResponsibilities" type="list" target="updateEmplPositionResponsibility" title="" paginate-target="findEmplPositionResponsibilities"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="EmplPositionResponsibility">
<condition-expr field-name="emplPositionId" operator="equals" env-name="parameters.emplPositionId"/>
<order-by field-name="emplPositionId"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateEmplPositionResponsibility"/>
<field name="emplPositionId"><hidden/></field>
<field name="responsibilityTypeId" title="${uiLabelMap.HumanResResponsibilityTypeId}"><display /></field>
<field name="fromDate"><display /></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/> </field>
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="deleteEmplPositionResponsibility?emplPositionId=${emplPositionId}&amp;responsibilityTypeId=${responsibilityTypeId}&amp;fromDate=${fromDate}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
<form name="AddEmplPositionResponsibility" type="single" target="createEmplPositionResponsibility" title=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-service service-name="createEmplPositionResponsibility"/>
<field name="emplPositionId"><hidden /></field>
<field name="responsibilityTypeId" tooltip="${uiLabelMap.CommonRequired}">
<drop-down allow-empty="false">
<entity-options entity-name="ResponsibilityType" key-field-name="responsibilityTypeId" description=" ${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="ListValidResponsibilities" type="list" target="updateValidResponsibility" title="" paginate-target="findValidResponsibilities"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="EmplPositionResponsibility"/>
</actions>
<auto-fields-service service-name="updateValidResponsibility"/>
<field name="emplPositionTypeId" title="${uiLabelMap.HumanResEmplPositionTypeId}"><display /></field>
<field name="responsibilityTypeId" title="${uiLabelMap.ResponsibilityTypeId}"><display /></field>
<field name="fromDate" title="fromDates"><display /></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/> </field>
<field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="deleteValidResponsibility?emplPositionTypeId=${emplPositionId}&amp;responsibilityTypeId=${responsibilityTypeId}&amp;fromDate=${fromDate}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
<form name="AddValidResponsibility" type="single" target="createValidResponsibility" title=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-service service-name="createValidResponsibility"/>
<field name="emplPositionTypeId">
<drop-down allow-empty="false">
<entity-options entity-name="emplPositionType" key-field-name="emplPositionTypeId" description=" ${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="responsibilityTypeId">
<drop-down allow-empty="false">
<entity-options entity-name="responsibilityType" key-field-name="responsibilityTypeId" description=" ${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="FindEmplPositions" type="single" target="FindEmplPositions" header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="EmplPosition" default-field-type="find"/>
<field name="noConditionFind"><hidden value="Y"/></field>
<field name="salaryFlag">
<drop-down allow-empty="false" current="selected">
<option key="Y" description="Y"/>
<option key="N" description="N"/>
</drop-down>
</field>
<field name="exemptFlag">
<drop-down allow-empty="false" current="selected">
<option key="Y" description="Y"/>
<option key="N" description="N"/>
</drop-down>
</field>
<field name="fulltimeFlag">
<drop-down allow-empty="false" current="selected">
<option key="Y" description="Y"/>
<option key="N" description="N"/>
</drop-down>
</field>
<field name="temporaryFlag">
<drop-down allow-empty="false" current="selected">
<option key="Y" description="Y"/>
<option key="N" description="N"/>
</drop-down>
</field>
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="EmplPositionInfo" type="single" default-map-name="emplPosition" paginate-target="FindEmplPositions"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-service service-name="updateEmplPosition" default-field-type="display"/>
</form>
<form name="ListEmplPositionFulfilmentInfo" type="list" list-name="emplPositionFulfillments"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<auto-fields-service service-name="updateEmplPositionFulfillment" default-field-type="display"/>
<field name="emplPositionId"><hidden/></field>
</form>
<form name="ListEmplPositionResponsibilityInfo" type="list" list-name="emplPositionResponsibilities"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<auto-fields-service service-name="updateEmplPositionResponsibility" default-field-type="display"/>
<field name="emplPositionId"><hidden/></field>
</form>
<form name="ListEmplPositionReportsToInfo" type="list" list-name="emplPositionReportingStructs"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<auto-fields-service service-name="updateEmplPositionReportingStruct" default-field-type="display"/>
<field name="emplPositionIdManagedBy"><hidden/></field>
</form>
<form name="ListEmplPositionReportedToInfo" type="list" list-name="emplPositionReportingStructs"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<auto-fields-service service-name="updateEmplPositionReportingStruct" default-field-type="display"/>
<field name="emplPositionIdReportingTo"><hidden/></field>
</form>
</forms>