ilscipio/scipio-erp

View on GitHub
applications/humanres/widget/forms/PartyResumeForms.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
    <form name="FindPartyResumes" type="single" target="FindPartyResumes" header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-entity entity-name="PartyResume" 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="partyId"><lookup target-form-name="LookupPartyName"/></field>
        <field name="contentId"><lookup target-form-name="LookupContent"/></field>
        <field name="resumeId"><lookup target-form-name="LookupPartyResume"/></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    <form name="ListPartyResumes" type="list" separate-columns="true" default-entity-name="PartyResume" list-name="listIt" paginate-target="FindPartyResumes" paginate="true"
        odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <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="PartyResume"/>
                <field-map field-name="orderBy" value="resumeId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <auto-fields-entity entity-name="PartyResume" default-field-type="display"/>
        <field name="resumeId" widget-style="${styles.link_nav_info_id}">
            <hyperlink also-hidden="false" description="${resumeId}" target="EditPartyResumes">
                <parameter param-name="resumeId"/>
                <parameter param-name="partyId"/>
            </hyperlink>
        </field>
        <field name="partyId" title="${uiLabelMap.PartyPartyId}">
            <display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView">
                <sub-hyperlink target="/partymgr/control/viewprofile" target-type="inter-app" link-style="${styles.link_nav_info_id}" description="${partyId}">
                    <parameter param-name="partyId"/>
                </sub-hyperlink>
            </display-entity>
       </field>
       <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
           <hyperlink target="deletePartyResume" description="${uiLabelMap.CommonDelete}" also-hidden="false">
               <parameter param-name="resumeId"/>
               <parameter param-name="partyId"/>
            </hyperlink>
       </field>
    </form>
    <form name="EditPartyResume" type="single" target="createPartyResume" title="" default-map-name="partyResume"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <alt-target use-when="partyResume != null" target="updatePartyResume"/>
        <field name="resumeId" use-when="partyResume!=null" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
        <field name="resumeId" use-when="partyResume==null" required-field="true"><text/></field>
        <field name="contentId"><lookup target-form-name="LookupContent"/></field>
        <field name="partyId" use-when="partyId==null" title="${uiLabelMap.FormFieldTitle_partyId}"><lookup target-form-name="LookupPartyName"/></field>
        <field name="partyId" use-when="partyId!=null" title="${uiLabelMap.FormFieldTitle_partyId}"><hidden/></field>
        <field name="resumeDate"><date-time/></field>
        <field name="resumeText"><text/></field>
        <field name="submitAction" use-when="partyResume==null" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
        <field name="submitAction" use-when="partyResume!=null" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
</forms>