ilscipio/scipio-erp

View on GitHub
applications/humanres/widget/forms/EmplPositionForms.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="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"> <!-- 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="EmplPosition"/>
                <field-map field-name="orderBy" value="emplPositionId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <auto-fields-entity entity-name="EmplPosition" default-field-type="display"/>
        <field name="emplPositionId" title="${uiLabelMap.HumanResEmployeePositionId}" widget-style="${styles.link_nav_info_id}">
            <hyperlink also-hidden="false" description="${emplPositionId}" target="emplPositionView">
                <parameter param-name="emplPositionId"/>
            </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="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" description="${description}"/></field>
        <field name="emplPositionTypeId"><display-entity entity-name="EmplPositionType" description="${description}"/></field>
        <field name="applyAction" title=" " widget-style="${styles.link_nav} ${styles.action_add}"><!-- SCIPIO -->
            <hyperlink also-hidden="false" description="${uiLabelMap.HumanResNewEmploymentApp}" target="EditEmploymentApp">
                <parameter param-name="emplPositionId" from-field="emplPositionId"/>
            </hyperlink>
        </field>
    </form>
    <form name="ListEmplPositionsParty" extends="ListEmplPositions" list-name="ListEmplPositions">
        <actions>
            <entity-and entity-name="EmplPositionAndFulfillment">
                <field-map field-name="employeePartyId" from-field="parameters.partyId"/>
            </entity-and>
        </actions>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display type="date"/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}"><display type="date"/></field>
    </form>
    <form name="EditEmplPosition" type="single" target="updateEmplPosition" title="" default-map-name="emplPosition"
        header-row-style="header-row"> <!-- orig: default-table-style=-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" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}" tooltip="${uiLabelMap.HumanResEmploymentPartyIdFromToolTip}" required-field="true">
            <drop-down allow-empty="false">
                <entity-options description="${groupName}" entity-name="PartyRoleAndPartyDetail" 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" title="Organization PartyId">
            <display-entity description="${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="statusId" title="${uiLabelMap.CommonStatus}" required-field="true"><!-- SCIPIO: added required-field -->
            <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}" required-field="true">
            <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="submitAction" use-when="emplPosition==null" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="text-link"/></field>
        <field name="submitAction" use-when="emplPosition!=null" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
    <form name="ListEmplPositionFulfillments" type="list" target="updateEmplPositionFulfillment" title="" paginate-target="EditEmplPositionFulfillments"
        odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="EmplPositionFulfillment">
                <condition-expr field-name="emplPositionId" operator="equals" from-field="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="EmployeeProfile" link-style="${styles.link_nav_info_id}" description="${partyId}">
                    <parameter param-name="partyId"/>
                </sub-hyperlink>
            </display-entity>
        </field>
        <field name="emplPositionId"><hidden/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/> </field>
        <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteEmplPositionFulfillment" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="emplPositionId"/>
                <parameter param-name="partyId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddEmplPositionFulfillment" type="single" target="createEmplPositionFulfillment" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="createEmplPositionFulfillment"/>
        <field name="emplPositionId"><hidden /></field>
        <field name="partyId" title="${uiLabelMap.PartyPartyId}" required-field="true"><lookup target-form-name="LookupPartyName"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" required-field="true"/>
        <field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><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"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="EmplPositionReportingStruct" list="emplPositionReportingStructList">
                <condition-expr field-name="emplPositionIdManagedBy" from-field="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" title="${uiLabelMap.CommonFrom}" ><display/></field>
        <field name="comments"><text/></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/> </field>
        <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteEmplPositionReportingStruct" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="emplPositionIdReportingTo"/>
                <parameter param-name="emplPositionIdManagedBy"/>
                <parameter param-name="fromDate"/>
                <parameter param-name="emplPositionId" from-field="parameters.emplPositionId"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddReportsToEmplPositionReportingStruct" type="single" target="createEmplPositionReportingStruct" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="createEmplPositionReportingStruct"/>
        <field name="emplPositionId"><hidden value="${parameters.emplPositionId}"/></field>
        <field name="emplPositionIdReportingTo" required-field="true"><lookup target-form-name="LookupEmplPosition"/></field>
        <field name="emplPositionIdManagedBy" required-field="true"><hidden value="${parameters.emplPositionId}"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" required-field="true"/>
        <field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><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" list-name="emplPositionReportingStructList"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="EmplPositionReportingStruct" list="emplPositionReportingStructList">
                <condition-expr field-name="emplPositionIdReportingTo" from-field="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" title="${uiLabelMap.CommonFrom}" ><display/></field>
        <field name="comments"><text/></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/> </field>
        <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteEmplPositionReportingStruct" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="emplPositionIdReportingTo"/>
                <parameter param-name="emplPositionIdManagedBy"/>
                <parameter param-name="fromDate"/>
                <parameter param-name="emplPositionId" from-field="parameters.emplPositionId"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddReportedToEmplPositionReportingStruct" type="single" target="createEmplPositionReportingStruct" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-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" required-field="true"><lookup target-form-name="LookupEmplPosition"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" required-field="true"/>
        <field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>
    <form name="ListEmplPositionResponsibilities" type="list" target="updateEmplPositionResponsibility" title="" paginate-target="EditEmplPositionResponsibilities"
        odd-row-style="alternate-row" header-row-style="header-row-2"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="EmplPositionResponsibility">
                <condition-expr field-name="emplPositionId" operator="equals" from-field="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" title="${uiLabelMap.CommonFrom}" ><display /></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/> </field>
        <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteEmplPositionResponsibility" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="emplPositionId"/>
                <parameter param-name="responsibilityTypeId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddEmplPositionResponsibility" type="single" target="createEmplPositionResponsibility" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="createEmplPositionResponsibility"/>
        <field name="emplPositionId"><hidden /></field>
        <field name="responsibilityTypeId" required-field="true">
            <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="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>
    <form name="ListValidResponsibilities" type="list" target="updateValidResponsibility" title="" paginate-target="findValidResponsibilities"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <entity-condition entity-name="EmplPositionResponsibility"/>
        </actions>
        <auto-fields-service service-name="updateValidResponsibility"/>
        <field name="emplPositionTypeId" title="${uiLabelMap.HumanResEmployeePositionTypeId}"><display /></field>
        <field name="responsibilityTypeId" title="${uiLabelMap.HumanResResponsibilityTypeId}"><display /></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display /></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/> </field>
        <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteValidResponsibility" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="emplPositionTypeId" from-field="emplPositionId"/>
                <parameter param-name="responsibilityTypeId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddValidResponsibility" type="single" target="createValidResponsibility" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-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="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>
    <form name="FindEmplPositions" type="single" target="FindEmplPositions" header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-entity entity-name="EmplPosition" 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="salaryFlag">
            <drop-down allow-empty="false" current="selected">
                <option key="Y" description="${uiLabelMap.CommonYes}"/>
                <option key="N" description="${uiLabelMap.CommonNo}"/>
            </drop-down>
        </field>
        <field name="exemptFlag">
            <drop-down allow-empty="false" current="selected">
                <option key="Y" description="${uiLabelMap.CommonYes}"/>
                <option key="N" description="${uiLabelMap.CommonNo}"/>
            </drop-down>
        </field>
        <field name="fulltimeFlag">
            <drop-down allow-empty="false" current="selected">
                <option key="Y" description="${uiLabelMap.CommonYes}"/>
                <option key="N" description="${uiLabelMap.CommonNo}"/>
            </drop-down>
        </field>
        <field name="temporaryFlag">
            <drop-down allow-empty="false" current="selected">
                <option key="Y" description="${uiLabelMap.CommonYes}"/>
                <option key="N" description="${uiLabelMap.CommonNo}"/>
            </drop-down>
        </field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
    </form>
    <form name="EmplPositionInfo" type="single" default-map-name="emplPosition" paginate-target="FindEmplPositions"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="updateEmplPosition" default-field-type="display"/>
        <field name="partyId"><display-entity entity-name="PartyGroup" description="${groupName}">
            <sub-hyperlink target="EmployeeProfile" description="[${emplPosition.partyId}]">
                <parameter param-name="partyId" from-field="emplPosition.partyId"/>
            </sub-hyperlink>
        </display-entity></field>
        <field name="emplPositionTypeId"><display-entity entity-name="EmplPositionType" description="${description}">
            <sub-hyperlink target="EditEmplPositionTypes" description="[${emplPosition.emplPositionTypeId}]">
                <parameter param-name="emplPositionTypeId" from-field="emplPosition.emplPositionTypeId"/>
            </sub-hyperlink>
        </display-entity></field>
    </form>
    <form name="ListEmplPositionFulfilmentInfo" type="list" list-name="emplPositionFulfillments"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-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"> <!-- orig: default-table-style=-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"> <!-- orig: default-table-style=-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"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <auto-fields-service service-name="updateEmplPositionReportingStruct" default-field-type="display"/>
        <field name="emplPositionIdReportingTo"><hidden/></field>
    </form>
    <form name="ListInternalOrg" type="single" target="createInternalOrg" default-map-name="partyRole"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="headpartyId" parameter-name="headpartyId"><hidden /></field>
        <field 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="dummy1" title=" " position="1"><display/></field>
        <field name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="text-link"/></field>
    </form>
</forms>