Search in sources :

Example 11 with PersonnelLevelEntity

use of org.mifos.customers.personnel.business.PersonnelLevelEntity in project head by mifos.

the class CenterStatusChangeIntegrationTest method updatePersonnel.

private void updatePersonnel(PersonnelBO loanOfficer, PersonnelLevel personnelLevel, PersonnelStatus newStatus, OfficeBO office) throws Exception {
    PersonnelStatusEntity newStatusEntity = new PersonnelStatusEntity(newStatus);
    loanOfficer.setStatus(newStatusEntity);
    PersonnelLevelEntity level = new PersonnelLevelEntity(personnelLevel);
    loanOfficer.setLevel(level);
    IntegrationTestObjectMother.createPersonnel(loanOfficer);
}
Also used : PersonnelLevelEntity(org.mifos.customers.personnel.business.PersonnelLevelEntity) PersonnelStatusEntity(org.mifos.customers.personnel.business.PersonnelStatusEntity)

Aggregations

PersonnelLevelEntity (org.mifos.customers.personnel.business.PersonnelLevelEntity)11 MessageLookup (org.mifos.application.master.MessageLookup)7 PersonnelStatusEntity (org.mifos.customers.personnel.business.PersonnelStatusEntity)7 ArrayList (java.util.ArrayList)6 OfficeBO (org.mifos.customers.office.business.OfficeBO)5 PersonnelBO (org.mifos.customers.personnel.business.PersonnelBO)5 ValueListElement (org.mifos.dto.domain.ValueListElement)5 RoleBO (org.mifos.security.rolesandpermission.business.RoleBO)5 MasterDataEntity (org.mifos.application.master.business.MasterDataEntity)4 CustomFieldDto (org.mifos.dto.domain.CustomFieldDto)4 CustomFieldDefinitionEntity (org.mifos.application.master.business.CustomFieldDefinitionEntity)3 MifosRuntimeException (org.mifos.core.MifosRuntimeException)3 PersonActionForm (org.mifos.customers.personnel.struts.actionforms.PersonActionForm)3 TransactionDemarcate (org.mifos.framework.util.helpers.TransactionDemarcate)3 PersonnelDetailsEntity (org.mifos.customers.personnel.business.PersonnelDetailsEntity)2 PersonnelRoleEntity (org.mifos.customers.personnel.business.PersonnelRoleEntity)2 AddressDto (org.mifos.dto.domain.AddressDto)2 DefinePersonnelDto (org.mifos.dto.screen.DefinePersonnelDto)2 ListElement (org.mifos.dto.screen.ListElement)2 PersonnelInformationDto (org.mifos.dto.screen.PersonnelInformationDto)2