Commit 3c9b6aad authored by msingh's avatar msingh

Changed by Manish on 30/04/16


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101425 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a3e4dafc
...@@ -184,11 +184,12 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -184,11 +184,12 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
//ConnDriver connDriver = null; //ConnDriver connDriver = null;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
Timestamp despDate = null,gpDate = null,lrDate = null; Timestamp despDate = null,gpDate = null;
int cnt = 0,editOption = 0,detCount = 0; int cnt = 0,editOption = 0,detCount = 0;
boolean isLocal=false; boolean isLocal=false;
String autoInvOnDesp=""; String autoInvOnDesp="";
boolean lockSuccess = false; boolean lockSuccess = false;
Date lrDate = null;
try try
{ {
itmDBAccessEJB = new ITMDBAccessEJB(); itmDBAccessEJB = new ITMDBAccessEJB();
...@@ -227,7 +228,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -227,7 +228,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
{ {
lockSuccess = true; lockSuccess = true;
confirm = rs.getString("confirmed"); confirm = rs.getString("confirmed");
lrDate = rs.getTimestamp("lr_date"); lrDate = rs.getDate("lr_date");
} }
else else
{ {
...@@ -253,23 +254,19 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -253,23 +254,19 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
if("Y".equalsIgnoreCase(ledgPostConf)) if("Y".equalsIgnoreCase(ledgPostConf))
{ {
System.out.println("lrDate is["+lrDate+"]"); System.out.println("Manish lrDate is["+lrDate+"]");
sql = "update despatch set desp_date = ? "
+" where desp_id = ? ";
pstmt1 = conn.prepareStatement(sql);
if(lrDate != null) if(lrDate != null)
{ {
despDate = lrDate; pstmt1.setDate(1,(java.sql.Date) lrDate);
} }
else else
{ {
despDate = new Timestamp(System.currentTimeMillis()); pstmt1.setDate(1, new java.sql.Date(System.currentTimeMillis()));
} }
System.out.println("despDate is["+despDate+"]");
sql = "update despatch set desp_date = ? "
+" where desp_id = ? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setTimestamp(1,despDate);
pstmt1.setString(2,tranId); pstmt1.setString(2,tranId);
int count = pstmt1.executeUpdate(); int count = pstmt1.executeUpdate();
......
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