Commit ab45debf authored by dpawar's avatar dpawar

Change in date format and added method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97763 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e68c2a97
...@@ -58,6 +58,7 @@ import java.util.TreeSet; ...@@ -58,6 +58,7 @@ import java.util.TreeSet;
import javax.imageio.ImageIO; import javax.imageio.ImageIO;
import javax.print.PrintService; import javax.print.PrintService;
//import org.apache.fop.fo.properties.ForcePageCount; //import org.apache.fop.fo.properties.ForcePageCount;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.Node; import org.w3c.dom.Node;
...@@ -15422,8 +15423,10 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -15422,8 +15423,10 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
String chgUser = "", chgTerm = ""; String chgUser = "", chgTerm = "";
java.sql.Date currDate = new java.sql.Date(System.currentTimeMillis()); java.sql.Date currDate = new java.sql.Date(System.currentTimeMillis());
java.sql.Timestamp currDate1 = new java.sql.Timestamp(System.currentTimeMillis()); //Changes and commented by Dadaso pawar on 06/04/15 [Start]
//java.sql.Timestamp currDate1 = new java.sql.Timestamp(System.currentTimeMillis());
java.sql.Timestamp currDate1 = getCurrtDate();
//Changes and commented by Dadaso pawar on 06/04/15 [END]
//Changes made by gulzar on 12/28/2011 //Changes made by gulzar on 12/28/2011
String dbDateFormat = genericUtility.getDBDateFormat(); String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat(); String applDateFormat = genericUtility.getApplDateFormat();
...@@ -23963,5 +23966,25 @@ private void updatePacketWeigfhts(String masterPackTranId ,String packCode,doubl ...@@ -23963,5 +23966,25 @@ private void updatePacketWeigfhts(String masterPackTranId ,String packCode,doubl
} }
} }
//Added by Dadaso pawar on 06/04/15 [Start]
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);
}
//Added by Dadaso pawar on 06/04/15 [End]
} }
\ No newline at end of file
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