Commit 1d383ccc authored by caluka's avatar caluka

date format change to getApplDateFormat in itemchange()


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97105 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f60ad692
......@@ -7,6 +7,7 @@
package ibase.webitm.ejb.dis;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
......@@ -38,7 +39,8 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
Document dom1 = null;
Document dom2 = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility();
//GenericUtility genericUtility = GenericUtility.getInstance();
System.out.println("WFVALDATA 111111");
try
{
......@@ -80,7 +82,8 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
ResultSet rs = null;
Connection conn = null;
PreparedStatement pstmt = null;
GenericUtility genericUtility = GenericUtility.getInstance();
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility();
// GenericUtility genericUtility = GenericUtility.getInstance();
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
......@@ -940,7 +943,8 @@ public String itemChanged(String xmlString, String xmlString1, String xmlString2
Document dom1 = null;
Document dom2 = null;
String errString = null;
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility();
try
{
if (xmlString != null && xmlString.trim().length()!=0)
......@@ -1026,11 +1030,14 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");
//SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");
StringBuffer valueXmlString = new StringBuffer();
GenericUtility genericUtility = GenericUtility.getInstance();
//GenericUtility genericUtility = GenericUtility.getInstance();
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility();//Added by chandra shekar on 08-01-2014
try
{
{ SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());//Added by chandra shekar on 08-01-2014
columnValue = genericUtility.getColumnValue( currentColumn, dom );
ConnDriver connDriver = null;
connDriver = new ConnDriver();
......@@ -1126,7 +1133,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
pordDate = rs.getDate("pord_date");
}
System.out.println("chequeNo : "+chequeNo+" chequeDate : "+chequeDate+" custPord : "+custPord+" pordDate : "+pordDate);
System.out.println("chequeNo : "+chequeNo+" chequeDate : ["+chequeDate+"] custPord : "+custPord+" pordDate : ["+pordDate+"]");
rs.close();
rs = null;
pstmt.close();
......
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