protected CostElement getCostElementTravel() {
   CostElement costElement = new CostElement();
   costElement.setCostElement("420050");
   costElement.setBudgetCategoryCode("20");
   costElement.setDescription("Travel");
   costElement.setOnOffCampusFlag(Boolean.TRUE);
   return costElement;
 }
 protected CostElement getCostElementPersonnel() {
   CostElement costElement = new CostElement();
   costElement.setCostElement("400350");
   costElement.setBudgetCategoryCode("26");
   costElement.setDescription("Research Staff - On");
   costElement.setOnOffCampusFlag(Boolean.TRUE);
   return costElement;
 }
 /**
  * This method returns the personnel line items.
  *
  * @param budgetPeriod
  * @param personnelCostElement
  * @return
  */
 protected List<BudgetLineItem> getPersonnelLineItems(
     BudgetPeriod budgetPeriod, CostElement personnelCostElement) {
   QueryList lineItemQueryList = new QueryList();
   lineItemQueryList.addAll(budgetPeriod.getBudgetLineItems());
   Equals objectCodeEquals = new Equals("costElement", personnelCostElement.getCostElement());
   QueryList<BudgetLineItem> filteredLineItems = lineItemQueryList.filter(objectCodeEquals);
   return filteredLineItems;
 }
Ejemplo n.º 4
0
 private void addSalaryDataForCostElement(
     CostElement costElement, List<SalaryTypeVO> salaryTypeVoList) {
   SalaryTypeVO groupVO = new SalaryTypeVO();
   groupVO.setCostElement(costElement.getDescription());
   salaryTypeVoList.add(groupVO);
   for (BudgetPersonnelDetails details : budget.getObjectCodePersonnelList().get(costElement)) {
     SalaryTypeVO salaryTypeVoPerPerson = new SalaryTypeVO();
     salaryTypeVoPerPerson.setName(details.getBudgetPerson().getPersonName());
     salaryTypeVoPerPerson.setBudgetPeriodVOs(
         getBudgetPeriodData(
             budget
                 .getObjectCodePersonnelSalaryTotals()
                 .get(costElement.getCostElement() + "," + details.getPersonId())));
     salaryTypeVoList.add(salaryTypeVoPerPerson);
   }
   if (budget.getObjectCodePersonnelSalaryTotals().get(costElement.getCostElement()) != null) {
     SalaryTypeVO salaryTypeVoPerPerson = new SalaryTypeVO();
     salaryTypeVoPerPerson.setName("Summary Line Item");
     salaryTypeVoPerPerson.setBudgetPeriodVOs(
         getBudgetPeriodData(
             budget.getObjectCodePersonnelSalaryTotals().get(costElement.getCostElement())));
     salaryTypeVoList.add(salaryTypeVoPerPerson);
   }
 }