Author: erwan
Date: Fri Jan 20 18:07:44 2012 New Revision: 1234046 URL: http://svn.apache.org/viewvc?rev=1234046&view=rev Log: Adding a new screen in the employee profile, listing all the trainings related to him Modified: ofbiz/trunk/applications/humanres/widget/EmployeeScreens.xml ofbiz/trunk/applications/humanres/widget/forms/PersonTrainingForms.xml Modified: ofbiz/trunk/applications/humanres/widget/EmployeeScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/widget/EmployeeScreens.xml?rev=1234046&r1=1234045&r2=1234046&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/widget/EmployeeScreens.xml (original) +++ ofbiz/trunk/applications/humanres/widget/EmployeeScreens.xml Fri Jan 20 18:07:44 2012 @@ -122,6 +122,7 @@ under the License. <include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/> <include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/> <include-screen name="contactsAndAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/> + <include-screen name="trainingsList"/> </container> <container style="profile-right"> <include-screen name="CurrentEmploymentData" location="component://humanres/widget/EmployeeScreens.xml"/> @@ -298,6 +299,16 @@ under the License. </section> </screen> + <screen name="trainingsList"> + <section> + <widgets> + <screenlet title="${uiLabelMap.HumanResTrainings}"> + <include-form name="simpleListTrainingStatus" location="component://humanres/widget/forms/PersonTrainingForms.xml"/> + </screenlet> + </widgets> + </section> + </screen> + <screen name="PayrollHistory"> <section> <actions> Modified: ofbiz/trunk/applications/humanres/widget/forms/PersonTrainingForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/widget/forms/PersonTrainingForms.xml?rev=1234046&r1=1234045&r2=1234046&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/widget/forms/PersonTrainingForms.xml (original) +++ ofbiz/trunk/applications/humanres/widget/forms/PersonTrainingForms.xml Fri Jan 20 18:07:44 2012 @@ -198,4 +198,24 @@ under the License. <field name="approvalStatus"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field> <field name="trainingClassTypeId"><display-entity entity-name="TrainingClassType"/></field> </form> + + <form name="simpleListTrainingStatus" list-name="listIt" title="" type="list" odd-row-style="alternate-row" default-table-style="basic-table"> + <actions> + <service service-name="performFind" result-map="result" result-map-list="listIt"> + <field-map field-name="inputFields" from-field="parameters"/> + <field-map field-name="entityName" value="PersonTraining"/> + <field-map field-name="orderBy" value="fromDate"/> + <field-map field-name="viewIndex" from-field="viewIndex"/> + <field-map field-name="viewSize" from-field="viewSize"/> + </service> + </actions> + <field name="fromDate"><display type="date-time"/></field> + <field name="thruDate"><display type="date-time"/></field> + <field name="trainingClassTypeId" title="${uiLabelMap.HumanResTrainingClassType}"/> + <field name="approvalStatus"><display-entity entity-name="StatusItem" key-field-name="statusId"/></field> + <field name="trainingClassTypeId"><display-entity entity-name="TrainingClassType"/></field> + <field name="approverId" widget-style="buttontext"> + <display-entity entity-name="PartyNameView" key-field-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName}"/> + </field> + </form> </forms> |
Free forum by Nabble | Edit this page |