Commit 4c6cd367 authored by agaikwad's avatar agaikwad

Request_Id-F16IFRA002


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104994 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 96474f66
......@@ -70,8 +70,8 @@ public class UndoRecievableAdjConf extends ActionHandlerEJB implements UndoRecie
ConnDriver connDriver = null;
connDriver = new ConnDriver();
//Changes and Commented By Bhushan on 06-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
conn = connDriver.getConnectDB("DriverITM");
//conn = getConnection();
//Changes and Commented By Bhushan on 06-06-2016 :END
conn.setAutoCommit(false);
......@@ -611,10 +611,9 @@ public class UndoRecievableAdjConf extends ActionHandlerEJB implements UndoRecie
else
{
System.out.println("Record exist in receivables_adj>>>>>>>>> ");
sql="select ref_ser,ref_no,adj_amt from receivables_adj where ref_no_adj= ? and ref_ser_adj= ? ";
sql="select ref_ser,ref_no,adj_amt from undo_rec_adjdet where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNoHeader);
pstmt.setString(2, tranType);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while (rs.next())
......@@ -917,6 +916,46 @@ public class UndoRecievableAdjConf extends ActionHandlerEJB implements UndoRecie
}
}
/* finally
{
try
{
if (errString != null && errString.trim().length() > 0)
{
System.out.println("--going to commit tranaction--");
if (errString.indexOf("VTCNFSUCC") > -1)
{
conn.commit();
System.out.println("--transaction commited--");
}
else
{
conn.rollback();
System.out.println("--transaction rollback--");
}
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
conn.close();
}
catch(Exception e)
{
System.out.println("Exception : "+e);
e.printStackTrace();}
}*/
return errString;
}
......
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