Commit 52e16e3d authored by arawankar's avatar arawankar

MiscValConf.java

-Changes made to resolve in out parameter index issue.
-line no set on wrong index number

PayIbcaConf.java
-Change tran_ser previously it was 7 char ,now it is corrected to 6 char(P-IBC+COUNT)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195697 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0cb6b1dc
...@@ -886,8 +886,10 @@ conn = getConnection(); ...@@ -886,8 +886,10 @@ conn = getConnection();
pstmtInner.close(); pstmtInner.close();
pstmtInner = null; pstmtInner = null;
} }
//Modified by Anjali R. on [11/01/2019][In case of misc_vouchdet has no record then system should insert record in misc_vouchdet table][Start]
if(cnt > 0) //if(cnt > 0)
if(cnt == 0)
//Modified by Anjali R. on [11/01/2019][In case of misc_vouchdet has no record then system should insert record in misc_vouchdet table][End]
{ {
lineInt = lineInt +1; lineInt = lineInt +1;
...@@ -909,7 +911,10 @@ conn = getConnection(); ...@@ -909,7 +911,10 @@ conn = getConnection();
pstmtInner.setString(2,tranId); pstmtInner.setString(2,tranId);
pstmtInner.setString(3,acctCodeReco); pstmtInner.setString(3,acctCodeReco);
pstmtInner.setString(4,cctrCodeReco); pstmtInner.setString(4,cctrCodeReco);
pstmtInner.setInt(3,lineNoDet); //Modified by Anjali R. on [11/01/2019][Parameter set on wrong index number][Start]
//pstmtInner.setInt(3,lineNoDet);
pstmtInner.setInt(5,lineNoDet);
//Modified by Anjali R. on [11/01/2019][Parameter set on wrong index number][End]
int updCnt = pstmtInner.executeUpdate(); int updCnt = pstmtInner.executeUpdate();
pstmtInner.close(); pstmtInner.close();
pstmtInner = null; pstmtInner = null;
......
...@@ -35,7 +35,7 @@ import javax.ejb.Stateless; ...@@ -35,7 +35,7 @@ import javax.ejb.Stateless;
@Stateless @Stateless
public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, PayIbcaConfRemote public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, PayIbcaConfRemote
{ {
// GenericUtility genericUtility = GenericUtility.getInstance(); // GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
//FinCommon finCommon = new FinCommon(); //FinCommon finCommon = new FinCommon();
...@@ -78,7 +78,7 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P ...@@ -78,7 +78,7 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
FinCommon finCommon = null; FinCommon finCommon = null;
// GenericUtility genericUtility = null; // GenericUtility genericUtility = null;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
ValidatorEJB validatorEJB = null; ValidatorEJB validatorEJB = null;
System.out.println("tran id = "+tranId); System.out.println("tran id = "+tranId);
...@@ -98,15 +98,15 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P ...@@ -98,15 +98,15 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
//Changes and Commented By Bhushan on 06-06-2016 :START //Changes and Commented By Bhushan on 06-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 06-06-2016 :END //Changes and Commented By Bhushan on 06-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
connStatus = true; connStatus = true;
} }
finCommon = new FinCommon(); finCommon = new FinCommon();
// genericUtility = new GenericUtility(); //genericUtility = new GenericUtility();
itmDBAccessEJB = new ITMDBAccessEJB(); itmDBAccessEJB = new ITMDBAccessEJB();
validatorEJB = new ValidatorEJB(); validatorEJB = new ValidatorEJB();
loginEmpCode =validatorEJB.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"); loginEmpCode =validatorEJB.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
...@@ -263,12 +263,12 @@ conn = getConnection(); ...@@ -263,12 +263,12 @@ conn = getConnection();
itmDBAccessEJB = new ITMDBAccessEJB(); itmDBAccessEJB = new ITMDBAccessEJB();
int cntrHdr = 0,cntr = 0,insertedRow = 0,rows = 0; int cntrHdr = 0,cntr = 0,insertedRow = 0,rows = 0;
// GenericUtility genericUtility = null; // GenericUtility genericUtility = null;
java.sql.Timestamp tranDate = null, today = null; java.sql.Timestamp tranDate = null, today = null;
try try
{ {
// genericUtility = GenericUtility.getInstance(); // genericUtility = GenericUtility.getInstance();
sql = "select tran_id,tran_date,eff_date,site_code__from, fin_entity__from, site_code__to,fin_entity__to,amount, " + sql = "select tran_id,tran_date,eff_date,site_code__from, fin_entity__from, site_code__to,fin_entity__to,amount, " +
"curr_code,confirmed,conf_date,emp_code__aprv,acct_code__ifr,cctr_code__ifr,acct_code__ito,cctr_code__ito," + "curr_code,confirmed,conf_date,emp_code__aprv,acct_code__ifr,cctr_code__ifr,acct_code__ito,cctr_code__ito," +
"amount__bc,tran_type,tran_ser,tran_id__iss,exch_rate,link_type from PAY_IBCA where tran_id = ?"; "amount__bc,tran_type,tran_ser,tran_id__iss,exch_rate,link_type from PAY_IBCA where tran_id = ?";
...@@ -658,7 +658,7 @@ conn = getConnection(); ...@@ -658,7 +658,7 @@ conn = getConnection();
ResultSet rs = null; ResultSet rs = null;
FinCommon finCommon = null; FinCommon finCommon = null;
ValidatorEJB validatorEJB = new ValidatorEJB(); ValidatorEJB validatorEJB = new ValidatorEJB();
// GenericUtility genericUtility = new GenericUtility(); // GenericUtility genericUtility = new GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
try try
{ {
...@@ -1103,7 +1103,7 @@ conn = getConnection(); ...@@ -1103,7 +1103,7 @@ conn = getConnection();
DistCommon distCommon = null; DistCommon distCommon = null;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
ValidatorEJB validatorEJB = new ValidatorEJB(); ValidatorEJB validatorEJB = new ValidatorEJB();
// GenericUtility genericUtility = new GenericUtility(); // GenericUtility genericUtility = new GenericUtility();
java.sql.Timestamp dateInterest = null; java.sql.Timestamp dateInterest = null;
try try
...@@ -1506,7 +1506,7 @@ conn = getConnection(); ...@@ -1506,7 +1506,7 @@ conn = getConnection();
ResultSet rs = null; ResultSet rs = null;
FinCommon finCommon = null; FinCommon finCommon = null;
ValidatorEJB validatorEJB = new ValidatorEJB(); ValidatorEJB validatorEJB = new ValidatorEJB();
// GenericUtility genericUtility = new GenericUtility(); // GenericUtility genericUtility = new GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
try try
{ {
...@@ -1677,7 +1677,7 @@ conn = getConnection(); ...@@ -1677,7 +1677,7 @@ conn = getConnection();
DistCommon distCommon = null; DistCommon distCommon = null;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
ValidatorEJB validatorEJB = new ValidatorEJB(); ValidatorEJB validatorEJB = new ValidatorEJB();
// GenericUtility genericUtility = new GenericUtility(); // GenericUtility genericUtility = new GenericUtility();
try try
{ {
finCommon = new FinCommon(); finCommon = new FinCommon();
......
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