public BillingBatchHeaderData getBatchHeaderObj(
      BillingProviderData providerData, String disk_id) {
    BillingBatchHeaderData obj = new BillingBatchHeaderData();

    List<BillingONHeader> bs =
        dao.findByDiskIdAndProviderRegNum(Integer.parseInt(disk_id), providerData.getOhipNo());

    for (BillingONHeader b : bs) {
      obj.setId("" + b.getId());
      obj.setDisk_id(disk_id);
      obj.setTransc_id(b.getTransactionId());
      obj.setRec_id(b.getRecordId());
      obj.setSpec_id(b.getSpecId());
      obj.setMoh_office(b.getMohOffice());

      obj.setBatch_id(b.getBatchId());
      obj.setOperator(b.getOperator());
      obj.setGroup_num(b.getGroupNum());
      obj.setProvider_reg_num(b.getProviderRegNum());
      obj.setSpecialty(b.getSpecialty());
      obj.setH_count(b.gethCount());
      obj.setR_count(b.getrCount());
      obj.setT_count(b.gettCount());
      obj.setBatch_date(dateformatter.format(b.getBatchDate()));

      obj.setCreatedatetime(tsFormatter.format(b.getCreateDateTime()));
      obj.setUpdatedatetime(tsFormatter.format(b.getUpdateDateTime()));
      obj.setCreator(b.getCreator());
      obj.setAction(b.getAction());
      obj.setComment(b.getComment());
    }

    return obj;
  }
  public int addOneBatchHeaderRecord(BillingBatchHeaderData val) {
    BillingONHeader b = new BillingONHeader();
    b.setDiskId(Integer.parseInt(val.disk_id));
    b.setTransactionId(val.transc_id);
    b.setRecordId(val.rec_id);
    b.setSpecId(val.spec_id);
    b.setMohOffice(val.moh_office);
    b.setBatchId(val.batch_id);
    b.setOperator(val.operator);
    b.setGroupNum(val.group_num);
    b.setProviderRegNum(val.provider_reg_num);
    b.setSpecialty(val.specialty);
    b.sethCount(val.h_count);
    b.setrCount(val.r_count);
    b.settCount(val.t_count);
    b.setBatchDate(new Date());
    b.setCreateDateTime(new Date());
    b.setUpdateDateTime(new Date());
    b.setCreator(val.creator);
    b.setAction(val.action);
    b.setComment(val.comment);

    dao.persist(b);

    return b.getId();
  }