コード例 #1
0
  public int addRepoBatchHeader(BillingBatchHeaderData val) {
    BillingONRepo b = new BillingONRepo();
    b.sethId(Integer.parseInt(val.id));
    b.setCategory("billing_on_header");
    b.setContent(
        val.disk_id
            + "|"
            + val.transc_id
            + "|"
            + val.rec_id
            + "|"
            + val.spec_id
            + "|"
            + val.moh_office
            + "|"
            + val.batch_id
            + "|"
            + val.operator
            + "|"
            + val.group_num
            + "|"
            + val.provider_reg_num
            + "|"
            + val.specialty
            + "|"
            + val.h_count
            + "|"
            + val.r_count
            + "|"
            + val.t_count
            + "|"
            + val.batch_date
            + "|"
            + val.createdatetime
            + "|"
            + val.updatedatetime
            + "|"
            + val.creator
            + "|"
            + val.action
            + "|"
            + val.comment);
    b.setCreateDateTime(new Date());
    repoDao.persist(b);

    return b.getId();
  }
コード例 #2
0
  public int addRepoDiskName(BillingDiskNameData val) {
    int retval = 0;
    BillingONRepo b = new BillingONRepo();
    b.sethId(Integer.parseInt(val.id));
    b.setCategory("billing_on_diskname");
    b.setContent(
        val.monthCode
            + "|"
            + val.batchcount
            + "|"
            + val.ohipfilename
            + "|"
            + val.groupno
            + "|"
            + val.creator
            + "|"
            + val.claimrecord
            + "|"
            + val.createdatetime
            + "|"
            + val.status
            + "|"
            + val.total
            + "|"
            + val.updatedatetime);
    b.setCreateDateTime(new Date());

    repoDao.persist(b);
    retval = b.getId();

    if (b.getId() > 0) {
      // add filenames, if needed
      for (int i = 0; i < val.providerohipno.size(); i++) {
        BillingONRepo r = new BillingONRepo();
        r.sethId(Integer.valueOf((String) val.vecFilenameId.get(i)));
        r.setCategory("billing_on_filename");
        r.setContent(
            val.id
                + "|"
                + val.htmlfilename.get(i)
                + "|"
                + val.providerohipno.get(i)
                + "|"
                + val.providerno.get(i)
                + "|"
                + val.vecClaimrecord.get(0)
                + "|"
                + val.vecStatus.get(0)
                + "|"
                + val.vecTotal.get(0)
                + "|"
                + val.updatedatetime);

        r.setCreateDateTime(new Date());

        repoDao.persist(r);
      }
    } else {
      retval = 0;
    }
    return retval;
  }