ilscipio/scipio-erp

View on GitHub
applications/humanres/widget/RecruitmentScreens.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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
    <screen name="FindJobRequisitions">
        <section>             
            <actions>   
                <set field="titleProperty" value="PageTitleFindJobRequisition"/>
                <set field="activeSubMenuItem" value="JobRequisition"/>
                <service service-name="humanResManagerPermission" result-map="permResult">
                    <field-map field-name="mainAction" value="ADMIN"/>
                </service>
                <set field="hasAdminPermission" from-field="permResult.hasPermission"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonRecruitmentDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="menu-bar">
                                <section>
                                    <condition>
                                        <if-has-permission permission="HUMANRES" action="_ADMIN"/>
                                    </condition>
                                    <widgets>
                                        <container style="button-bar">
                                            <link target="EditJobRequisition" text="${uiLabelMap.HumanResNewJobRequisition}" style="${styles.link_nav} ${styles.action_add}"/>
                                        </container>
                                    </widgets>
                                </section>
                            </decorator-section>
                            <decorator-section name="search-options">
                                <include-form name="FindJobRequisitions" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListJobRequisitions" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditJobRequisition">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditJobRequisition"/>
                <set field="activeSubMenuItem" value="JobRequisition"/>
                <set field="jobRequisitionId" from-field="parameters.jobRequisitionId"/>
                <entity-one entity-name="JobRequisition" value-field="jobRequisition"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonRecruitmentDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <if-empty field="jobRequisition.jobRequisitionId"/>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.CommonAdd} ${uiLabelMap.HumanResJobRequisition}">
                                    <include-form name="EditJobRequisition" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                                </screenlet>
                            </widgets>
                            <fail-widgets>
                                <screenlet>
                                    <include-form name="EditJobRequisition" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                                </screenlet>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindInternalJobPosting">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindInternalJobPosting"/>
                <set field="activeSubMenuItem" value="InternalJobPosting"/>
                <service service-name="humanResManagerPermission" result-map="permResult">
                    <field-map field-name="mainAction" value="ADMIN"/>
                </service>
                <set field="hasAdminPermission" from-field="permResult.hasPermission"/>
                <set field="partyId" from-field="parameters.userLogin.partyId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="menu-bar">
                                <container style="button-bar">
                                    <link target="EditInternalJobPosting" text="${uiLabelMap.HumanResNewInternalJobPosting}" style="${styles.link_nav} ${styles.action_add}"/>
                                </container>
                            </decorator-section>
                            <decorator-section name="search-options">
                                <include-form name="FindInternalJobPosting" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListInternalJobPosting" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditInternalJobPosting">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="InternalJobPosting"/>
                <set field="applicationId" from-field="parameters.applicationId"/>
                <entity-one entity-name="EmploymentApp" value-field="employmentApp"/>
                <set field="partyId" from-field="parameters.userLogin.partyId"/>
                <set field="titleProperty" value="${groovy: context.employmentApp ? 'PageTitleEditInternalJobPosting' : 'HumanResNewInternalJobPosting'}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="EditInternalJobPosting" collapsible="true"><!-- title="${uiLabelMap.HumanResNewInternalJobPosting}"  -->
                            <include-form name="EditInternalJobPosting" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindJobInterview">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindJobInterviewDetails"/>
                <set field="activeSubMenuItem" value="JobInterview"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="menu-bar">
                                <container style="button-bar">
                                    <link target="EditJobInterview" text="${uiLabelMap.HumanResNewJobInterview}" style="${styles.link_nav} ${styles.action_add}"/>
                                </container>
                            </decorator-section>
                            <decorator-section name="search-options">
                                <include-form name="FindJobInterview" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListInterview" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditJobInterview">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditJobInterview"/>
                <set field="activeSubMenuItem" value="JobInterview"/>
                <set field="jobInterviewId" from-field="parameters.jobInterviewId"/>
                <entity-one entity-name="JobInterview" value-field="JobInterview"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <include-form name="EditJobInterview" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindApprovals">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindApprovals"/>
                <set field="activeSubMenuItem" value="Approval"/>
                <service service-name="humanResManagerPermission" result-map="permResult">
                    <field-map field-name="mainAction" value="ADMIN"/>
                </service>
                <set field="hasAdminPermission" from-field="permResult.hasPermission"/>
                <set field="partyId" from-field="parameters.userLogin.partyId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="search-options">
                                <include-form name="FindApprovals" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListApprovals" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditApprovalStatus">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditApprovalStatus"/>
                <set field="activeSubMenuItem" value="Approval"/>                
                <set field="candidateRequestId" from-field="parameters.candidateRequestId"/>
                <entity-one entity-name="EmploymentApp" value-field="employmentApp"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="EditApprovalStatus" collapsible="true">
                            <include-form name="EditApprovalStatus" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindRelocation">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindRelocationDetails"/>
                <set field="activeSubMenuItem" value="Relocation"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonInternalJobPostingDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                            <decorator-section name="search-options">
                                <include-form name="FindRelocation" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                            <decorator-section name="search-results">
                                <include-form name="ListRelocation" location="component://humanres/widget/forms/RecruitmentForms.xml"/>
                            </decorator-section>
                        </decorator-screen>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>