Commit ecfca71a authored by vkadam's avatar vkadam

Add connection as parameter in process.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97159 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4ef8fb6e
...@@ -1402,7 +1402,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -1402,7 +1402,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
HashMap soLnValues =(HashMap) map.get(key); HashMap soLnValues =(HashMap) map.get(key);
System.out.println("swecondry map "+soLnValues); System.out.println("swecondry map "+soLnValues);
// errString = sorderAllocate(soLnValues,xtraParams); //VALLABH without BATCH_ID // errString = sorderAllocate(soLnValues,xtraParams); //VALLABH without BATCH_ID
errString = sorderAllocate(soLnValues,xtraParams,batchId.trim()); errString = sorderAllocate(soLnValues,xtraParams,batchId.trim(),conn);
// errString = sorderAllocate(saleOrder, lineNo, itemCode, allocQty, expLev ,holdFlag,activeAllow,xtraParams); // errString = sorderAllocate(saleOrder, lineNo, itemCode, allocQty, expLev ,holdFlag,activeAllow,xtraParams);
// ADDED BY RITESH ON 09/08/14 END // ADDED BY RITESH ON 09/08/14 END
...@@ -1704,7 +1704,8 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -1704,7 +1704,8 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
*/ */
// private String sorderAllocate(String saleOrder, String lineNo, String itemCode, double allocQty, String expLev ,String holdFlag,String activeAllow,String xtraParams) throws ITMException // private String sorderAllocate(String saleOrder, String lineNo, String itemCode, double allocQty, String expLev ,String holdFlag,String activeAllow,String xtraParams) throws ITMException
// private String sorderAllocate(HashMap soLnValues,String xtraParams) throws ITMException VALLABH without BATCH_ID // private String sorderAllocate(HashMap soLnValues,String xtraParams) throws ITMException VALLABH without BATCH_ID
private String sorderAllocate(HashMap soLnValues,String xtraParams, String batchId) throws ITMException // private String sorderAllocate(HashMap soLnValues,String xtraParams, String batchId) throws ITMException
private String sorderAllocate(HashMap soLnValues,String xtraParams, String batchId, Connection conn) throws ITMException
{ {
System.out.println("sorderAllocate calling .260814...RITESH.........."); System.out.println("sorderAllocate calling .260814...RITESH..........");
String saleOrder = "", lineNo = "", itemCode = ""; String saleOrder = "", lineNo = "", itemCode = "";
...@@ -1756,7 +1757,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -1756,7 +1757,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
String errCode = ""; String errCode = "";
// boolean checkLocation = false; // boolean checkLocation = false;
// boolean isActives = false; // boolean isActives = false;
Connection conn = null; // Connection conn = null; //VALLABH KADAM get connection form process().
PreparedStatement pstmtStock = null ,pstmt1 = null; PreparedStatement pstmtStock = null ,pstmt1 = null;
PreparedStatement pstmtStockInsertSordAlloc = null; PreparedStatement pstmtStockInsertSordAlloc = null;
Statement st = null; Statement st = 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