private void setAwardAmountInfoDetails(
     AwardHierarchy awardHierarchy, ChildAwardType childAwardType) {
   awardHierarchy.refreshReferenceObject("award");
   Award childAward = awardHierarchy.getAward();
   AwardAmountInfo awardAmountInfo = childAward.getLastAwardAmountInfo();
   if (awardHierarchy.getAward().getAccountNumber() != null) {
     childAwardType.setAccountNumber(awardHierarchy.getAward().getAccountNumber());
   }
   if (awardAmountInfo.getAnticipatedTotalAmount() != null) {
     childAwardType.setAnticipatedTotalAmt(
         awardAmountInfo.getAnticipatedTotalAmount().bigDecimalValue());
   }
   if (awardAmountInfo.getFinalExpirationDate() != null) {
     Calendar finalExpDate = dateTimeService.getCalendar(awardAmountInfo.getFinalExpirationDate());
     childAwardType.setFinalExpirationDate(finalExpDate);
   }
   if (awardAmountInfo.getCurrentFundEffectiveDate() != null) {
     Calendar currentFundEffectiveDate =
         dateTimeService.getCalendar(awardAmountInfo.getCurrentFundEffectiveDate());
     childAwardType.setCurrentFundEffectiveDate(currentFundEffectiveDate);
   }
   if (awardAmountInfo.getAmountObligatedToDate() != null) {
     childAwardType.setAmtObligatedToDate(
         awardAmountInfo.getAmountObligatedToDate().bigDecimalValue());
   }
   if (awardAmountInfo.getObligationExpirationDate() != null) {
     Calendar obligationExpirationDate =
         dateTimeService.getCalendar(awardAmountInfo.getObligationExpirationDate());
     childAwardType.setObligationExpirationDate(obligationExpirationDate);
   }
   childAwardType.setPIName(childAward.getPrincipalInvestigator().getFullName());
 }
Esempio n. 2
0
 private boolean validatePI(Award award) {
   boolean retVal = true;
   if (award.getPrincipalInvestigator() == null) {
     // retVal = false;
     reportWarning(
         AWARD_REPORT_TERM_REPORT_CODE_PROPERTY,
         KeyConstants.ERROR_AWARD_REPORT_TERM_ITEM_NO_PI,
         "");
   }
   return retVal;
 }
 protected HtmlData getPrincipalInvestigatorNameInquiryUrl(Award award) {
   HtmlData inquiryUrl = null;
   AwardPerson principalInvestigator = award.getPrincipalInvestigator();
   if (principalInvestigator != null) {
     if (StringUtils.isNotBlank(principalInvestigator.getPersonId())) {
       final KcPerson inqBo =
           this.kcPersonService.getKcPersonByPersonId(principalInvestigator.getPersonId());
       inquiryUrl = super.getInquiryUrl(inqBo, PERSON_ID);
     } else {
       if (principalInvestigator.getRolodexId() != null) {
         Rolodex inqBo = new Rolodex();
         inqBo.setRolodexId(principalInvestigator.getRolodexId());
         inquiryUrl = super.getInquiryUrl(inqBo, ROLODEX_ID);
       }
     }
   }
   return inquiryUrl;
 }