Added form of employment list to on employee profile page. I'll build Profile Portal page once Portal patch to be added in trunk.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@717986 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anil Patel
2008-11-16 06:33:21 +00:00
parent 9d254f583a
commit 7bebc5b46c
2 changed files with 22 additions and 2 deletions
@@ -49,7 +49,7 @@
<include-form name="FindEmployments" location="component://humanres/widget/forms/EmploymentForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListEmployments" location="component://humanres/widget/forms/EmploymentForms.xml"/>
<include-form name="ListEmploymentsPerson" location="component://humanres/widget/forms/EmploymentForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
@@ -47,7 +47,7 @@
<field name="noConditionFind"><hidden value="Y"/></field>
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListEmployments" type="list" paginate-target="FindEmployments" default-entity-name="EmploymentAndPerson" list-name="listIt" separate-columns="true"
<form name="ListEmploymentsPerson" type="list" paginate-target="FindEmployments" default-entity-name="EmploymentAndPerson" list-name="listIt" separate-columns="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">
@@ -69,6 +69,26 @@
<hyperlink target="EditEmployment?partyIdFrom=${partyIdFrom}&amp;partyIdTo=${partyIdTo}&amp;roleTypeIdFrom=${roleTypeIdFrom}&amp;fromDate=${fromDate}&amp;roleTypeIdTo=${roleTypeIdTo}" description="${uiLabelMap.CommonEdit}"/>
</field>
</form>
<form name="ListEmployments" type="list" paginate-target="FindEmployments" default-entity-name="EmploymentAndPerson" list-name="listIt" separate-columns="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="employmentCtx"/>
<field-map field-name="entityName" value="Employment"/>
</service>
</actions>
<field name="partyIdFrom" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}"><display></display></field>
<field name="partyIdTo" title="${uiLabelMap.HumanResEmployeePartyIdTo}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${partyIdTo}" target="viewprofile?partyId=${partyIdTo}"/>
</field>
<field name="fromDate"><display also-hidden="true"/></field>
<field name="thruDate"><display/></field>
<field name="terminationReasonId" title="${uiLabelMap.HumanResTerminationReasonId}"><display/></field>
<field name="terminationTypeId" title="${uiLabelMap.HumanResTerminationTypeId}"><display/></field>
<field name="editLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
<hyperlink target="EditEmployment?partyIdFrom=${partyIdFrom}&amp;partyIdTo=${partyIdTo}&amp;roleTypeIdFrom=${roleTypeIdFrom}&amp;fromDate=${fromDate}&amp;roleTypeIdTo=${roleTypeIdTo}" description="${uiLabelMap.CommonEdit}"/>
</field>
</form>
<form name="EditEmployment" type="single" target="updateEmployment" default-map-name="employment"
header-row-style="header-row" default-table-style="basic-table">
<alt-target use-when="employment==null" target="createEmployment"/>