Commit 8847ecb3 authored by manohar's avatar manohar

tran_date set in itm_default, and chg_term, chg_user binding corrected during insert


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96384 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 20f04540
...@@ -331,9 +331,14 @@ public class WOTrackUpdateIC extends ValidatorEJB implements WOTrackUpdateICLoca ...@@ -331,9 +331,14 @@ public class WOTrackUpdateIC extends ValidatorEJB implements WOTrackUpdateICLoca
ResultSet rs = null ; ResultSet rs = null ;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
java.sql.Timestamp currDate = null;
String currDateStr = null;
try try
{ {
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
...@@ -378,7 +383,10 @@ public class WOTrackUpdateIC extends ValidatorEJB implements WOTrackUpdateICLoca ...@@ -378,7 +383,10 @@ public class WOTrackUpdateIC extends ValidatorEJB implements WOTrackUpdateICLoca
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
currDate = new java.sql.Timestamp(System.currentTimeMillis());
currDateStr = sdf.format(currDate);
valueXmlString.append("<ref_id>").append("<![CDATA[" + refId +"]]>").append("</ref_id>\r\n"); valueXmlString.append("<ref_id>").append("<![CDATA[" + refId +"]]>").append("</ref_id>\r\n");
valueXmlString.append("<tran_date>").append("<![CDATA[" + currDateStr +"]]>").append("</tran_date>\r\n");
} }
/*else if(currentColumn.trim().equalsIgnoreCase("work_order")) /*else if(currentColumn.trim().equalsIgnoreCase("work_order"))
{ {
......
...@@ -156,8 +156,8 @@ public class WOTrackUpdatePos extends ValidatorEJB implements WOTrackUpdatePosLo ...@@ -156,8 +156,8 @@ public class WOTrackUpdatePos extends ValidatorEJB implements WOTrackUpdatePosLo
} }
pstmtInst.setString(11,remarks); pstmtInst.setString(11,remarks);
pstmtInst.setDate(12, new java.sql.Date(new java.util.Date().getTime())); pstmtInst.setDate(12, new java.sql.Date(new java.util.Date().getTime()));
pstmtInst.setString(13,userId); pstmtInst.setString(13,termId);
pstmtInst.setString(14,termId); pstmtInst.setString(14,userId);
System.out.println("insert "+pstmtInst.executeUpdate()); System.out.println("insert "+pstmtInst.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