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
......@@ -213,16 +213,13 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
double pendingQuantity = 0;
PreparedStatement pstmt = null;
PreparedStatement pSordAllocDet = null;
ResultSet rs = null ;
ITMDBAccessEJB itmDBAccessEJB = null;
PreparedStatement st = null;
PreparedStatement st1 = null;
ResultSet rsQtyAlloc=null;
String SqlQtyAlloc="",DelQtyAlloc="";
//String allocLineno="",updateSordAllocDet="";
InvAllocTraceBean invAllocTrace = new InvAllocTraceBean();
GenericUtility genericUtility = GenericUtility.getInstance();
HashMap strDeAllocate = null;
......@@ -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.exp_lev,d.pending_qty "
+" 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 ";
pSordAllocDet = conn.prepareStatement(getDataSql);
pSordAllocDet.setString(1,tranId);
......@@ -251,17 +248,13 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
while(rs.next())
{
System.out.println( "INSIDE WHILE LOOP.............");
tranIDD = rs.getString(1);
lineNo = rs.getString(2);
saleOrder = rs.getString(3);
lineNoSord = rs.getString(4);
lineNoSord = " " + lineNoSord.trim();
lineNoSord = lineNoSord.substring( lineNoSord.length()-3 );
itemCode = rs.getString(5);
locCode = rs.getString(6);
lotNo = rs.getString(7);
......@@ -273,9 +266,8 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
pendingQuantity = rs.getDouble(13);
qtyToBeDeAllocated = quantity;
System.out.println("pendingQuantity["+pendingQuantity+"]");
System.out.print("Allocatio Qty = " + qtyToBeDeAllocated);
System.out.print("qtyToBeDeAllocated = " + qtyToBeDeAllocated);
strDeAllocate = new HashMap();
strDeAllocate.put("tran_date",tranDate);
......@@ -441,5 +433,5 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
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