Commit 20d13d54 authored by manohar's avatar manohar

bug fix conn.commit() added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91870 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 72a0db34
...@@ -822,7 +822,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -822,7 +822,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
invallocTrace.setChgUser(chgUser); invallocTrace.setChgUser(chgUser);
invallocTrace.setChgTerm(chgTerm); invallocTrace.setChgTerm(chgTerm);
invallocTrace.setChgWin("W_SORDALLOC" ); invallocTrace.setChgWin("W_SORDALLOC" );
errString = updateInvallocTrace(invallocTrace); errString = updateInvallocTrace(invallocTrace, conn);
if (errString != null && errString.trim().length() > 0) if (errString != null && errString.trim().length() > 0)
{ {
...@@ -1065,7 +1065,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -1065,7 +1065,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
} }
// updateInvallocTrace // updateInvallocTrace
private String updateInvallocTrace(InvAllocTrace invallocTrace) throws ITMException private String updateInvallocTrace(InvAllocTrace invallocTrace, Connection conn) throws ITMException
{ {
String errString = ""; String errString = "";
String errCode = "" ; String errCode = "" ;
...@@ -1086,7 +1086,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -1086,7 +1086,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
String chgTerm = invallocTrace.getChgTerm(); String chgTerm = invallocTrace.getChgTerm();
String chgWin = invallocTrace.getChgWin(); String chgWin = invallocTrace.getChgWin();
java.sql.Date chgDate = new java.sql.Date(System.currentTimeMillis()); java.sql.Date chgDate = new java.sql.Date(System.currentTimeMillis());
Connection conn = null; //Connection conn = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rSet = null ; ResultSet rSet = null ;
Statement stmt = null; Statement stmt = null;
......
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