Commit 3bcc0b97 authored by sankara.rao's avatar sankara.rao

changed by sankara on 10/04/13 updated DockTranPos source from pragyan sir


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93720 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 973ae330
......@@ -36,6 +36,8 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
}
public String postSave(String domString, String tranId,String editFlag, String xtraParams, Connection conn ) throws RemoteException,ITMException
{
System.out.println( "Calling DockTranPos.........................................." );
String forcedFlag = "false" ;
String errString = "";
String sql = "";
......@@ -721,19 +723,6 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
pstmtUpd.close();
pstmtUpd = null;
//update the status of pick order in wave_task_det table
//Changed by sumit on 10/08/12 update wave_status 'V' with updating status = 'Y'
//updateSql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y' WHERE REF_ID = ? ";
updateSql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y', WAVE_STATUS = 'V' WHERE REF_ID = ? ";
pstmt = conn.prepareStatement(updateSql);
pstmt.setString(1, pickOrder);
updCnt = pstmt.executeUpdate();
if( updCnt > 0 )
{
System.out.println( updCnt + " rows updated successfully" );
}
pstmt.close();pstmt = null;
//Changed by Sankara on 03/oct/13 adding validation to prevent doc transfer in case of pending/aborted picking.start
int countConf = 0;
......@@ -761,6 +750,20 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
}
//Changed by Sankara on 03/oct/13 adding validation to prevent doc transfer in case of pending/aborted picking.start
//update the status of pick order in wave_task_det table
//Changed by sumit on 10/08/12 update wave_status 'V' with updating status = 'Y'
//updateSql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y' WHERE REF_ID = ? ";
updateSql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y', WAVE_STATUS = 'V' WHERE REF_ID = ? ";
pstmt = conn.prepareStatement(updateSql);
pstmt.setString(1, pickOrder);
updCnt = pstmt.executeUpdate();
if( updCnt > 0 )
{
System.out.println( updCnt + " rows updated successfully" );
}
pstmt.close();pstmt = null;
//Changed by sumit on 30/08/12 for updating wave_status start.
//Changed by sumit on 21/01/13 for updating wave_status for M-PACK task start
......
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