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
E12GenericUtility genericUtility = new E12GenericUtility();
//ConnDriver connDriver = null;
ITMDBAccessEJB itmDBAccessEJB = null;
Timestamp despDate = null,gpDate = null,lrDate = null;
Timestamp despDate = null,gpDate = null;
int cnt = 0,editOption = 0,detCount = 0;
boolean isLocal=false;
String autoInvOnDesp="";
boolean lockSuccess = false;
Date lrDate = null;
try
{
itmDBAccessEJB = new ITMDBAccessEJB();
......@@ -227,7 +228,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
{
lockSuccess = true;
confirm = rs.getString("confirmed");
lrDate = rs.getTimestamp("lr_date");
lrDate = rs.getDate("lr_date");
}
else
{
......@@ -253,23 +254,19 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
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)
{
despDate = lrDate;
pstmt1.setDate(1,(java.sql.Date) lrDate);
}
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);
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