Commit e97a22ab authored by ngadkari's avatar ngadkari

ADDED NEW FINPARM RECTOPAY_AUTOCONF AND PAYTOREC_AUTOCONF FOR AUTO CONFIRM OR NOT

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191855 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ac17f426
......@@ -34,7 +34,7 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
String suppCodeTo ="";
E12GenericUtility genericUtility = new E12GenericUtility();
FinCommon finCommon = new FinCommon();
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{
String rtrStr = "";
......@@ -388,7 +388,7 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
String errCode = "";
String errString = "";
String insertSql = "",sql="";
String tranId = null;
String tranId = null,RectopayAutoConf="";
Connection conn = null;
Statement st = null;
PreparedStatement pstmt = null;
......@@ -636,11 +636,22 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
System.out.println("tran_id [" + tranId + "]");
errString = null;
}
//RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------Start -----------------
RectopayAutoConf=checkNull(finCommon.getFinparams("999999", "PAYTOREC_AUTOCONF", conn)).trim();
if (("NULLFOUND".equalsIgnoreCase(RectopayAutoConf) || RectopayAutoConf == null || RectopayAutoConf.trim().length() == 0) || !"Y".equalsIgnoreCase(RectopayAutoConf) )
{
RectopayAutoConf="N";
}
if ("Y".equalsIgnoreCase(RectopayAutoConf))
{
RecPayTrfConf recPayTrfConf = new RecPayTrfConf();
String forcedFlag="N";
errString=recPayTrfConf.confirm(tranId, xtraParams, forcedFlag,conn);
recPayTrfConf = null;
if( errString.indexOf("VTCONSUCF") > -1 )
if( errString.indexOf("VTCONSUCF") > -1)
{
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){
......@@ -649,16 +660,18 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
}
return errString;
}
/*if (errString == null || errString.trim().length() == 0) {
}
else if (errString == null || errString.trim().length() == 0) {
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){
conn.commit();
System.out.println("commited....!!!");
System.out.println("commited....!!!unconf");
}
return errString;
}*/
}
//RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------end -----------------
}//try end
catch(Exception e)
......
......@@ -28,6 +28,7 @@ import org.w3c.dom.NodeList;
public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPayXfrPrcRemote
{
E12GenericUtility genericUtility = new E12GenericUtility();// chnages by Nandkumar Gadkari on 25/07/18
FinCommon finCommon = new FinCommon();
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException, ITMException
{
......@@ -366,7 +367,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
ResultSet rs = null;
StringBuffer xmlBuff = null;
int lineNo=0;
String sundryCode ="";
String sundryCode ="",RectopayAutoConf="";//RectopayAutoConf added nandkumar Gadkari on 10/10/18
try
{
conn = getConnection();
......@@ -611,11 +612,20 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
System.out.println("tran_id [" + tranId + "]");
errString = null;
}
//RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------Start -----------------
RectopayAutoConf=checkNull(finCommon.getFinparams("999999", "RECTOPAY_AUTOCONF", conn)).trim();
if (("NULLFOUND".equalsIgnoreCase(RectopayAutoConf) || RectopayAutoConf == null || RectopayAutoConf.trim().length() == 0) || !"Y".equalsIgnoreCase(RectopayAutoConf) )
{
RectopayAutoConf="N";
}
if ("Y".equalsIgnoreCase(RectopayAutoConf))
{
RecPayTrfConf recPayTrfConf = new RecPayTrfConf();
String forcedFlag="N";
errString=recPayTrfConf.confirm(tranId, xtraParams, forcedFlag,conn);
recPayTrfConf = null;
if( errString.indexOf("VTCONSUCF") > -1 )
if( errString.indexOf("VTCONSUCF") > -1)
{
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){
......@@ -624,16 +634,19 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
}
return errString;
}
/*if (errString == null || errString.trim().length() == 0) {
}
else if (errString == null || errString.trim().length() == 0) {
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){
conn.commit();
System.out.println("commited....!!!");
System.out.println("commited....unconf!!!");
}
return errString;
} */
}
//RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------end -----------------
}
catch (SQLException se)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment