Commit 9391b570 authored by agaikwad's avatar agaikwad

set tran date.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@43809 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 42ed81f9
......@@ -191,12 +191,12 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
boolean isLocal=false;
String autoInvOnDesp="";
boolean lockSuccess = false;
Date lrDate = null;
Timestamp lrDate = null;
PostOrderActivity postordact=null;
String ordType = "",itemSer = "",acctCodeDr = "",cctrCodeDr = "",acctCodeCr = "",cctrCodeCr = "",invLock = "",holdTranId = "";
Timestamp expDate = null, mfgDate = null;
String siteCodeMfg = "", packCode = "";
Date tranDate = null;
Timestamp tranDate = null;
try
{
......@@ -231,7 +231,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
{
lockSuccess = true;
confirm = rs.getString("confirmed");
lrDate = rs.getDate("lr_date");
lrDate = rs.getTimestamp("lr_date");
}
else
{
......@@ -264,11 +264,11 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
pstmt1 = conn.prepareStatement(sql);
if(lrDate != null)
{
pstmt1.setDate(1,(java.sql.Date) lrDate);
pstmt1.setTimestamp(1,lrDate);
}
else
{
pstmt1.setDate(1,(java.sql.Date) tranDate);
pstmt1.setTimestamp(1, tranDate);
}
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