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
taxDate = java.sql.Timestamp.valueOf(sdf.format(chgDate) + " 00:00:00.000");
date = taxDate;
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
sql = " select key_string from transetup where upper(tran_window) = 'W_DRCRINV'";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
......@@ -1097,7 +1099,7 @@ public class CalculateCommission
xmlBuff.append("<Detail1 dbID=\"\" domID=\"1\" objName=\"drcrinv\" objContext=\"1\">");
xmlBuff.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
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("<site_code><![CDATA["+ siteCode +"]]></site_code>");
xmlBuff.append("<invoice_id><![CDATA["+ invoiceId +"]]></invoice_id>");
......@@ -1424,6 +1426,7 @@ public class CalculateCommission
xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "<tran_id/>";
xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>";
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
xmlValues = xmlValues + "<tran_date>"+ sdf.format(tranDate) + "</tran_date>";
xmlValues = xmlValues + "</Detail1></Root>";
......@@ -1576,7 +1579,7 @@ public class CalculateCommission
rs = null;
pstmt.close();
pstmt = null;
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
xmlString = "<?xml version=\"1.0\"?>\r\n<Root>\r\n<header>"+
"\r\n</header><Detail1><item_ser></item_ser>"+
"\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