private OtherDirectCosts getOtherDirectCosts ( BudgetPeriodDto periodInfo ) { OtherDirectCosts otherDirectCosts = OtherDirectCosts . Factory . newInstance ( ) ; if ( periodInfo != null && periodInfo . getOtherDirectCosts ( ) . size ( ) > 0 ) { if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getpublications ( ) != null ) { otherDirectCosts . setPublicationCosts ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getpublications ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getmaterials ( ) != null ) { otherDirectCosts . setMaterialsSupplies ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getmaterials ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getConsultants ( ) != null ) { otherDirectCosts . setConsultantServices ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getConsultants ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getcomputer ( ) != null ) { otherDirectCosts . setADPComputerServices ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getcomputer ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getsubAwards ( ) != null ) { otherDirectCosts . setSubawardConsortiumContractualCosts ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getsubAwards ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getAlterations ( ) != null ) { otherDirectCosts . setAlterationsRenovations ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getAlterations ( ) . bigDecimalValue ( ) ) ; } if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getEquipRental ( ) != null ) { otherDirectCosts . setEquipmentRentalFee ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . getEquipRental ( ) . bigDecimalValue ( ) ) ; } otherDirectCosts . setOthers ( getOthersForOtherDirectCosts ( periodInfo ) ) ; if ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . gettotalOtherDirect ( ) != null ) { otherDirectCosts . setTotalOtherDirectCost ( periodInfo . getOtherDirectCosts ( ) . get ( 0 ) . gettotalOtherDirect ( ) . bigDecimalValue ( ) ) ; } } return otherDirectCosts ; }
This method gets OtherDirectCosts details such as PublicationCosts MaterialsSupplies ConsultantServices ADPComputerServices SubawardConsortiumContractualCosts EquipmentRentalFee AlterationsRenovations and TotalOtherDirectCost in BudgetYearDataType based on BudgetPeriodInfo for the RRBudget .