Commit f66e350e authored by manohar's avatar manohar

date formats set in application date format in all xml


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96815 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5bbd40a6
...@@ -497,6 +497,8 @@ public class CalculateCommission ...@@ -497,6 +497,8 @@ public class CalculateCommission
taxDate = java.sql.Timestamp.valueOf(sdf.format(chgDate) + " 00:00:00.000"); taxDate = java.sql.Timestamp.valueOf(sdf.format(chgDate) + " 00:00:00.000");
date = taxDate; date = taxDate;
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
sql = " select key_string from transetup where upper(tran_window) = 'W_DRCRINV'"; sql = " select key_string from transetup where upper(tran_window) = 'W_DRCRINV'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -1097,7 +1099,7 @@ public class CalculateCommission ...@@ -1097,7 +1099,7 @@ public class CalculateCommission
xmlBuff.append("<Detail1 dbID=\"\" domID=\"1\" objName=\"drcrinv\" objContext=\"1\">"); xmlBuff.append("<Detail1 dbID=\"\" domID=\"1\" objName=\"drcrinv\" objContext=\"1\">");
xmlBuff.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>"); xmlBuff.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
xmlBuff.append("<tran_id/>"); xmlBuff.append("<tran_id/>");
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
xmlBuff.append("<tran_date><![CDATA["+ sdf.format(new java.util.Date()).toString() +"]]></tran_date>"); xmlBuff.append("<tran_date><![CDATA["+ sdf.format(new java.util.Date()).toString() +"]]></tran_date>");
xmlBuff.append("<site_code><![CDATA["+ siteCode +"]]></site_code>"); xmlBuff.append("<site_code><![CDATA["+ siteCode +"]]></site_code>");
xmlBuff.append("<invoice_id><![CDATA["+ invoiceId +"]]></invoice_id>"); xmlBuff.append("<invoice_id><![CDATA["+ invoiceId +"]]></invoice_id>");
...@@ -1424,6 +1426,7 @@ public class CalculateCommission ...@@ -1424,6 +1426,7 @@ public class CalculateCommission
xmlValues = xmlValues + "<Detail1>"; xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "<tran_id/>"; xmlValues = xmlValues + "<tran_id/>";
xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>"; xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>";
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
xmlValues = xmlValues + "<tran_date>"+ sdf.format(tranDate) + "</tran_date>"; xmlValues = xmlValues + "<tran_date>"+ sdf.format(tranDate) + "</tran_date>";
xmlValues = xmlValues + "</Detail1></Root>"; xmlValues = xmlValues + "</Detail1></Root>";
...@@ -1576,7 +1579,7 @@ public class CalculateCommission ...@@ -1576,7 +1579,7 @@ public class CalculateCommission
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
xmlString = "<?xml version=\"1.0\"?>\r\n<Root>\r\n<header>"+ xmlString = "<?xml version=\"1.0\"?>\r\n<Root>\r\n<header>"+
"\r\n</header><Detail1><item_ser></item_ser>"+ "\r\n</header><Detail1><item_ser></item_ser>"+
"\r\n<site_code__from>"+siteCode+"</site_code__from>"+ "\r\n<site_code__from>"+siteCode+"</site_code__from>"+
......
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