Commit da2a7b34 authored by ssarkar's avatar ssarkar

changed by sumit on 22/12/12 update status in wave_task_det after shipment confirmed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92404 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 96871e6a
...@@ -32,6 +32,7 @@ import javax.xml.rpc.ParameterMode; ...@@ -32,6 +32,7 @@ import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Call; import org.apache.axis.client.Call;
import org.apache.axis.client.Service; import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType; import org.apache.axis.encoding.XMLType;
import org.apache.poi.hssf.util.HSSFColor.RED;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.Node; import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
...@@ -504,7 +505,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -504,7 +505,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
private String updateShipDocs ( String refId, HashMap error) throws ITMException private String updateShipDocs ( String refId, HashMap error) throws ITMException
{ {
String sql = ""; String sql = "";
PreparedStatement pstmt1 = null; PreparedStatement pstmt1 = null, pstmt = null;
Connection conn = null; Connection conn = null;
ConnDriver connDriver = null; ConnDriver connDriver = null;
try try
...@@ -522,6 +523,20 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -522,6 +523,20 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
} }
else else
{ {
//Changed by sumit on 20/12/12 updating wave_task_det after despatch get confirmed start.
sql = "UPDATE WAVE_TASK_DET SET STATUS = 'Y', WAVE_STATUS = 'V' WHERE REF_ID = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
if(pstmt.executeUpdate() > 0 )
{
System.out.println(" wave_status of wave_task_det updated successfully");
}
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
//Changed by sumit on 20/12/12 updating wave_task_det after despatch get confirmed end.
pstmt1.setString(1, "Y"); pstmt1.setString(1, "Y");
pstmt1.setString(2, ""); pstmt1.setString(2, "");
pstmt1.setString(3, refId); pstmt1.setString(3, refId);
...@@ -548,6 +563,11 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal, ...@@ -548,6 +563,11 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
{ {
try try
{ {
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
if ( pstmt1 != null) if ( pstmt1 != null)
{ {
pstmt1.close(); pstmt1.close();
......
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