Example #1
0
  public boolean addPrivateBillExtRecord(HttpServletRequest requestData) {
    boolean ret = false;
    Map<String, String> val = getPrivateBillExtObj(requestData);
    ret = dbObj.add3rdBillExt(val, billingId);
    if (!ret) _logger.error("addPrivateBillExtRecord " + billingId);

    return ret;
  }
Example #2
0
  // save a billing record
  @SuppressWarnings("rawtypes")
  public boolean addABillingRecord(LoggedInInfo loggedInInfo, Vector val) {
    boolean ret = false;
    BillingClaimHeader1Data claim1Obj = (BillingClaimHeader1Data) val.get(0);
    int billingNo = dbObj.addOneClaimHeaderRecord(loggedInInfo, claim1Obj);
    billingId = billingNo;
    if (billingNo == 0) return false;
    claim1Obj.setId(((Integer) billingId).toString());
    if (val.size() > 1) {
      ret = dbObj.addItemRecord((List) val.get(1), billingNo);
      if (!ret) return false;
    } else {
      _logger.error("No billing item for billing # " + billingNo);
    }

    return ret;
  }
Example #3
0
  @SuppressWarnings("unchecked")
  public boolean addPrivateBillExtRecord(HttpServletRequest requestData, Vector vecObj) {
    boolean ret = false;
    boolean rat = false;

    @SuppressWarnings("unused")
    Map<String, String> val = getPrivateBillExtObj(requestData);
    ret = dbObj.add3rdBillExt(val, billingId, vecObj);
    if (!ret) _logger.error("addPrivateBillExtRecord " + billingId);

    return ret;
  }
Example #4
0
 @SuppressWarnings("unchecked")
 public void addOhipInvoiceTrans(Vector vecObj) {
   dbObj.addCreateOhipInvoiceTrans(
       (BillingClaimHeader1Data) vecObj.get(0), (List<BillingItemData>) vecObj.get(1));
 }