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 ...@@ -34,7 +34,7 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
String suppCodeTo =""; String suppCodeTo ="";
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
FinCommon finCommon = new FinCommon();
public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException public String getData(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException
{ {
String rtrStr = ""; String rtrStr = "";
...@@ -388,7 +388,7 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR ...@@ -388,7 +388,7 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
String errCode = ""; String errCode = "";
String errString = ""; String errString = "";
String insertSql = "",sql=""; String insertSql = "",sql="";
String tranId = null; String tranId = null,RectopayAutoConf="";
Connection conn = null; Connection conn = null;
Statement st = null; Statement st = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -636,11 +636,22 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR ...@@ -636,11 +636,22 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
System.out.println("tran_id [" + tranId + "]"); System.out.println("tran_id [" + tranId + "]");
errString = null; errString = null;
} }
RecPayTrfConf recPayTrfConf = new RecPayTrfConf(); //RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------Start -----------------
String forcedFlag="N"; RectopayAutoConf=checkNull(finCommon.getFinparams("999999", "PAYTOREC_AUTOCONF", conn)).trim();
errString=recPayTrfConf.confirm(tranId, xtraParams, forcedFlag,conn); if (("NULLFOUND".equalsIgnoreCase(RectopayAutoConf) || RectopayAutoConf == null || RectopayAutoConf.trim().length() == 0) || !"Y".equalsIgnoreCase(RectopayAutoConf) )
recPayTrfConf = null; {
if( errString.indexOf("VTCONSUCF") > -1 ) 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)
{ {
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn); errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){ if(conn != null){
...@@ -649,16 +660,18 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR ...@@ -649,16 +660,18 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
} }
return errString; return errString;
} }
}
/*if (errString == null || errString.trim().length() == 0) { else if (errString == null || errString.trim().length() == 0) {
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn); errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){ if(conn != null){
conn.commit(); conn.commit();
System.out.println("commited....!!!"); System.out.println("commited....!!!unconf");
} }
return errString; return errString;
}*/ }
//RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------end -----------------
}//try end }//try end
catch(Exception e) catch(Exception e)
......
...@@ -28,6 +28,7 @@ import org.w3c.dom.NodeList; ...@@ -28,6 +28,7 @@ import org.w3c.dom.NodeList;
public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPayXfrPrcRemote public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPayXfrPrcRemote
{ {
E12GenericUtility genericUtility = new E12GenericUtility();// chnages by Nandkumar Gadkari on 25/07/18 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 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 ...@@ -366,7 +367,7 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
ResultSet rs = null; ResultSet rs = null;
StringBuffer xmlBuff = null; StringBuffer xmlBuff = null;
int lineNo=0; int lineNo=0;
String sundryCode =""; String sundryCode ="",RectopayAutoConf="";//RectopayAutoConf added nandkumar Gadkari on 10/10/18
try try
{ {
conn = getConnection(); conn = getConnection();
...@@ -611,11 +612,20 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -611,11 +612,20 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
System.out.println("tran_id [" + tranId + "]"); System.out.println("tran_id [" + tranId + "]");
errString = null; errString = null;
} }
RecPayTrfConf recPayTrfConf = new RecPayTrfConf(); //RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------Start -----------------
String forcedFlag="N"; RectopayAutoConf=checkNull(finCommon.getFinparams("999999", "RECTOPAY_AUTOCONF", conn)).trim();
errString=recPayTrfConf.confirm(tranId, xtraParams, forcedFlag,conn); if (("NULLFOUND".equalsIgnoreCase(RectopayAutoConf) || RectopayAutoConf == null || RectopayAutoConf.trim().length() == 0) || !"Y".equalsIgnoreCase(RectopayAutoConf) )
recPayTrfConf = null; {
if( errString.indexOf("VTCONSUCF") > -1 ) 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)
{ {
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn); errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){ if(conn != null){
...@@ -624,16 +634,19 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay ...@@ -624,16 +634,19 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
} }
return errString; return errString;
} }
}
else if (errString == null || errString.trim().length() == 0) {
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){
conn.commit();
System.out.println("commited....unconf!!!");
}
return errString;
}
/*if (errString == null || errString.trim().length() == 0) {
//RectopayAutoConf conditon added by nandkumar Gadkari on 10/10/18----------------------end -----------------
errString = itmDBAccessEJB.getErrorString("","VTCOMPL","","",conn);
if(conn != null){
conn.commit();
System.out.println("commited....!!!");
}
return errString;
} */
} }
catch (SQLException se) 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