public ProrateForm setProrateFormData(ProrateForm form, Prorate obj) { form.setId(obj.getId()); form.setFiscalYear(obj.getFiscalYear()); form.setProrateFactor1stPayment(obj.getProrateFactor1stPayment()); form.setProrateFactor2ndPayment(obj.getProrateFactor2ndPayment()); form.setFundingSources(obj.getFundingSources()); form.setTotalFirstPayment(obj.getTotalFirstPayment()); form.setTotalSecondPayment(obj.getTotalSecondPayment()); form.setTotalDistribution(obj.getTotalDistribution()); return form; }
public ProrateForm setupForm(long id) { Prorate obj = findById(Prorate.class, id); ProrateForm form = new ProrateForm(); form.setId(obj.getId()); form.setFiscalYear(obj.getFiscalYear()); form.setProrateFactor1stPayment(obj.getProrateFactor1stPayment()); form.setProrateFactor2ndPayment(obj.getProrateFactor2ndPayment()); form.setFundingSources(obj.getFundingSources()); form.setTotalFirstPayment(obj.getTotalFirstPayment()); form.setTotalSecondPayment(obj.getTotalSecondPayment()); form.setTotalDistribution(obj.getTotalDistribution()); return form; }