Commit c6e6ec92 authored by caluka's avatar caluka

updated confirmation EJB for Manual Stock De-allocation Entry Screen [W14CSUN004]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95581 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8f67c096
...@@ -214,15 +214,12 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -214,15 +214,12 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
PreparedStatement pSordAllocDet = null; PreparedStatement pSordAllocDet = null;
ResultSet rs = null ; ResultSet rs = null ;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
PreparedStatement st = null; PreparedStatement st = null;
PreparedStatement st1 = null; PreparedStatement st1 = null;
ResultSet rsQtyAlloc=null; ResultSet rsQtyAlloc=null;
String SqlQtyAlloc="",DelQtyAlloc=""; String SqlQtyAlloc="",DelQtyAlloc="";
//String allocLineno="",updateSordAllocDet="";
InvAllocTraceBean invAllocTrace = new InvAllocTraceBean(); InvAllocTraceBean invAllocTrace = new InvAllocTraceBean();
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
HashMap strDeAllocate = null; HashMap strDeAllocate = null;
...@@ -240,7 +237,7 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -240,7 +237,7 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
+" d.loc_code ,d.lot_no ,d.lot_sl ,d.quantity ,d.dealloc_qty,h.site_code__ship , " +" d.loc_code ,d.lot_no ,d.lot_sl ,d.quantity ,d.dealloc_qty,h.site_code__ship , "
+" d.exp_lev,d.pending_qty " +" d.exp_lev,d.pending_qty "
+" from sord_alloc_det d , sord_alloc h " +" from sord_alloc_det d , sord_alloc h "
+" where d.tran_id = ? and h.tran_id = d.tran_id " +" where h.tran_id = d.tran_id and d.tran_id = ? "
+" order by line_no asc "; +" order by line_no asc ";
pSordAllocDet = conn.prepareStatement(getDataSql); pSordAllocDet = conn.prepareStatement(getDataSql);
pSordAllocDet.setString(1,tranId); pSordAllocDet.setString(1,tranId);
...@@ -251,17 +248,13 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -251,17 +248,13 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
while(rs.next()) while(rs.next())
{ {
System.out.println( "INSIDE WHILE LOOP.............");
tranIDD = rs.getString(1); tranIDD = rs.getString(1);
lineNo = rs.getString(2); lineNo = rs.getString(2);
saleOrder = rs.getString(3); saleOrder = rs.getString(3);
lineNoSord = rs.getString(4); lineNoSord = rs.getString(4);
lineNoSord = " " + lineNoSord.trim(); lineNoSord = " " + lineNoSord.trim();
lineNoSord = lineNoSord.substring( lineNoSord.length()-3 ); lineNoSord = lineNoSord.substring( lineNoSord.length()-3 );
itemCode = rs.getString(5); itemCode = rs.getString(5);
locCode = rs.getString(6); locCode = rs.getString(6);
lotNo = rs.getString(7); lotNo = rs.getString(7);
...@@ -273,9 +266,8 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -273,9 +266,8 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
pendingQuantity = rs.getDouble(13); pendingQuantity = rs.getDouble(13);
qtyToBeDeAllocated = quantity; qtyToBeDeAllocated = quantity;
System.out.println("pendingQuantity["+pendingQuantity+"]"); System.out.println("pendingQuantity["+pendingQuantity+"]");
System.out.print("Allocatio Qty = " + qtyToBeDeAllocated); System.out.print("qtyToBeDeAllocated = " + qtyToBeDeAllocated);
strDeAllocate = new HashMap(); strDeAllocate = new HashMap();
strDeAllocate.put("tran_date",tranDate); strDeAllocate.put("tran_date",tranDate);
...@@ -441,5 +433,5 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -441,5 +433,5 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
return errString ; return errString ;
} }
return errString; return errString;
}// end of sorderAllocate }// end of sorderDeAllocate
} }
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