<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
    <form name="FindEmployments" type="single" target="FindEmployments"
        odd-row-style="header-row" default-table-style="basic-table">
        <field name="roleTypeIdFrom"><hidden value="INTERNAL_ORGANIZATIO"/></field>
        <field name="roleTypeIdTo"><hidden value="EMPLOYEE"/></field>
        <field name="partyIdFrom" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}" tooltip="${uiLabelMap.HumanResEmploymentPartyIdFromToolTip}">
            <drop-down allow-empty="true" no-current-selected-key="${defaultOrganizationPartyId}">
                <entity-options description="${groupName}" entity-name="PartyAcctgPrefAndGroup" key-field-name="partyId">
                    <entity-order-by field-name="groupName"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="partyIdTo" title="${uiLabelMap.HumanResEmployeePartyIdTo}"><lookup target-form-name="LookupPartyName"/></field>
        <field name="firstName"><text-find/></field>
        <field name="lastName"><text-find/></field>
        <field name="fromDate"><date-find/></field>
        <field name="thruDate"><date-find/></field>
        <field name="terminationReasonId" title="${uiLabelMap.HumanResTerminationReasonId}"><lookup target-form-name="LookupTerminationReason"/></field>
        <field name="terminationTypeId">
            <drop-down allow-empty="true" current-description="">
                <entity-options key-field-name="terminationTypeId" entity-name="TerminationType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
        <field name="searchButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <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="result" result-map-list="listIt">
                <field-map field-name="inputFields" from-field="employmentCtx"/>
                <field-map field-name="entityName" value="EmploymentAndPerson"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="partyIdFrom" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}"><display></display></field>
        <field name="partyIdTo" title="${uiLabelMap.HumanResEmployeePartyIdTo}" widget-style="buttontext">
            <hyperlink description="${partyIdTo}" target="EmployeeProfile" also-hidden="false">
                <parameter param-name="partyId" from-field="partyIdTo"/>
            </hyperlink>
        </field>
        <field name="firstName"><display></display></field>
        <field name="lastName"><display></display></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"><display/></field>
        <field name="editLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonEdit}" target="EditEmployment">
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="fromDate"/>
                <parameter param-name="roleTypeIdTo"/>
            </hyperlink>
        </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="result" result-map-list="listIt">
                <field-map field-name="inputFields" from-field="employmentCtx"/>
                <field-map field-name="entityName" value="Employment"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="partyIdFrom" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}"><display></display></field>
        <field name="partyIdTo" title="${uiLabelMap.HumanResEmployeePartyIdTo}" widget-style="buttontext">
            <hyperlink description="${partyIdTo}" target="viewprofile" also-hidden="false">
                <parameter param-name="partyId" from-field="partyIdTo"/>
            </hyperlink>
        </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"><display/></field>
        <field name="editLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonEdit}" target="EditEmployment">
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="fromDate"/>
                <parameter param-name="roleTypeIdTo"/>
            </hyperlink>
        </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"/>
<!--         <auto-fields-service service-name="createEmployment" default-field-type="hidden"/> -->
        <field name="roleTypeIdFrom"><hidden value="INTERNAL_ORGANIZATIO"/></field>
        <field name="roleTypeIdTo"><hidden value="EMPLOYEE"/></field>
        <field name="partyIdFrom" use-when="employment==null" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}" required-field="true">
            <drop-down allow-empty="false">
                <entity-options entity-name="PartyRole" key-field-name="partyId" description="${partyId}">
                    <entity-constraint name="roleTypeId" operator="equals" value="INTERNAL_ORGANIZATIO"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="partyIdFrom" use-when="employment!=null" title="${uiLabelMap.HumanResEmploymentPartyIdFrom}"><hidden/></field>
        <field name="partyIdTo" use-when="employment==null" title="${uiLabelMap.HumanResEmployeePartyIdTo}" required-field="true"><lookup target-form-name="LookupEmployee"/></field>
        <field name="partyIdTo" use-when="employment!=null" title="${uiLabelMap.HumanResEmployeePartyIdTo}"><hidden/></field>
        <field name="fromDate" use-when="employment==null" title="${uiLabelMap.CommonFromDate}" required-field="true"><date-time default-value="${nowTimestamp}"/></field>
        <field name="fromDate" use-when="employment!=null" title="${uiLabelMap.CommonFromDate}"><display default-value="${nowTimestamp}"/></field>
        <field name="thruDate" use-when="employment!=null" title="${uiLabelMap.CommonThruDate}"><date-time/></field>
        <!-- For PayHistory -->
        <field name="amount"           use-when="employment==null" required-field="true"><text/></field>
        <field name="comments"         use-when="employment==null"><text/></field>
        <field name="payGradeId"       use-when="employment==null" title="${uiLabelMap.HumanResPayGradeID}"><lookup target-form-name="LookupPayGrade" size="20"/></field>
        <field name="salaryStepSeqId"  use-when="employment==null" title="${uiLabelMap.HumanResSalaryStepSeqId}"><lookup target-form-name="LookupSalaryStep" size="20"/></field>
        <field name="periodTypeId"     use-when="employment==null" title="${uiLabelMap.FormFieldTitle_periodTypeId}">
            <drop-down allow-empty="false">
                <entity-options key-field-name="periodTypeId" entity-name="PeriodType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <!-- End of For PayHistory -->
        <field name="terminationReasonId" use-when="employment!=null" title="${uiLabelMap.HumanResTerminationReasonId}">
            <drop-down allow-empty="true" no-current-selected-key="------">
                <entity-options key-field-name="terminationReasonId" entity-name="TerminationReason">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="terminationTypeId" use-when="employment!=null">
            <drop-down allow-empty="true" no-current-selected-key="------">
                <entity-options key-field-name="terminationTypeId" entity-name="TerminationType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitButton" use-when="employment==null" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
        <field name="submitButton" use-when="employment!=null" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <form name="ListPayHistories" type="list" target="updatePayHistory" title="" paginate-target="findPayHistories"
        odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
        <actions>
            <set field="emplFromDate" from-field="parameters.emplFromDate" default-value="${parameters.fromDate}"/>
            <entity-condition entity-name="PayHistory">
                <condition-list combine="and">
                    <condition-expr field-name="roleTypeIdFrom" operator="equals" from-field="parameters.roleTypeIdFrom"/>
                    <condition-expr field-name="roleTypeIdTo" operator="equals" from-field="parameters.roleTypeIdTo"/>
                    <condition-expr field-name="partyIdFrom" operator="equals" from-field="parameters.partyIdFrom"/>
                    <condition-expr field-name="partyIdTo" operator="equals" from-field="parameters.partyIdTo"/>
                    <condition-expr field-name="emplFromDate" operator="equals" from-field="emplFromDate"/>
                </condition-list>
                <order-by field-name="fromDate"/>
            </entity-condition>
        </actions>
        <field name="editLink" title=" " widget-style="buttontext" use-when="${groovy:thruDate == null}">
            <hyperlink description="${uiLabelMap.CommonEdit}" target="EditPayHistory">
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="roleTypeIdTo"/>
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="emplFromDate"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
        <field name="fromDate" ><display/></field>
        <field name="thruDate"><display/></field>
        <field name="amount"><display/></field>
        <field name="periodTypeId" title="${uiLabelMap.FormFieldTitle_periodTypeId}"><display-entity entity-name="PeriodType"/></field>
        <field name="payGradeId" title="${uiLabelMap.HumanResPayGradeID}"><display/></field>
        <field name="salaryStepSeqId" title="${uiLabelMap.HumanResSalaryStepSeqId}"><display/></field>
        <field name="salaryStepSeqId" title="${uiLabelMap.HumanResSalaryStepSeqId}"><display/></field>
        <field name="comments"><display/></field>
        <field name="deleteLink" title=" " widget-style="buttontext" use-when="${groovy:thruDate == null}">
            <hyperlink description="${uiLabelMap.CommonDelete}" target="expirePayHistory">
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="roleTypeIdTo"/>
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="emplFromDate"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditPayHistory" type="single" target="updatePayHistory" default-entity-name="PayHistory" default-map-name="payHistory">
        <field name="roleTypeIdFrom" ><hidden/></field>
        <field name="roleTypeIdTo"   ><hidden/></field>
        <field name="partyIdFrom"    ><hidden/></field>
        <field name="partyIdTo"      ><hidden/></field>
        <field name="emplFromDate"   ><hidden/></field>
        <field name="fromDate"><hidden/></field>
        <field name="changeDate"><date-time/></field>
        <field name="amount"><text/></field>
        <field name="periodTypeId" title="${uiLabelMap.FormFieldTitle_periodTypeId}" position="2">
            <drop-down allow-empty="false">
                <entity-options key-field-name="periodTypeId" entity-name="PeriodType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="comments"><text size="75"/></field>
        <field name="payGradeId" title="${uiLabelMap.HumanResPayGradeID}"><lookup target-form-name="LookupPayGrade" size="20" /></field>
        <field name="salaryStepSeqId" title="${uiLabelMap.HumanResSalaryStepSeqId}" position="2"><lookup target-form-name="LookupSalaryStep" target-parameter="payGradeId" size="20"/></field>
        <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
    </form>
    <form name="ListPartyBenefits" type="multi" target="updatePartyBenefit?benefitTypeId=${benefitTypeId}&amp;roleTypeIdFrom=${roleTypeIdFrom}&amp;roleTypeIdTo=${roleTypeIdTo}&amp;partyIdFrom=${partyIdFrom}&amp;partyIdTo=${partyIdTo}&amp;fromDate=${fromDate}" title="" paginate-target="findPartyBenefits"
        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
        <actions>
            <entity-condition entity-name="PartyBenefit"><order-by field-name="fromDate"/></entity-condition>
        </actions>
        <auto-fields-service service-name="updatePartyBenefit"/>
        <field name="roleTypeIdFrom"><hidden/></field>
        <field name="roleTypeIdTo"><hidden/></field>
        <field name="partyIdFrom"><hidden/></field>
        <field name="partyIdTo"><hidden/></field>
        <field name="benefitTypeId"><display-entity entity-name="BenefitType"/></field>
        <field name="fromDate"><display/></field>
        <field name="periodTypeId">
            <drop-down allow-empty="false">
                <entity-options key-field-name="periodTypeId" entity-name="PeriodType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="thruDate"><date-time/></field>
        <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
        <field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonDelete}" target="deletePartyBenefit">
                <parameter param-name="benefitTypeId"/>
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="roleTypeIdTo"/>
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddPartyBenefit" type="single" target="createPartyBenefit"
        header-row-style="header-row" default-table-style="basic-table">
        <auto-fields-service service-name="createPartyBenefit"/>
        <field name="roleTypeIdFrom"><hidden/></field>
        <field name="roleTypeIdTo"><hidden/></field>
        <field name="partyIdFrom"><hidden/></field>
        <field name="partyIdTo"><hidden/></field>
        <field name="fromDate"><hidden/></field>
        <field name="benefitTypeId" required-field="true">
            <drop-down allow-empty="false">
                <entity-options key-field-name="benefitTypeId" entity-name="BenefitType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="fromDate" required-field="true"/>
        <field name="periodTypeId">
            <drop-down allow-empty="false">
                <entity-options key-field-name="periodTypeId" entity-name="PeriodType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
    </form>
    <form name="ListPayrollPreferences" type="multi" target="updatePayrollPreference?partyId=${partyId}&amp;roleTypeId=${roleTypeId}&amp;payrollPreferenceSeqId=${payrollPreferenceSeqId}" separate-columns="true" paginate-target="findPayRollPreferences"
        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
        <actions>
            <entity-condition entity-name="PayrollPreference">
                <condition-list combine="and">
                    <condition-expr field-name="partyId" operator="equals" from-field="parameters.partyIdTo"/>
                    <condition-expr field-name="roleTypeId" operator="equals" from-field="parameters.roleTypeIdTo"/>
                </condition-list>
                <order-by field-name="fromDate"/>
            </entity-condition>
        </actions>
        <auto-fields-service default-field-type="hidden" service-name="updatePayrollPreference"/>
        <field name="partyId"><display/></field>
        <field name="roleTypeId"><display-entity entity-name="RoleType"/></field>
        <field name="payrollPreferenceSeqId" title="${uiLabelMap.HumanResPayrollPreferenceSeqId}"><display also-hidden="true"/></field>
        <field name="paymentMethodTypeId"><display-entity entity-name="PaymentMethodType"/></field>
        <field name="periodTypeId"><display-entity entity-name="PeriodType"/></field>
        <field name="fromDate"><display/></field>
        <field name="thruDate"><date-time/></field>
        <field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonDelete}" target="deletePayrollPreference" also-hidden="true">
                <parameter param-name="partyId"/>
                <parameter param-name="roleTypeId"/>
                <parameter param-name="payrollPreferenceSeqId"/>
            </hyperlink>
        </field>
        <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
    </form>
    <form name="AddPayrollPreference" type="single" target="createPayrollPreference"
        header-row-style="header-row" default-table-style="basic-table">
        <auto-fields-service service-name="createPayrollPreference"/>
        <field name="payrollPreferenceSeqId" title="${uiLabelMap.HumanResPayrollPreferenceSeqId}" required-field="true"><lookup target-form-name="LookupPayRollPreference"/></field>
        <field name="partyId"><hidden/></field>
        <field name="roleTypeId"><hidden/></field>
        <field name="fromDate"><hidden/></field>
        <field name="deductionTypeId">
            <drop-down allow-empty="false">
                <entity-options key-field-name="deductionTypeId" entity-name="DeductionType">
                    <entity-order-by field-name="deductionTypeId"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="paymentMethodTypeId">
            <drop-down allow-empty="false">
                <entity-options key-field-name="paymentMethodTypeId" entity-name="PaymentMethodType">
                    <entity-order-by field-name="paymentMethodTypeId"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="periodTypeId">
            <drop-down allow-empty="false">
                <entity-options key-field-name="periodTypeId" entity-name="PeriodType">
                    <entity-order-by field-name="periodTypeId"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <form name="ListPerformanceNotes" type="list" target="updatePerformanceNote" title="" paginate-target="findPerformanceNotes"
        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
        <actions>
            <entity-condition entity-name="PerformanceNote"/>
        </actions>
        <auto-fields-service default-field-type="display" service-name="updatePerformanceNote"/>
        <field name="partyId" title="${uiLabelMap.PartyPartyId}">
           <display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView">
               <sub-hyperlink target="/partymgr/control/viewprofile" link-style="smallSubmit" target-type="inter-app" description="${partyId}">
                <parameter param-name="partyId"/>
            </sub-hyperlink>
           </display-entity>
        </field>
    </form>
    <form name="AddPerformanceNote" type="single" target="createPerformanceNote" default-map-name="performanceNote"
        header-row-style="header-row" default-table-style="basic-table">
        <auto-fields-service service-name="createPerformanceNote" map-name="performanceNote"/>
        <field name="partyId"><hidden/></field>
        <field name="roleTypeId">
            <drop-down allow-empty="true">
                <entity-options key-field-name="roleTypeId" entity-name="RoleType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <form name="ListUnemploymentClaims" type="multi" target="updateUnemploymentClaim?unemploymentClaimId=${unemploymentClaimId}&amp;roleTypeIdFrom=${roleTypeIdFrom}&amp;roleTypeIdTo=${roleTypeIdTo}&amp;partyIdFrom=${partyIdFrom}&amp;partyIdTo=${partyIdTo}&amp;fromDate=${fromDate}" paginate-target="FindUnemploymentClaim"
         odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
         <actions>
            <entity-condition entity-name="UnemploymentClaim" filter-by-date="true">
                <condition-list combine="and">
                    <condition-expr field-name="partyIdFrom" operator="equals" from-field="parameters.partyIdFrom"/>
                    <condition-expr field-name="partyIdTo" operator="equals" from-field="parameters.partyIdTo"/>
                    <condition-expr field-name="roleTypeIdFrom" operator="equals" from-field="parameters.roleTypeIdFrom"/>
                    <condition-expr field-name="roleTypeIdTo" operator="equals" from-field="parameters.roleTypeIdTo"/>
                    <condition-expr field-name="fromDate" operator="equals" from-field="parameters.fromDate"/>
                </condition-list>
                <order-by field-name="unemploymentClaimId"/>
            </entity-condition>
        </actions>
        <field name="unemploymentClaimId"><display/></field>
        <field name="partyIdFrom"><display/></field>
        <field name="partyIdTo"><display/></field>
        <field name="roleTypeIdTo"><hidden/></field>
        <field name="roleTypeIdFrom"><hidden/></field>
        <field name="fromDate"><display/></field>
        <field name="description"><text size="12"/></field>
        <field name="statusId">
            <drop-down allow-empty="false">
                <entity-options 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="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
        <field name="deleteLink" title=" " widget-style="buttontext">
            <hyperlink description="${uiLabelMap.CommonDelete}" target="deleteUnemploymentClaim">
                <parameter param-name="unemploymentClaimId"/>
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="roleTypeIdTo"/>
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="AddUnemploymentClaim" type="single" target="createUnemploymentClaim" title="" default-map-name="unemploymentClaim"
        header-row-style="header-row" default-table-style="basic-table">
        <auto-fields-service service-name="createUnemploymentClaim"/>
        <field name="unemploymentClaimId" required-field="true"><lookup target-form-name="LookupUnemploymentClaim"/></field>
        <field name="statusId">
            <drop-down allow-empty="false">
                <entity-options 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="roleTypeIdFrom"><hidden/></field>
        <field name="roleTypeIdTo"><hidden/></field>
        <field name="partyIdFrom"><hidden/></field>
        <field name="partyIdTo"><hidden/></field>
        <field name="fromDate"><hidden/></field>
        <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
    </form>
    <form name="ListAgreementEmploymentAppls" type="multi" title="" target="updateAgreementEmploymentAppl?agreementId=${agreementId}&amp;partyIdTo=${partyIdTo}&amp;partyIdFrom=${partyIdFrom}&amp;roleTypeIdFrom=${roleTypeIdFrom}&amp;roleTypeIdTo=${roleTypeIdTo}&amp;fromDate=${fromDate}&amp;agreementItemSeqId=${agreementItemSeqId}" paginate-target="EditAgreementEmploymentAppls"
        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
        <actions>
            <entity-condition entity-name="AgreementEmploymentAppl"><order-by field-name="fromDate"/></entity-condition>
        </actions>
        <field name="agreementId" title="${uiLabelMap.AccountingAgreementId}"><display also-hidden="true"/></field>
        <field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}"><display also-hidden="true"/></field>
        <field name="partyIdFrom" title="${uiLabelMap.HumanResPartyIdFrom}"><display also-hidden="true"/></field>
        <field name="partyIdTo" title="${uiLabelMap.HumanResPartyIdTo}"><display also-hidden="true"/></field>
        <field name="roleTypeIdFrom"><hidden/></field>
        <field name="roleTypeIdTo"><hidden/></field>
        <field name="fromDate"><display/></field>
        <field name="thruDate"><date-time/></field>
        <field name="agreementDate"><date-time/></field>
        <field name="deleteLink" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
            <hyperlink target="deleteAgreementEmploymentAppl"  also-hidden="false">
                <parameter param-name="agreementId"/>
                <parameter param-name="partyIdTo"/>
                <parameter param-name="partyIdFrom"/>
                <parameter param-name="roleTypeIdFrom"/>
                <parameter param-name="roleTypeIdTo"/>
                <parameter param-name="fromDate"/>
                <parameter param-name="agreementItemSeqId"/>
            </hyperlink>
        </field>
        <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><hidden value="Y"/></field>
        <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit/></field>
    </form>
    <form name="AddAgreementEmploymentAppl" type="single" target="createAgreementEmploymentAppl" default-map-name="agreementEmploymentAppl"
        header-row-style="header-row" default-table-style="basic-table">
        <auto-fields-service service-name="createAgreementEmploymentAppl" default-field-type="display"/>
        <field name="agreementId" title="${uiLabelMap.AccountingAgreementId}" required-field="true"><lookup target-form-name="LookupAgreement"/></field>
        <field name="agreementItemSeqId" title="${uiLabelMap.AccountingAgreementItemSeqId}" required-field="true"><lookup target-form-name="LookupAgreementEmploymentAppl"/></field>
        <field name="partyIdFrom" title="${uiLabelMap.HumanResPartyIdFrom}" required-field="true"><lookup target-form-name="LookupPartyName"/></field>
        <field name="partyIdTo" title="${uiLabelMap.HumanResPartyIdTo}" required-field="true"><lookup target-form-name="LookupPartyName"/></field>
        <field name="roleTypeIdFrom">
            <drop-down allow-empty="false">
                <entity-options key-field-name="roleTypeId" entity-name="RoleType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="roleTypeIdTo" required-field="true">
            <drop-down allow-empty="false">
                <entity-options key-field-name="roleTypeId" entity-name="RoleType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="fromDate"><date-time/></field>
        <field name="agreementDate"><date-time/></field>
        <field name="thruDate"><date-time/></field>
        <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="buttontext"><submit button-type="text-link"/></field>
    </form>
</forms>
