Commit 90dc8f70 authored by vvengurlekar's avatar vvengurlekar

PayarrToProc.java

PayarrToProcLocal.java
PayarrToProcRemote.java - validation method  added and also added itemchange for emp_code and itm_default


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@189949 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e104edff
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
//Created by Suraj [19/3/15] [To create a payarr_to_proc transaction][Starts] //Created by Suraj [19/3/15] [To create a payarr_to_proc transaction][Starts]
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB; import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
@Stateless @Stateless
public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,PayarrToProcRemote public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,PayarrToProcRemote
{ {
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
AdmCommon admCommon = new AdmCommon();
public String wfValData() throws RemoteException, ITMException public String wfValData() throws RemoteException, ITMException
{ {
return ""; return "";
} }
//added wfValData method by Varsha V on 24-08-18 for Arrears to processed validation[START] A17ESUN001
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String retString = "";
try
{
if(xmlString != null && xmlString.trim().length() > 0)
{
dom = genericUtility.parseString(xmlString);
}
if(xmlString1 != null && xmlString1.trim().length() > 0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if(xmlString2 != null && xmlString2.trim().length() > 0)
{
dom2 = genericUtility.parseString(xmlString2);
}
retString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams);
System.out.println("retString of PayarrToProc--> wfValData:::"+retString);
}
catch(Exception e)
{
System.out.println("::: PayarrToProc ::"+ e.getMessage());
e.getMessage();
}
return retString;
}
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
int childNodeLength = 0;
int currentFormNo=0;
int ctr = 0, cnt = 0;
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
NodeList parentNodeList = null;
Node parentNode = null;
NodeList childNodeList = null;
Node childNode = null;
String childNodeName = "";
String errString="";
String userId = "", errCode = "", errorType = "", loginCode = "";
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
String sql = "";
String empCode = "", status = "", prdCode = "", procType = "", paySite = "";
int userLevel = 0;
Date fromDate = null, relieveDate = null;
try
{
conn = getConnection();
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode");
loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if(objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
System.out.println("currentFormNo:::"+currentFormNo);
switch(currentFormNo)
{
case 1:
{
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeLength = childNodeList.getLength();
for(ctr = 0; ctr < childNodeLength; ctr++)
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
System.out.println(">>>>>> childNodeName: "+childNodeName);
if("emp_code".equalsIgnoreCase(childNodeName))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
if(empCode != null && empCode.trim().length() > 0)
{
cnt = 0;
sql = "select status, pay_site from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
status = checkNull(rs.getString("status"));
paySite = checkNull(rs.getString("pay_site"));
cnt++;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTPAYARR04";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if(status.equalsIgnoreCase("S"))
{
errCode = "VTPAYARR01";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
sql = "select usr_lev from users where code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginCode);
rs = pstmt.executeQuery();
if(rs.next())
{
userLevel = rs.getInt("usr_lev");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(userLevel > 1)
{
cnt = 0;
sql = "select count(*) as cnt from user_site where user_id = ? and site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginCode);
pstmt.setString(2, paySite);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt <= 0)
{
errCode = "VTPAYARR06";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
else
{
errCode = "VTPAYARR04";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else if("prd_code".equalsIgnoreCase(childNodeName))
{
prdCode = checkNull(genericUtility.getColumnValue("prd_code", dom));
if(prdCode != null && prdCode.trim().length() > 0)
{
cnt = 0;
sql = "select fr_date from period where code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, prdCode);
rs = pstmt.executeQuery();
if(rs.next())
{
fromDate = rs.getDate("fr_date");
cnt++;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTPAYARR05";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
sql = "select RELIEVE_DATE from employee where EMP_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
relieveDate = rs.getDate("RELIEVE_DATE");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(fromDate.after(relieveDate))
{
errCode = "VTPAYARR02";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else
{
errCode = "VTPAYARR05";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
procType = checkNull(genericUtility.getColumnValue("proc_type", dom));
cnt = 0;
sql = "select count(*) as cnt from payarr_to_proc where EMP_CODE = ?"
+ " and prd_code = ? and proc_type = ? and (status is null or status = 'U')";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
pstmt.setString(2, prdCode);
pstmt.setString(3, procType);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errCode = "VTPAYARR03";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
}
}
int errListSize = errList.size();
System.out.println("errListSize::::::::::"+errListSize);
int count = 0;
String errFldName = null;
if (errList != null && errListSize > 0)
{
for (count = 0; count < errListSize; count++)
{
errCode = errList.get(count);
errFldName = errFields.get(count);
System.out.println(" testing :errCode .:" + errCode);
errString = getErrorString(errFldName, errCode, userId);
System.out.println("errString>>>>>>>>>"+errString);
errorType = errorType(conn, errCode);
if (errString.length() > 0)
{
String bifurErrString = errString.substring(errString.indexOf("<Errors>") + 8, errString.indexOf("<trace>"));
bifurErrString = bifurErrString + errString.substring(errString.indexOf("</trace>") + 8, errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
errString = "";
}
if (errorType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors> </Root> \r\n");
}
else
{
errStringXml = new StringBuffer("");
}
}
}
catch(SQLException se)
{
se.printStackTrace();
errString = admCommon.getErrorMessage(se, "");
errString = admCommon.getErrorXmlString(admCommon, errString, "");
System.out.println("errString after getErrorXmlString: "+errString);
return errString;
}
catch(Exception e)
{
e.printStackTrace();
errString = admCommon.getErrorMessage(e, "");
errString = admCommon.getErrorXmlString(admCommon, errString, "");
System.out.println("errString after getErrorXmlString: "+errString);
return errString;
}
finally
{
try {
if ( conn != null )
{
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
conn.close();
conn = null;
}
}
catch(Exception e)
{
System.out.println("[PayarrToProc][wfValData]Exception ::"+e);
e.printStackTrace();
}
}
errString = errStringXml.toString();
System.out.println("testing : final errString : " + errString);
return errString;
}
//Ended wfValData method by Varsha V on 24-08-18 for Arrears to processed validation[End]
public String itemChanged() throws RemoteException, ITMException public String itemChanged() throws RemoteException, ITMException
{ {
return ""; return "";
...@@ -66,12 +437,19 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -66,12 +437,19 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
String chgUser=""; String chgUser="";
String chgTerm=""; String chgTerm="";
String site=""; String site="";
String siteDescr = "";
String descr=""; String descr="";
String procType=""; String procType="";
String tranId=""; String tranId="";
String empName = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "";
StringBuffer xmlString = new StringBuffer(); StringBuffer xmlString = new StringBuffer();
Connection conn = null;
try try
{ {
conn = getConnection();
chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "userId")); chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "userId"));
chgTerm = getValueFromXTRA_PARAMS(xtraParams, "termId"); chgTerm = getValueFromXTRA_PARAMS(xtraParams, "termId");
java.util.Date currDate = new java.util.Date(); java.util.Date currDate = new java.util.Date();
...@@ -91,45 +469,116 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -91,45 +469,116 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
{ {
case 1: case 1:
{ {
xmlString.append("<Detail1 domID='1' dbID=''>\r\n"); xmlString.append("<Detail1 domID='1' dbID=''>\r\n");
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit")) //added itm_default itemchange by Varsha V on 24-08-18 [START] A17ESUN001
{ if (currentColumn.trim().equalsIgnoreCase("itm_default"))
empCode=checkNull(genericUtility.getColumnValue("emp_code", dom1));
System.out.println("Emp_Code: ["+empCode+"]");
site=checkNull(genericUtility.getColumnValue("site", dom1));
System.out.println("Site_Code: ["+site+"]");
descr=checkNull(genericUtility.getColumnValue("descr", dom1));
System.out.println("Description: ["+descr+"]");
prdCode=checkNull(genericUtility.getColumnValue("prd_code", dom1));
System.out.println("Prd_Code: ["+prdCode+"]");
status=checkNull(genericUtility.getColumnValue("status", dom1));
System.out.println("Status: ["+status+"]");
prdCodeAcc=checkNull(genericUtility.getColumnValue("prd_code__acc", dom1));
System.out.println("prd_code__acc: ["+prdCodeAcc+"]");
procDate=checkNull(genericUtility.getColumnValue("proc_date", dom1));
System.out.println("proc_Date: ["+procDate+"]");
procType=checkNull(genericUtility.getColumnValue("proc_type", dom1));
System.out.println("proc_type: ["+procType+"]");
tranId=checkNull(genericUtility.getColumnValue("tran_id", dom1));
System.out.println("tran_id: ["+tranId+"]");
System.out.println("Current column is[" + currentColumn + "]");
xmlString.append("<chg_date><![CDATA[").append(checkNull(chgDate)).append("]]></chg_date>\r\n");
xmlString.append("<chg_user><![CDATA[").append(checkNull(chgUser)).append("]]></chg_user>\r\n");
xmlString.append("<chg_term><![CDATA[").append(checkNull(chgTerm)).append("]]></chg_term>\r\n");
if((prdCodeAcc != null && prdCodeAcc.trim().length()>0 ) && status.trim().equalsIgnoreCase("P") )
{ {
System.out.println("IN IF CONDITION::::::::::"); xmlString.append("<emp_code protect=\"0\"><![CDATA[").append("").append("]]></emp_code>\r\n");
xmlString.append("<status protect=\"1\"><![CDATA[").append(checkNull(status)).append("]]></status>\r\n"); xmlString.append("<site protect=\"1\"><![CDATA[").append("").append("]]></site>\r\n");
} xmlString.append("<descr protect=\"1\"><![CDATA[").append("").append("]]></descr>\r\n");
else xmlString.append("<prd_code protect=\"0\"><![CDATA[").append("").append("]]></prd_code>\r\n");
xmlString.append("<status protect=\"1\"><![CDATA[").append("U").append("]]></status>\r\n");
xmlString.append("<prd_code__acc protect=\"1\"><![CDATA[").append("").append("]]></prd_code__acc>\r\n");
xmlString.append("<proc_date protect=\"1\"><![CDATA[").append("").append("]]></proc_date>\r\n");
xmlString.append("<proc_type protect=\"1\"><![CDATA[").append("PY").append("]]></proc_type>\r\n");
xmlString.append("<tran_id protect=\"1\"><![CDATA[").append("").append("]]></tran_id>\r\n");
}//Ended itm_default itemchange by Varsha V on 24-08-18 [END]
else if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
{ {
xmlString.append("<status protect=\"0\"><![CDATA[").append(checkNull(status)).append("]]></status>\r\n"); empCode=checkNull(genericUtility.getColumnValue("emp_code", dom1));
System.out.println("IN ELSE CONDITION::::::::::"); System.out.println("Emp_Code: ["+empCode+"]");
site=checkNull(genericUtility.getColumnValue("site", dom1));
System.out.println("Site_Code: ["+site+"]");
descr=checkNull(genericUtility.getColumnValue("descr", dom1));
System.out.println("Description: ["+descr+"]");
prdCode=checkNull(genericUtility.getColumnValue("prd_code", dom1));
System.out.println("Prd_Code: ["+prdCode+"]");
status=checkNull(genericUtility.getColumnValue("status", dom1));
System.out.println("Status: ["+status+"]");
prdCodeAcc=checkNull(genericUtility.getColumnValue("prd_code__acc", dom1));
System.out.println("prd_code__acc: ["+prdCodeAcc+"]");
procDate=checkNull(genericUtility.getColumnValue("proc_date", dom1));
System.out.println("proc_Date: ["+procDate+"]");
procType=checkNull(genericUtility.getColumnValue("proc_type", dom1));
System.out.println("proc_type: ["+procType+"]");
tranId=checkNull(genericUtility.getColumnValue("tran_id", dom1));
System.out.println("tran_id: ["+tranId+"]");
System.out.println("Current column is[" + currentColumn + "]");
xmlString.append("<chg_date><![CDATA[").append(checkNull(chgDate)).append("]]></chg_date>\r\n");
xmlString.append("<chg_user><![CDATA[").append(checkNull(chgUser)).append("]]></chg_user>\r\n");
xmlString.append("<chg_term><![CDATA[").append(checkNull(chgTerm)).append("]]></chg_term>\r\n");
if((prdCodeAcc != null && prdCodeAcc.trim().length()>0 ) && status.trim().equalsIgnoreCase("P") )
{
System.out.println("IN IF CONDITION::::::::::");
xmlString.append("<status protect=\"1\"><![CDATA[").append(checkNull(status)).append("]]></status>\r\n");
}
else
{
xmlString.append("<status protect=\"0\"><![CDATA[").append(checkNull(status)).append("]]></status>\r\n");
System.out.println("IN ELSE CONDITION::::::::::");
}
}
//added emp_code itemchange by Varsha V on 24-08-18 [START] A17ESUN001
else if (currentColumn.trim().equalsIgnoreCase("emp_code"))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
site = ""; empName = "";
if(empCode != null && empCode.trim().length() > 0)
{
sql = "SELECT EMP_SITE, FN_GET_EMP_NAME( EMP_CODE,'X')AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
site = checkNull(rs.getString("EMP_SITE"));
empName = checkNull(rs.getString("EMP_NAME"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(site.trim().length() > 0 && !"null".equalsIgnoreCase(site) )
{
sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, site );
rs = pstmt.executeQuery();
if(rs.next())
{
siteDescr = checkNull( rs.getString( "DESCR" ) );
}
System.out.println("Site description::: [:" + siteDescr+ ":]" );
if( rs != null )
{
rs.close();
rs = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
}
}
xmlString.append("<name><![CDATA[").append(empName).append("]]></name>\r\n");
xmlString.append("<site><![CDATA[").append(site).append("]]></site>\r\n");
xmlString.append("<descr><![CDATA[").append(siteDescr).append("]]></descr>\r\n");
} }
} //Ended emp_code itemchange by Varsha V on 24-08-18 [End]
xmlString.append("</Detail1>\r\n"); xmlString.append("</Detail1>\r\n");
} }
} }
} }
...@@ -138,13 +587,36 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -138,13 +587,36 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
System.out.println("1st catch Exception::" + ex.getMessage()); System.out.println("1st catch Exception::" + ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
} }
finally
{
try {
if ( conn != null )
{
if ( rs != null )
{
rs.close();
rs = null;
}
if ( pstmt != null )
{
pstmt.close();
pstmt = null;
}
conn.close();
conn = null;
}
}
catch(Exception e)
{
System.out.println("[PayarrToProc][itemChanged]Exception ::"+e);
e.printStackTrace();
}
}
System.out.println("value of xmlString::::" + xmlString); System.out.println("value of xmlString::::" + xmlString);
xmlString.append("</Root>\r\n"); xmlString.append("</Root>\r\n");
System.out.println("xmlString....[" + xmlString.toString()); System.out.println("xmlString....[" + xmlString.toString());
return xmlString.toString(); return xmlString.toString();
} }
private String checkNull(String input) private String checkNull(String input)
{ {
if (input == null) if (input == null)
...@@ -156,7 +628,55 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -156,7 +628,55 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
} }
return input; return input;
} }
private String errorType(Connection conn, String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
if (rs.next())
{
msgType = rs.getString("MSG_TYPE");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch (Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
finally
{
try
{
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
return msgType;
} }
}
//Created by Suraj [20/3/15] [To create a payarr_to_proc transaction][Ends] //Created by Suraj [20/3/15] [To create a payarr_to_proc transaction][Ends]
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
...@@ -9,9 +10,13 @@ import javax.ejb.Local; ...@@ -9,9 +10,13 @@ import javax.ejb.Local;
import org.w3c.dom.Document; import org.w3c.dom.Document;
@Local @Local
public interface PayarrToProcLocal public interface PayarrToProcLocal extends ValidatorLocal
{ {
public String wfValData() throws RemoteException, ITMException; public String wfValData() throws RemoteException, ITMException;
//Added by Varsha V on 24-08-18
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
//Ended by Varsha V on 24-08-18
public String itemChanged() throws RemoteException, ITMException; public String itemChanged() throws RemoteException, ITMException;
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn,String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(String xmlString, String xmlString1,String xmlString2, 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; public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag,String xtraParams) throws RemoteException, ITMException;
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
...@@ -9,9 +10,13 @@ import javax.ejb.Remote; ...@@ -9,9 +10,13 @@ import javax.ejb.Remote;
import org.w3c.dom.Document; import org.w3c.dom.Document;
@Remote @Remote
public interface PayarrToProcRemote public interface PayarrToProcRemote extends ValidatorRemote
{ {
public String wfValData() throws RemoteException, ITMException ; public String wfValData() throws RemoteException, ITMException ;
//Added by Varsha V on 24-08-18
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
//Ended by Varsha V on 24-08-18
public String itemChanged() throws RemoteException, ITMException; public String itemChanged() throws RemoteException, ITMException;
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn,String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(String xmlString, String xmlString1,String xmlString2, 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; public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag,String xtraParams) throws RemoteException, ITMException;
......
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