Commit 5438f9b9 authored by agaikwad's avatar agaikwad

format gp date


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106139 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 865ae427
...@@ -205,6 +205,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -205,6 +205,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
Date today = new java.sql.Timestamp(System.currentTimeMillis()) ;// Added by Abhijit on 15/05/17 Date today = new java.sql.Timestamp(System.currentTimeMillis()) ;// Added by Abhijit on 15/05/17
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getApplDateFormat());
tranDate = java.sql.Timestamp.valueOf(sdf.format(today) + " 00:00:00.000"); tranDate = java.sql.Timestamp.valueOf(sdf.format(today) + " 00:00:00.000");
// Changed by Manish on 28/04/16 for update nowait [start] // Changed by Manish on 28/04/16 for update nowait [start]
...@@ -375,6 +376,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -375,6 +376,8 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
System.out.println("desp_date["+despDate+"] gp_date["+gpDate+"]"); System.out.println("desp_date["+despDate+"] gp_date["+gpDate+"]");
System.out.println("gp_date Format["+sdf.format(gpDate)+"]");
System.out.println("gp_date Format["+sdf1.format(gpDate)+"]");
String xmlValues = ""; String xmlValues = "";
xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>"; xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>"; xmlValues = xmlValues + "<Header></Header>";
...@@ -383,7 +386,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm ...@@ -383,7 +386,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
xmlValues = xmlValues + "<site_code>" + siteCodeExc + "</site_code>"; xmlValues = xmlValues + "<site_code>" + siteCodeExc + "</site_code>";
xmlValues = xmlValues + "<desp_date>"+ despDate + "</desp_date>"; xmlValues = xmlValues + "<desp_date>"+ despDate + "</desp_date>";
xmlValues = xmlValues + "<gp_ser>"+ gpSer + "</gp_ser>"; xmlValues = xmlValues + "<gp_ser>"+ gpSer + "</gp_ser>";
xmlValues = xmlValues + "<gp_date>"+ gpDate + "</gp_date>"; xmlValues = xmlValues + "<gp_date>"+ sdf1.format(gpDate) + "</gp_date>";
xmlValues = xmlValues + "</Detail1></Root>"; xmlValues = xmlValues + "</Detail1></Root>";
......
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