In the latest trunk the tree off the HR Main menu has some questionable
behavior:

1. The developer and test persons created in the Accounting
application behave like organizations. They display the organization icon and
context menu.
For example:
Go to Human Resources Main
In the tree open the nodes Development Department >
Development Team 1
Right Click on any of the children Developer1-3.
Developers 1-3 are persons but the context menu presents the
functions for an organization (Add Employee Position / Add Internal 
Organization). 
The Testing entities have the same behavior. See attached AcctHRBefore.jpg

 
Expected parties that are persons would not have context functions. 
Expected Accounting entities to display icons and behavior
in the manner of the Programmer and Demo Employee created by 
HumanResDemoData.xml. For example load the attached HumanResAcctData.xml using 
Webtools > Entity Import > Absolute Filename or URL to see the expected result 
as shown in attache AcctHRAfter.jpg

 
2. The context menu Add Internal Organization allows
duplicate organization entities in the tree. This by itself does not make
business sense and it permits the creation of recursive structures by selecting
the name of the parent for the child. For example:
Go to Human Resources Main
In the tree right click on "Development department"
In the context menu select Add Internal Organization
In the drop down list select "DEV"
Click Create
After refresh open the "Development department".
It now contains a child "Development department" which has a child "Development
department" etc etc.
 
It is also possible to create recursion by adding an
organizations parent as a child. Substitute party_id "Company" for "DEV"
in the above exercise. 
 
Expected unique nodes
 
3. Selecting Add Employee Position or Add Person from the
context menu opens the corresponding edit forms with calendar lookup fields.
The calendar form does no open when the lookup icon is clicked.
 
Expected calendar to open on click.

Tom
<?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.
-->
<entity-engine-xml>   
    <!-- Positions Type for Testing Teams -->
    <EmplPositionType description="QA Engineer" hasTable="N" parentTypeId="" emplPositionTypeId="QA_ENGINEER"/>
    
    <!-- Development Positions - one for each Development Team Member -->
    <EmplPosition emplPositionId="DEV100" statusId="EMPL_POS_ACTIVE" partyId="DevTeam1" emplPositionTypeId="PROGRAMMER" salaryFlag="Y" exemptFlag="Y" fulltimeFlag="Y" temporaryFlag="Y"/>
    <EmplPosition emplPositionId="DEV200" statusId="EMPL_POS_ACTIVE" partyId="DevTeam2" emplPositionTypeId="PROGRAMMER" salaryFlag="Y" exemptFlag="Y" fulltimeFlag="Y" temporaryFlag="Y"/>
    <EmplPosition emplPositionId="DEV300" statusId="EMPL_POS_ACTIVE" partyId="DevTeam3" emplPositionTypeId="PROGRAMMER" salaryFlag="Y" exemptFlag="Y" fulltimeFlag="Y" temporaryFlag="Y"/>

    <!-- QA Positions Positions - one for each Tetst Team Member -->
    <EmplPosition emplPositionId="QA100" statusId="EMPL_POS_ACTIVE" partyId="TestingTeam1" emplPositionTypeId="QA_ENGINEER" salaryFlag="Y" exemptFlag="Y" fulltimeFlag="Y" temporaryFlag="Y"/>
    <EmplPosition emplPositionId="QA200" statusId="EMPL_POS_ACTIVE" partyId="TestingTeam2" emplPositionTypeId="QA_ENGINEER" salaryFlag="Y" exemptFlag="Y" fulltimeFlag="Y" temporaryFlag="Y"/>
    <EmplPosition emplPositionId="QA300" statusId="EMPL_POS_ACTIVE" partyId="TestingTeam2" emplPositionTypeId="QA_ENGINEER" salaryFlag="Y" exemptFlag="Y" fulltimeFlag="Y" temporaryFlag="Y"/>
    
    <!-- Position Assignments -->
     <EmplPositionFulfillment emplPositionId="DEV100" partyId="DevTeam1" fromDate="2009-01-30 17:58:02.745"/>
     <EmplPositionFulfillment emplPositionId="DEV200" partyId="DevTeam2" fromDate="2009-01-30 17:58:02.745"/>
     <EmplPositionFulfillment emplPositionId="DEV300" partyId="DevTeam3" fromDate="2009-01-30 17:58:02.745"/>
     
     <EmplPositionFulfillment emplPositionId="QA100" partyId="TestingTeam1" fromDate="2009-01-30 17:58:02.745"/>
     <EmplPositionFulfillment emplPositionId="QA200" partyId="TestingTeam2" fromDate="2009-01-30 17:58:02.745"/>
     <EmplPositionFulfillment emplPositionId="QA300" partyId="TestingTeam2" fromDate="2009-01-30 17:58:02.745"/>  
     
     <!-- Employment Fufillments --> 
     <Employment roleTypeIdFrom="INTERNAL_ORGANIZATIO" roleTypeIdTo="EMPLOYEE" partyIdFrom="DevTeam1" partyIdTo="Developer1" fromDate="2000-01-30 17:50:15.767"/>
     <Employment roleTypeIdFrom="INTERNAL_ORGANIZATIO" roleTypeIdTo="EMPLOYEE" partyIdFrom="DevTeam2" partyIdTo="Developer2" fromDate="2000-01-30 17:50:15.767"/>
     <Employment roleTypeIdFrom="INTERNAL_ORGANIZATIO" roleTypeIdTo="EMPLOYEE" partyIdFrom="DevTeam3" partyIdTo="Developer3" fromDate="2000-01-30 17:50:15.767"/>
     
     <Employment roleTypeIdFrom="INTERNAL_ORGANIZATIO" roleTypeIdTo="EMPLOYEE" partyIdFrom="TestingTeam1" partyIdTo="TestingTeamMember1" fromDate="2000-01-30 17:50:15.767"/>
     <Employment roleTypeIdFrom="INTERNAL_ORGANIZATIO" roleTypeIdTo="EMPLOYEE" partyIdFrom="TestingTeam2" partyIdTo="TestingTeamMember2" fromDate="2000-01-30 17:50:15.767"/>
     <Employment roleTypeIdFrom="INTERNAL_ORGANIZATIO" roleTypeIdTo="EMPLOYEE" partyIdFrom="TestingTeam2" partyIdTo="TestingTeamMember3" fromDate="2000-01-30 17:50:15.767"/>   
</entity-engine-xml>

Reply via email to