Пример #1
0
  public BillingDiskNameData getDisknameObj(String diskId) {
    BillingDiskNameData obj = new BillingDiskNameData();

    BillingONDiskName b = diskNameDao.find(Integer.valueOf(diskId));
    if (b != null) {
      obj.setId("" + b.getId());
      obj.setMonthCode(b.getMonthCode());
      obj.setBatchcount("" + b.getBatchCount());
      obj.setOhipfilename(b.getOhipFilename());
      obj.setGroupno(b.getGroupNo());
      obj.setClaimrecord(b.getCreator());
      obj.setClaimrecord(b.getClaimRecord());
      obj.setCreatedatetime(tsFormatter.format(b.getCreateDateTime()));
      obj.setStatus(b.getStatus());
      obj.setTotal(b.getTotal());
      obj.setUpdatedatetime(tsFormatter.format(b.getTimestamp()));

      List<BillingONFilename> ff = filenameDao.findCurrentByDiskId(b.getId());
      Vector vecHtmlfilename = new Vector();
      Vector vecProviderohipno = new Vector();
      Vector vecProviderno = new Vector();
      Vector vecClaimrecord = new Vector();
      Vector vecStatus = new Vector();
      Vector vecTotal = new Vector();
      Vector vecFilenameId = new Vector();
      for (BillingONFilename f : ff) {
        vecFilenameId.add("" + f.getId());
        vecHtmlfilename.add(f.getHtmlFilename());
        vecProviderohipno.add(f.getProviderOhipNo());
        vecProviderno.add(f.getProviderNo());
        vecClaimrecord.add(f.getClaimRecord());
        vecStatus.add(f.getStatus());
        vecTotal.add(f.getTotal());
      }

      obj.setVecFilenameId(vecFilenameId);
      obj.setHtmlfilename(vecHtmlfilename);
      obj.setProviderohipno(vecProviderohipno);
      obj.setProviderno(vecProviderno);
      obj.setVecClaimrecord(vecClaimrecord);
      obj.setVecStatus(vecStatus);
      obj.setVecTotal(vecTotal);
    }

    return obj;
  }
Пример #2
0
  public List getMRIList(String sDate, String eDate, String status) {
    List retval = new Vector();
    BillingDiskNameData obj = null;

    try {
      List<BillingONDiskName> results =
          diskNameDao.findByCreateDateRangeAndStatus(
              dateformatter.parse(sDate), dateformatter.parse(eDate), status);

      for (BillingONDiskName b : results) {
        obj = new BillingDiskNameData();
        obj.setId("" + b.getId());
        obj.setMonthCode(b.getMonthCode());
        obj.setBatchcount("" + b.getBatchCount());
        obj.setOhipfilename(b.getOhipFilename());
        obj.setGroupno(b.getGroupNo());
        obj.setClaimrecord(b.getClaimRecord());
        obj.setCreatedatetime(tsFormatter.format(b.getCreateDateTime()));
        obj.setUpdatedatetime(tsFormatter.format(b.getTimestamp()));
        obj.setStatus(b.getStatus());
        obj.setTotal(b.getTotal());

        List<BillingONFilename> ff = filenameDao.findByDiskIdAndStatus(b.getId(), status);
        Vector vecHtmlfilename = new Vector();
        Vector vecProviderohipno = new Vector();
        Vector vecProviderno = new Vector();
        Vector vecClaimrecord = new Vector();
        Vector vecStatus = new Vector();
        Vector vecTotal = new Vector();
        Vector vecFilenameId = new Vector();

        for (BillingONFilename f : ff) {
          vecFilenameId.add("" + f.getId());
          vecHtmlfilename.add(f.getHtmlFilename());
          vecProviderohipno.add(f.getProviderOhipNo());
          vecProviderno.add(f.getProviderNo());
          vecClaimrecord.add(f.getClaimRecord());
          vecStatus.add(f.getStatus());
          vecTotal.add(f.getTotal());
        }
        obj.setVecFilenameId(vecFilenameId);
        obj.setHtmlfilename(vecHtmlfilename);
        obj.setProviderohipno(vecProviderohipno);
        obj.setProviderno(vecProviderno);
        obj.setVecClaimrecord(vecClaimrecord);
        obj.setVecStatus(vecStatus);
        obj.setVecTotal(vecTotal);
        retval.add(obj);
      }
    } catch (Exception e) {
      MiscUtils.getLogger().error("Error", e);
      retval = null;
    }
    return retval;
  }