use of org.mifos.dto.domain.PersonnelDto in project head by mifos.
the class BulkEntryActionStrutsTest method createDefaultCollectionSheetDto.
private CollectionSheetEntryFormDto createDefaultCollectionSheetDto() {
List<OfficeDetailsDto> activeBranches = new ArrayList<OfficeDetailsDto>();
List<ListItem<Short>> paymentTypesDtoList = new ArrayList<ListItem<Short>>();
List<CustomerDto> customerList = new ArrayList<CustomerDto>();
List<PersonnelDto> loanOfficerList = new ArrayList<PersonnelDto>();
final Short reloadFormAutomatically = Constants.YES;
final Short backDatedTransactionAllowed = Constants.NO;
final Short centerHierarchyExists = Constants.YES;
final Date meetingDate = new Date();
return new CollectionSheetEntryFormDto(activeBranches, paymentTypesDtoList, loanOfficerList, customerList, reloadFormAutomatically, centerHierarchyExists, backDatedTransactionAllowed, meetingDate);
}
use of org.mifos.dto.domain.PersonnelDto in project head by mifos.
the class BulkEntryActionStrutsTest method setMasterListInSession.
private void setMasterListInSession(final Integer customerId) throws PageExpiredException {
OfficeDetailsDto office = new OfficeDetailsDto(Short.valueOf("3"), "Branch", OfficeConstants.BRANCHOFFICE, Integer.valueOf("0"));
List<OfficeDetailsDto> branchOfficesList = new ArrayList<OfficeDetailsDto>();
branchOfficesList.add(office);
SessionUtils.setCollectionAttribute(OfficeConstants.OFFICESBRANCHOFFICESLIST, branchOfficesList, request);
PersonnelDto personnel = new PersonnelDto(Short.valueOf("3"), "John");
List<PersonnelDto> personnelList = new ArrayList<PersonnelDto>();
personnelList.add(personnel);
SessionUtils.setCollectionAttribute(CustomerConstants.LOAN_OFFICER_LIST, personnelList, request);
CustomerDto parentCustomer = new CustomerDto(customerId, "Center_Active", Short.valueOf(CustomerLevel.CENTER.getValue()), "1.1");
List<CustomerDto> customerList = new ArrayList<CustomerDto>();
customerList.add(parentCustomer);
SessionUtils.setCollectionAttribute(CollectionSheetEntryConstants.CUSTOMERSLIST, customerList, request);
}
Aggregations