public TransportationForm setupForm(long id) {
    Transportation obj = findById(Transportation.class, id);

    TransportationForm form = new TransportationForm();
    form.setId(obj.getId());
    form.setDistrictNumber(obj.getDistrictNumber());
    form.setDateChanged(obj.getDateChanged());
    form.setErrors(obj.getErrors());
    form.setPupilTran(obj.getPupilTran());
    form.setOperTran(obj.getOperTran());
    form.setIndCont(obj.getIndCont());
    form.setCapOutTran(obj.getCapOutTran());
    form.setMigMiles(obj.getMigMiles());
    form.setRegDMiles(obj.getRegDMiles());
    form.setSchoolDays(obj.getSchoolDays());
    form.setRegDays(obj.getRegDays());
    form.setBoardTran(obj.getBoardTran());
    form.setExReim(obj.getExReim());
    form.setDesegReim(obj.getDesegReim());
    form.setReimTran(obj.getReimTran());
    form.setReimTranLy(obj.getReimTranLy());
    form.setAdvPayLy(obj.getAdvPayLy());
    form.setReimAdvPay(obj.getReimAdvPay());
    form.setAdvPay(obj.getAdvPay());
    form.setActMiles(obj.getActMiles());
    form.setTotalMiles(obj.getTotalMiles());
    form.setFiscalYear(obj.getFiscalYear());
    form.setCdeComments(obj.getCdeComments());
    form.setFirstPayment(obj.getFirstPayment());
    form.setSecondPayment(obj.getSecondPayment());
    form.setDistrictDistribution(obj.getDistrictDistribution());
    form.setCofrsBatchNumber(obj.getCofrsBatchNumber());
    form.setCofrsDatePaid(obj.getCofrsDatePaid());
    form.setNamePreparerCde40(obj.getNamePreparerCde40());
    form.setPhonePreparerCde40(obj.getPhonePreparerCde40());
    form.setEmailPreparerCde40(obj.getEmailPreparerCde40());
    form.setFeesCollected(obj.getFeesCollected());
    form.setOtherRevenue(obj.getOtherRevenue());
    form.setNetCurrentOperExpend(obj.getNetCurrentOperExpend());
    form.setTotalReimMileage(obj.getTotalReimMileage());
    form.setMileageEntitlement(obj.getMileageEntitlement());
    form.setExCosts(obj.getExCosts());
    form.setMaxReimEntitlement(obj.getMaxReimEntitlement());
    form.setReimEntitlement(obj.getReimEntitlement());
    form.setTotalReimEntitlement(obj.getTotalReimEntitlement());
    form.setFinalReimEntitlement(obj.getFinalReimEntitlement());
    form.setFinalReimProrated(obj.getFinalReimProrated());
    return form;
  }
  public ProrateForm setTransportationData(
      ProrateForm form, List<Transportation> transportationList, UserInfo userInfo) {
    List<ProrateTransportationGrid> ltg = form.getProrateTransportationGridList();
    for (Transportation a : transportationList) {
      ProrateTransportationGrid transGrid = new ProrateTransportationGrid();
      transGrid.setDistrictNumber(a.getDistrictNumber());
      try {
        transGrid.setOrganizationName(
            userInfo
                .getDistrictMap()
                .get(
                    a
                        .getDistrictNumber())); // referenceDataManager.getDistrictName((a.getDistrictNumber())));
      } catch (Exception e) {
        transGrid.setOrganizationName("No Matching District Name");
      }
      transGrid.setFirstPayment(a.getFirstPayment());
      transGrid.setSecondPayment(a.getSecondPayment());
      transGrid.setDistrictDistribution(a.getDistrictDistribution());
      ltg.add(transGrid);
    }

    return form;
  }