public int writeToPendingTxns(String connectionString, String ac1, String ac2, String csNo, String pvgb, String tranDesc, String initEmpid, Decimal dr, Decimal cr, String tranid, String inData, Data.Dber dberr) { Cp_Pendtxn cpPend = new Cp_Pendtxn(connectionString, ac1, ac2, pvgb, csNo, initEmpid, dr, cr, tranDesc, tranid, inData, dberr); if(dberr.ifError()) { return -1; } return 0; }
public int processTransaction(String connectionString, String pvg) { Boolean isAdmin = false; if(pvg.Equals(ADMIN_PVG)) { isAdmin = true; } pend = new Cp_Pendtxn(connectionString, pvg, isAdmin, dberr); resultSetP = pend.pendingP; if (dberr.ifError()) { result = dberr.getErrorDesc(connectionString); return -1; } return 0; }