Author: hansbak
Date: Wed Jan 28 13:43:45 2009 New Revision: 738484 URL: http://svn.apache.org/viewvc?rev=738484&view=rev Log: make hyperlink from empl position to type move paygrades to settings Modified: ofbiz/trunk/applications/humanres/widget/CommonScreens.xml ofbiz/trunk/applications/humanres/widget/Menus.xml ofbiz/trunk/applications/humanres/widget/PayGradeScreens.xml ofbiz/trunk/applications/humanres/widget/forms/EmplPositionForms.xml Modified: ofbiz/trunk/applications/humanres/widget/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/widget/CommonScreens.xml?rev=738484&r1=738483&r2=738484&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/widget/CommonScreens.xml (original) +++ ofbiz/trunk/applications/humanres/widget/CommonScreens.xml Wed Jan 28 13:43:45 2009 @@ -183,40 +183,6 @@ </widgets> </section> </screen> - <screen name="CommonPayGradeDecorator"> - <section> - <actions> - <set field="payGradeId" from-field="parameters.payGradeId"/> - <entity-one entity-name="PayGrade" value-field="payGrade"/> - </actions> - <widgets> - <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> - <decorator-section name="body"> - <section> - <!-- do check for Employment, _VIEW permission --> - <condition> - <if-has-permission permission="HUMANRES" action="_VIEW"/> - </condition> - <widgets> - <section> - <condition> - <not><if-empty field="payGrade"/></not> - </condition> - <widgets> - <include-menu name="SalaryBar" location="component://humanres/widget/Menus.xml"/> - </widgets> - </section> - <decorator-section-include name="body"/> - </widgets> - <fail-widgets> - <label style="h3">${uiLabelMap.HumanResViewPermissionError}</label> - </fail-widgets> - </section> - </decorator-section> - </decorator-screen> - </widgets> - </section> - </screen> <screen name="CommonPerfReviewDecorator"> <section> <actions> Modified: ofbiz/trunk/applications/humanres/widget/Menus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/widget/Menus.xml?rev=738484&r1=738483&r2=738484&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/widget/Menus.xml (original) +++ ofbiz/trunk/applications/humanres/widget/Menus.xml Wed Jan 28 13:43:45 2009 @@ -30,7 +30,6 @@ <menu-item name="Training" title="${uiLabelMap.HumanResTraining}"><link target="FindPersonTrainings"/></menu-item> <menu-item name="EmploymentApp" title="${uiLabelMap.HumanResEmploymentApp}"><link target="FindEmploymentApps"/></menu-item> <menu-item name="PartyResume" title="${uiLabelMap.HumanResPartyResume}"><link target="FindPartyResumes"/></menu-item> - <menu-item name="PayGrade" title="${uiLabelMap.HumanResPayGrade}"><link target="FindPayGrades"/></menu-item> <menu-item name="Leave" title="${uiLabelMap.HumanResEmplLeave}"><link target="FindEmplLeaves"/></menu-item> <menu-item name="GlobalHRSettings" title="${uiLabelMap.HumanResGlobalHRSettings}" selected-style="selected"><link target="globalHRSettings"/></menu-item> </menu> @@ -76,7 +75,7 @@ </menu-item> </menu> <menu name="SalaryBar" default-menu-item-name="EditSalaryStep" default-selected-style="selected" - type="simple" menu-container-style="button-bar tab-bar" selected-menuitem-context-field-name="tabButtonItem"> + type="simple" menu-container-style="button-bar tab-bar" selected-menuitem-context-field-name="subTabButtonItem"> <menu-item name="EditPayGrade" title="${uiLabelMap.HumanResPayGrade}"> <link target="EditPayGrade?payGradeId=${payGradeId}"/> </menu-item> @@ -106,6 +105,9 @@ <menu-item name="EmplLeaveType" title="${uiLabelMap.HumanResEmplLeaveType}"> <link target="EditEmplLeaveTypes"/> </menu-item> + <menu-item name="PayGrade" title="${uiLabelMap.HumanResPayGrade}"> + <link target="FindPayGrades"/> + </menu-item> </menu> <menu name="EmployeeProfileTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml" Modified: ofbiz/trunk/applications/humanres/widget/PayGradeScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/widget/PayGradeScreens.xml?rev=738484&r1=738483&r2=738484&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/widget/PayGradeScreens.xml (original) +++ ofbiz/trunk/applications/humanres/widget/PayGradeScreens.xml Wed Jan 28 13:43:45 2009 @@ -24,12 +24,13 @@ <section> <actions> <set field="titleProperty" value="HumanResFindPayGrade"/> - <set field="headerItem" value="PayGrade"/> + <set field="headerItem" value="GlobalHRSettingMenus"/> + <set field="tabButtonItem" value="PayGrade"/> <set field="payGradeId" from-field="parameters.payGradeId"/> <set field="payGradeCtx" from-field="parameters"/> </actions> <widgets> - <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-screen name="GlobalHRSettingsDecorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> <decorator-section name="menu-bar"> @@ -57,14 +58,22 @@ <section> <actions> <set field="titleProperty" value="HumanResEditPayGrade"/> - <set field="headerItem" value="PayGrade"/> - <set field="tabButtonItem" value="EditPayGrade"/> + <set field="tabButtonItem" value="PayGrade"/> + <set field="subTabButtonItem" value="EditPayGrade"/> <set field="payGradeId" from-field="parameters.payGradeId"/> <entity-one entity-name="PayGrade" value-field="payGrade"/> </actions> <widgets> - <decorator-screen name="CommonPayGradeDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-screen name="GlobalHRSettingsDecorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> + <section> + <condition> + <not><if-empty field="parameters.payGradeId"/></not> + </condition> + <widgets> + <include-menu name="SalaryBar" location="component://humanres/widget/Menus.xml"/> + </widgets> + </section> <screenlet title="${uiLabelMap.HumanResEditPayGrade}"> <section> <widgets> @@ -87,8 +96,16 @@ <set field="salaryStepSeqId" from-field="parameters.salaryStepSeqId"/> </actions> <widgets> - <decorator-screen name="CommonPayGradeDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-screen name="GlobalHRSettingsDecorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> + <section> + <condition> + <not><if-empty field="parameters.payGradeId"/></not> + </condition> + <widgets> + <include-menu name="SalaryBar" location="component://humanres/widget/Menus.xml"/> + </widgets> + </section> <screenlet id="AddSalaryStepPanel" title="${uiLabelMap.HumanResAddSalaryStep}" collapsible="true"> <include-form name="AddSalaryStep" location="component://humanres/widget/forms/PayGradeForms.xml"/> </screenlet> Modified: ofbiz/trunk/applications/humanres/widget/forms/EmplPositionForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/widget/forms/EmplPositionForms.xml?rev=738484&r1=738483&r2=738484&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/widget/forms/EmplPositionForms.xml (original) +++ ofbiz/trunk/applications/humanres/widget/forms/EmplPositionForms.xml Wed Jan 28 13:43:45 2009 @@ -271,6 +271,9 @@ <form name="EmplPositionInfo" type="single" default-map-name="emplPosition" paginate-target="FindEmplPositions" header-row-style="header-row" default-table-style="basic-table"> <auto-fields-service service-name="updateEmplPosition" default-field-type="display"/> + <field name="emplPositionTypeId"><display-entity entity-name="EmplPositionType" description="${description}"> + <sub-hyperlink target="EditEmplPositionTypes?emplPositionTypeId=${emplPosition.emplPositionTypeId}" description="[${emplPosition.emplPositionTypeId}]"/> + </display-entity></field> </form> <form name="ListEmplPositionFulfilmentInfo" type="list" list-name="emplPositionFulfillments" odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> |
Free forum by Nabble | Edit this page |