Commit c21a8c42 authored by manohar's avatar manohar

Confirm date assigned to current system date


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92139 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 883e6c98
......@@ -2329,6 +2329,25 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
}
return (currAppdate);
}
private java.sql.Timestamp getCurrtDate() throws RemoteException, ITMException
{
String currAppdate ="";
java.sql.Timestamp currDate = null;
try
{
Object date = null;
currDate =new java.sql.Timestamp(System.currentTimeMillis()) ;
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(genericUtility.getDBDateFormat());
date = sdf.parse(currDate.toString());
currDate = java.sql.Timestamp.valueOf(sdf.format(date).toString() + " 00:00:00.0");
}
catch(Exception e)
{
throw new ITMException(e);
}
return (currDate);
}
public String checkReplVal( String tranId, Connection conn ) throws RemoteException, ITMException
{
......@@ -3600,7 +3619,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
if ( "CONF".equalsIgnoreCase(confTran) )
{
tranDate = confDate;
tranDate = getCurrtDate(); //confDate;
}
if ( purcorder != null && !"Y".equals(nullPo) )
......
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