Commit b51ff9ec authored by vvengurlekar's avatar vvengurlekar

AdChangeIC.java

EmpMthadIC.java
EmpMthadPrs.java - date format hard coded given as per payparm


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204337 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9a1aa790
......@@ -481,7 +481,8 @@ public class AdChangeIC extends ValidatorEJB implements AdChangeICLocal, AdChang
effDateStr = checkNull(admCommon.getEnv("999999", "AD_EFFDATE", conn));
expDateStr = checkNull(admCommon.getEnv("999999", "AD_EXPDATE", conn));
System.out.println("AD_EFFDATE : ["+effDateStr+"] \t AD_EXPDATE ["+expDateStr+"]");
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
//SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yy");
Date effDate = sdf.parse(effDateStr);
Date expDate = sdf.parse(expDateStr);
sdf = new SimpleDateFormat("dd/MM/yy");
......
......@@ -638,11 +638,15 @@ public class EmpMthadIC extends ValidatorEJB implements EmpMthadLocal,EmpMthadRe
lsVarValue = admCommon.getEnv("999999", "AD_EFFDATE", conn);
System.out.println("lsVarValue==["+lsVarValue+"]");
System.out.println("genericUtility.getApplDateFormat()==["+genericUtility.getApplDateFormat()+"]");
lsVarValue = genericUtility.getValidDateString(lsVarValue, genericUtility.getApplDateFormat());
//Modify by Varsha V on 30-07-19 for formating payparm date
//lsVarValue = genericUtility.getValidDateString(lsVarValue, genericUtility.getApplDateFormat());
lsVarValue = genericUtility.getValidDateString(lsVarValue,"dd-MM-yy", genericUtility.getApplDateFormat());
System.out.println("lsVarValue==after["+lsVarValue+"]");
lsVarValues = admCommon.getEnv("999999", "AD_EXPDATE", conn);
lsVarValues = genericUtility.getValidDateString(lsVarValues, genericUtility.getApplDateFormat());
//Modify by Varsha V on 30-07-19 for formating payparm date
//lsVarValues = genericUtility.getValidDateString(lsVarValues, genericUtility.getApplDateFormat());
lsVarValues = genericUtility.getValidDateString(lsVarValues,"dd-MM-yy", genericUtility.getApplDateFormat());
valueXmlString.append("<eff_date ><![CDATA[").append(lsVarValue).append("]]></eff_date>\r\n");
valueXmlString.append("<exp_date ><![CDATA[").append(lsVarValues).append("]]></exp_date>\r\n");
......
......@@ -6,11 +6,12 @@ package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.*;
import javax.ejb.*;
//import javax.ejb.*;
import org.w3c.dom.*;
import ibase.webitm.utility.ITMException;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
......@@ -32,7 +33,7 @@ public class EmpMthadPrs extends ValidatorEJB implements EmpMthadPrsLocal,EmpMth
public void ejbPassivate()
{
}*/
E12GenericUtility genericUtility = new E12GenericUtility();
public String preSaveRec() throws RemoteException,ITMException
{
return "";
......@@ -46,7 +47,9 @@ public class EmpMthadPrs extends ValidatorEJB implements EmpMthadPrsLocal,EmpMth
{
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom = GenericUtility.getInstance().parseString(xmlString1);
//Changed by Varsha V on 30-07-19
//dom = GenericUtility.getInstance().parseString(xmlString1);
dom = genericUtility.parseString(xmlString1);
executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
}
}
......@@ -74,7 +77,8 @@ public class EmpMthadPrs extends ValidatorEJB implements EmpMthadPrsLocal,EmpMth
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
try
{
GenericUtility genericUtility = GenericUtility.getInstance();
//Removed by Varsha V on 30-07-19
//GenericUtility genericUtility = GenericUtility.getInstance();
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId");
AdmCommon admCommon = new AdmCommon();
System.out.println("dom.............:: "+ dom);
......
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