private ParticipantTraineeSupportCosts getParticipantTraineeSupportCosts ( BudgetPeriodDto periodInfo ) { ParticipantTraineeSupportCosts traineeSupportCosts = ParticipantTraineeSupportCosts . Factory . newInstance ( ) ; if ( periodInfo != null ) { traineeSupportCosts . setTuitionFeeHealthInsurance ( periodInfo . getPartTuition ( ) . bigDecimalValue ( ) ) ; traineeSupportCosts . setStipends ( periodInfo . getpartStipendCost ( ) . bigDecimalValue ( ) ) ; traineeSupportCosts . setTravel ( periodInfo . getpartTravelCost ( ) . bigDecimalValue ( ) ) ; traineeSupportCosts . setSubsistence ( periodInfo . getPartSubsistence ( ) . bigDecimalValue ( ) ) ; traineeSupportCosts . setOther ( getOtherPTSupportCosts ( periodInfo ) ) ; traineeSupportCosts . setParticipantTraineeNumber ( periodInfo . getparticipantCount ( ) ) ; traineeSupportCosts . setTotalCost ( traineeSupportCosts . getTuitionFeeHealthInsurance ( ) . add ( traineeSupportCosts . getStipends ( ) . add ( traineeSupportCosts . getTravel ( ) . add ( traineeSupportCosts . getSubsistence ( ) . add ( traineeSupportCosts . getOther ( ) . getCost ( ) ) ) ) ) ) ; } return traineeSupportCosts ; }
This method gets ParticipantTraineeSupportCosts details in BudgetYearDataType such as TuitionFeeHealthInsurance Stipends Subsistence Travel Other ParticipantTraineeNumber and TotalCost based on the BudgetPeriodInfo for the RRBudget .