Commit ec024a0b authored by vlagad's avatar vlagad

Migrate Pb Component to Java Component for adhoc Advance menu

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205215 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6fa77654
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.utility.BaseLogger;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class AdvancedAdd extends ValidatorEJB
{
E12GenericUtility genericUtility = new E12GenericUtility();
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 errString = "";
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);
}
errString = wfValData(dom,dom1,dom2,objContext,editFlag,xtraParams);
BaseLogger.log("3",null,null,"ErrString :" + errString);
}
catch(Exception e)
{
BaseLogger.log("0",null,null,"Exception :AdvancedAdd :wfValData(String xmlString):" + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
BaseLogger.log("3",null,null,"Returning from AdvancedAdd wfValData");
return errString;
}
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
BaseLogger.log("2",null,null," >>>>>>>>>>>>> wfValData <<<<<<<<<<<<< ");
String sql = "",empCode= "",prdCode = "",prd_code__adj="",errString = "",adCode = "",errorType = "",errCode = "";
String userId = null,paySite = "",childNodeName = null;
Connection conn = null;
Statement stmt = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
NodeList parentList = null;
NodeList childList = null;
Node parentNode = null;
Node childNode = null;
int counterChild = 0,noOfChilds = 0,currentFormNo = 0,cnt = 0;
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
FinCommon finCommon = new FinCommon();
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
try
{
BaseLogger.log("3",null,null,"In case 1 ::::::::");
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
conn = getConnection();
if(objContext != null && objContext.trim().length()>0)
{
currentFormNo = Integer.parseInt(objContext);
BaseLogger.log("3",null,null,"currentFormNo:::"+currentFormNo);
switch(currentFormNo)
{
case 1:
{
parentList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentList.item(0);
childList = parentNode.getChildNodes();
noOfChilds = childList.getLength();
BaseLogger.log("3",null,null,"noOfChilds == "+noOfChilds);
for(counterChild = 1; counterChild < noOfChilds; counterChild++)
{
childNode = childList.item(counterChild);
childNodeName = childNode.getNodeName();
BaseLogger.log("3",null,null,"childNodeName :: "+childNodeName);
if("tran_date".equalsIgnoreCase(childNodeName))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
String tranDate = checkNull(genericUtility.getColumnValue("tran_date", dom));
BaseLogger.log("3",null,null,"Employee Code is ::: ["+empCode+"] \t tran_date ::: ["+tranDate+"]");
sql = "select pay_site from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
paySite = checkNull(rs.getString("pay_site"));
BaseLogger.log("3",null,null,"paySite is :: "+paySite);
ValidatorEJB validatorEjb = new ValidatorEJB();
java.util.Date currDate = validatorEjb.getDateObject( tranDate );
BaseLogger.log("3",null,null,"currDate = " + currDate);
errCode = finCommon.nfCheckPeriod("ADM", currDate, paySite, conn);
if( errCode.length() > 0)
{
BaseLogger.log("3",null,null,"Error Code :: "+errCode);
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else
{
errCode = "VMEMP1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
else if("emp_code".equalsIgnoreCase(childNodeName))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
if( empCode.equalsIgnoreCase("") && empCode.length() == 0)
{
errCode = "VTADHADV01";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
BaseLogger.log("3",null,null,"Employee Code is ::: ["+empCode+"] ");
sql = "select count(*) from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
BaseLogger.log("3",null,null,"cnt is :: "+cnt);
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VMEMP1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else if("ad_code".equalsIgnoreCase(childNodeName))
{
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom));
BaseLogger.log("3",null,null,"AD CODE Code is ::: ["+adCode+"]");
sql = "select count(*) from allwdedn where ad_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, adCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
BaseLogger.log("3",null,null,"cnt is :: "+cnt);
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VMAD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else if ("prd_code__ded".equalsIgnoreCase(childNodeName))
{
prdCode = checkNull(genericUtility.getColumnValue("prd_code__ded", dom));
BaseLogger.log("3",null,null,"Period Code ::: ["+prdCode+"]");
sql = "select count(*) from period where code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, prdCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
BaseLogger.log("3",null,null,"cnt is :: "+cnt);
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTPRD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else if("prd_code__adj".equalsIgnoreCase(childNodeName))
{
//mval = dw_edit.getitemstring(1,fldname)
// mval1= dw_edit.getitemstring(1, "prd_code__ded")
prdCode = checkNull(genericUtility.getColumnValue("prd_code__ded", dom));
prd_code__adj = checkNull(genericUtility.getColumnValue("prd_code__adj", dom));
BaseLogger.log("3",null,null,"Period Code ::: ["+prd_code__adj+"]");
sql = "select count(*) as count from period where code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, prd_code__adj);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt("count");
}
BaseLogger.log("3",null,null,"cnt is :: "+cnt);
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errCode = "VTPRD1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else if(prd_code__adj.compareTo(prdCode) < 0)
{
errCode = "VTPRD2";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
else if("loan_amount".equalsIgnoreCase(childNodeName))
{
String loanAmt = "";
loanAmt = checkNull(genericUtility.getColumnValue("loan_amount", dom));
BaseLogger.log("3",null,null,"Load Amount................."+loanAmt);
if ( !"".equalsIgnoreCase(loanAmt) && Integer.parseInt(loanAmt) <= 0)
{
BaseLogger.log("3",null,null,"1..............");
errCode = "VTADHADV02";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
//End of Validation for Employee Code
}//end of case statement
}
break;
}
int errListSize = errList.size();
cnt = 0;
String errFldName = null;
if(errList != null && errListSize > 0)
{
for(cnt = 0; cnt < errListSize; cnt ++)
{
errCode = errList.get(cnt);
errFldName = errFields.get(cnt);
BaseLogger.log("3",null,null,"errCode .........." + errCode);
errString = getErrorString(errFldName, errCode, userId);
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(Exception e)
{
BaseLogger.log("0",null,null,"Exception :AdvancedAdd :wfValData(Document dom):" + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(stmt != null)
{
stmt.close();
stmt = null;
}
if(conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception e)
{
BaseLogger.log("0",null,null,"Closing Connection...........");
e.printStackTrace();
throw new ITMException(e);
}
}
errString = errStringXml.toString();
BaseLogger.log("0",null,null,"testing : final errString : " + errString);
return errString;
}
public String itemChanged(String xmlString, String xmlStringHdr, String xmlStringAll, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null, domHdr = null, domAll = null;
String valueXmlString = "";
try {
if (xmlString != null && xmlString.trim().length() > 0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlStringHdr != null && xmlStringHdr.trim().length() > 0)
{
domHdr = genericUtility.parseString(xmlStringHdr);
}
if (xmlStringAll != null && xmlStringAll.trim().length() > 0)
{
domAll = genericUtility.parseString(xmlStringAll);
}
valueXmlString = itemChanged(dom, domHdr, domAll, objContext, currentColumn, editFlag, xtraParams);
}
catch (Exception e)
{
BaseLogger.log("0",null,null,"Exception [" + this.getClass().getSimpleName() + "] : [itemChanged(S)] " + e.getMessage());
throw new ITMException(e);
}
return valueXmlString;
}
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
BaseLogger.log("2",null,null,"Inside itemChanged...........................412");
String mcode = "", prdCode = "";
String sql = "", adCode = "", empFname = "", empLname = "",descr="";
int currentFormNo = 0;
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
StringBuffer valueXmlString = new StringBuffer();
AdmCommon admCommon = new AdmCommon();
UtilMethods utils = new UtilMethods();
Timestamp toDate = null;
Timestamp relativeDate = null;
try
{
conn = getConnection();
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
BaseLogger.log("3",null,null,"[" + this.getClass().getSimpleName() + "] [itemChanged(D)]:currentFormNo:" + currentFormNo);
BaseLogger.log("3",null,null,"currentColumn:::::" + currentColumn);
valueXmlString = new StringBuffer("<?xml version=\"1.0\" encoding=''?>\r\n<Root>\r\n<header>\r\n<editFlag>");
valueXmlString.append(editFlag).append("</editFlag>\r\n</header>\r\n");
switch (currentFormNo)
{
case 1:
{
valueXmlString.append("<Detail1>\r\n");
if ("itm_default".equalsIgnoreCase(currentColumn))
{
BaseLogger.log("3",null,null," >>>>>>>>> itm_default <<<<<<<<< "+ xtraParams);
if( utils.pos(xtraParams, "prd_code") > 0 )
{
prdCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "prd_code"));
}
else
{
prdCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "mprd_codes"));
}
BaseLogger.log("3",null,null,"prdCode......................"+prdCode);
Calendar now = Calendar.getInstance();
SimpleDateFormat formatter = new SimpleDateFormat(CommonConstants.APPL_DATE_FORMAT);
String currentDate = formatter.format(now.getTime());
BaseLogger.log("3",null,null,"currentDate = " + currentDate);
adCode = admCommon.getEnv("999999", "ADHOC_ADV",conn);
sql = "select descr from allwdedn where ad_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, adCode);
rs = pstmt.executeQuery();
if (rs.next())
{
descr = checkNull(rs.getString("descr"));
}
BaseLogger.log("3",null,null,"descr is == "+descr);
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<prd_code__ded protect=\"0\"><![CDATA[" +prdCode+ "]]></prd_code__ded>\r\n");
valueXmlString.append("<ad_code protect=\"0\"><![CDATA[" +adCode.trim()+ "]]></ad_code>\r\n");
valueXmlString.append("<descr protect=\"1\"><![CDATA["+descr+"]]></descr>\r\n");
valueXmlString.append("<tran_date protect=\"1\"><![CDATA["+currentDate+"]]></tran_date>\r\n");
sql = "select to_date from period where code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, prdCode);
rs = pstmt.executeQuery();
if (rs.next())
{
toDate = rs.getTimestamp("to_date");
relativeDate = utils.RelativeDate(toDate, 1);
BaseLogger.log("3",null,null,"date2..................."+toDate);
BaseLogger.log("3",null,null,"relativeDate..................."+relativeDate);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
BaseLogger.log("3",null,null,"date == "+toDate);
String code = "";
sql = "select code from period where fr_date = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, relativeDate);
rs = pstmt.executeQuery();
if (rs.next())
{
code = rs.getString("code");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
BaseLogger.log("3",null,null,"prd_code__adj :: "+code);
valueXmlString.append("<prd_code__adj protect=\"0\"><![CDATA["+code+"]]></prd_code__adj>\r\n");
}
else if ("ad_code".equalsIgnoreCase(currentColumn))
{
BaseLogger.log("3",null,null," >>>>>>>>>> ad_code <<<<<<<<<<<");
mcode = checkNull(genericUtility.getColumnValue("ad_code", dom));
sql = "select descr from allwdedn where ad_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mcode);
rs = pstmt.executeQuery();
if (rs.next())
{
descr = checkNull(rs.getString("descr"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
BaseLogger.log("3",null,null,"ad_code descr is == "+descr);
valueXmlString.append("<descr protect=\"0\"><![CDATA["+descr+"]]></descr>\r\n");
}
else if ("emp_code".equalsIgnoreCase(currentColumn))
{
BaseLogger.log("3",null,null,">>>>>>>>>>>>>> emp_code <<<<<<<<<<<<<,");
mcode = checkNull(genericUtility.getColumnValue("emp_code", dom));
sql = "select pay_site, emp_lname, emp_fname from employee where emp_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mcode);
rs = pstmt.executeQuery();
String paySite = null;
if (rs.next())
{
paySite = checkNull(rs.getString("pay_site"));
empFname = checkNull(rs.getString("emp_lname"));
empLname = checkNull(rs.getString("emp_fname"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<pay_site protect=\"1\"><![CDATA["+paySite+"]]></pay_site>\r\n");
valueXmlString.append("<emp_lname protect=\"1\"><![CDATA["+empFname+"]]></emp_lname>\r\n");
valueXmlString.append("<emp_fname protect=\"1\"><![CDATA["+empLname+"]]></emp_fname>\r\n");
}
else if ("prd_code__ded".equalsIgnoreCase(currentColumn))
{
mcode = checkNull(genericUtility.getColumnValue("prd_code__ded", dom));
BaseLogger.log("3",null,null,"mcode................ "+mcode);
sql = "select to_date from period where code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mcode);
rs = pstmt.executeQuery();
if (rs.next())
{
toDate = rs.getTimestamp("to_date");
}
toDate = utils.RelativeDate(toDate, 1);
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
String code ="";
sql = "select code from period where fr_date = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, toDate);
rs = pstmt.executeQuery();
if (rs.next())
{
code = rs.getString(("code"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<prd_code__adj protect=\"0\"><![CDATA["+code+"]]></prd_code__adj>\r\n");
}
valueXmlString.append("</Detail1>\r\n");
}
break;
}
valueXmlString.append("</Root>\r\n");
}
catch (Exception e)
{
BaseLogger.log("0",null,null,"Exception in EJB["+this.getClass().getSimpleName()+"]:[" + e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try {
if(conn != null)
{
conn.close();
conn = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
BaseLogger.log("3",null,null,"Closed all Database Resource...!");
} catch (Exception e)
{
BaseLogger.log("0",null,null,"Exception in EJB["+this.getClass().getSimpleName()+"]::itemChanged::[" + e.getMessage()+"]");
throw new ITMException(e);
}
}
BaseLogger.log("2",null,null,"Itemchange ::==== ["+valueXmlString.toString()+"]");
return valueXmlString.toString();
}
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");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != 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;
}
private String checkNull(String input)
{
return input == null ? "" : input.trim();
}
}
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('advance_add','audit_trail','1','project_audit_trail',null,'0',to_date('04-12-07','DD-MM-RR'),'d ','Base45','2',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('advance_add','export_excel','1','export_excel',null,null,to_date('26-03-15','DD-MM-RR'),'danish ','Base143',null,null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('advance_add','post_item_change','1','poic_default_1',null,'0',to_date('04-12-07','DD-MM-RR'),'Ashis ','Server 1','2','WSR','nvo_bo_advance_add',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('advance_add','post_save','1','pos_advance_add',null,'0',to_date('23-02-15','DD-MM-RR'),'BASE ','BASE','2','JB','ibase.webitm.ejb.adm.AdvanceAddPos',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('advance_add','post_validate','1','post_gen_val',null,'0',to_date('04-12-07','DD-MM-RR'),'system ','system','2','JB','ibase.webitm.ejb.sys.GenValidate',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT) values ('advance_add','pre_validate','1','prv_default_1',null,'0',to_date('04-12-07','DD-MM-RR'),'Ashis ','Server 1','2','WSR','nvo_bo_advance_add',null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('poic_default_ejb','itemchanged','http://localhost:9090/axis/services/ValidatorService',null,'itemChanged','String','S',null,null,to_date('22-03-19','DD-MM-RR'),'BASE ','BASE',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION) values ('prv_default_ejb','prv_default_ejb','http://localhost:9090/axis/services/ValidatorService',null,'wfValData','String','S',null,null,to_date('22-03-19','DD-MM-RR'),'BASE ','BASE',null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,null,null,null,'JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,null,null,null,'ibase.webitm.ejb.adm.AdvancedAdd');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',3,'XML_DATA','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',4,'XML_DATA_1','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',5,'XML_DATA_ALL','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',6,'OBJ_CONTEXT','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',7,'FOCUSED_COLUMN','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',8,'EDIT_FLAG','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('poic_default_ejb',9,'XTRA_PARAMS','I',null,'S',null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',1,'COMPONENT_TYPE','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',2,'COMPONENT_NAME','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM','ibase.webitm.ejb.adm.AdvancedAdd');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',3,'XML_DATA','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',4,'XML_DATA_1','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',5,'XML_DATA_ALL','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',6,'OBJ_CONTEXT','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',7,'EDIT_FLAG','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('prv_default_ejb',8,'XTRA_PARAMS','I',null,'S',null,to_date('01-06-12','DD-MM-RR'),'SYSTEM','SYSTEM',null);
update system_events set SERVICE_CODE='prv_default_ejb', COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.AdvancedAdd' where OBJ_NAME='advance_add' and EVENT_CODE='pre_validate';
update system_events set SERVICE_CODE='poic_default_ejb',COMP_TYPE='JB',COMP_NAME='ibase.webitm.ejb.adm.AdvancedAdd' where OBJ_NAME='advance_add' and EVENT_CODE='post_item_change';
\ No newline at end of file
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