Commit fcf07d75 authored by rtiwari's avatar rtiwari

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96239 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 15d5aa85
...@@ -378,7 +378,7 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf ...@@ -378,7 +378,7 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("itemChanged() called @@@@@@@@@@@@ 2"); System.out.println("itemChanged() called @@@@@@@@@@@@ 2- 110914");
StringBuffer valueXmlString = new StringBuffer(); StringBuffer valueXmlString = new StringBuffer();
Connection conn = null; Connection conn = null;
PreparedStatement pstmt = null,pstmt1=null;; PreparedStatement pstmt = null,pstmt1=null;;
...@@ -392,10 +392,9 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf ...@@ -392,10 +392,9 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf
String chgTerm = ""; String chgTerm = "";
String siteDescr = ""; String siteDescr = "";
int cnt = 0; int cnt = 0;
String currAppdate= "";
String empCode ="", loginSiteCode = ""; String empCode ="", loginSiteCode = "";
Timestamp currDateNew = null; Timestamp currDateNew = null;
java.util.Date currDate = null; // java.util.Date currDate = null;
String currDateStr = null; String currDateStr = null;
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -407,8 +406,6 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf ...@@ -407,8 +406,6 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver=null; connDriver=null;
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
Timestamp date1 = Timestamp.valueOf(sdf.format(utilDate).toString() + " 00:00:00.0");
String applDateFormat = genericUtility.getApplDateFormat(); String applDateFormat = genericUtility.getApplDateFormat();
if(objContext != null && objContext.trim().length()>0) if(objContext != null && objContext.trim().length()>0)
...@@ -429,9 +426,12 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf ...@@ -429,9 +426,12 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf
//siteCode =(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode")); //siteCode =(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
if(currentColumn.trim().equalsIgnoreCase("itm_default")) if(currentColumn.trim().equalsIgnoreCase("itm_default"))
{ {
currDate = new java.util.Date(); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
currDateNew = java.sql.Timestamp.valueOf(sdf1.format(new java.util.Date()).toString() + " 00:00:00.0");
// currDate = new java.util.Date();
sdf = new SimpleDateFormat(applDateFormat); sdf = new SimpleDateFormat(applDateFormat);
currDateStr = sdf.format(currDate); currDateStr = sdf.format(currDateNew);
loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" )); loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" ));
System.out.println("********* login code ["+loginCode+"]"); System.out.println("********* login code ["+loginCode+"]");
sql = "SELECT EMP_CODE FROM USERS WHERE CODE = ?"; sql = "SELECT EMP_CODE FROM USERS WHERE CODE = ?";
...@@ -458,10 +458,6 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf ...@@ -458,10 +458,6 @@ public class WoTrfWizIC extends ValidatorEJB implements WoTrfWizICLocal, WoTrf
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "chgTerm" )); chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "chgTerm" ));
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" )); siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
currDateNew = new java.sql.Timestamp(System.currentTimeMillis()) ;
currAppdate = new SimpleDateFormat(genericUtility.getApplDateFormat()).format(currDateNew).toString();
currAppdate = genericUtility.getValidDateString(currAppdate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat());
sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = ?"; sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = ?";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, siteCode ); pstmt.setString( 1, siteCode );
......
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