Commit a18918e3 authored by pbhosale's avatar pbhosale

* Poonam B changes done for Financial Entitywise Accounting Period obj_name: finent_acctprd

FinEntAcctPrd.java
w_finent_acctprd.sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205039 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a62c3816
......@@ -9,22 +9,20 @@ import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
/**
* Session Bean implementation class FinEntAcctPrd
*/
@Stateless
//@Stateless
public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote, FinEntAcctPrdLocal
{
// VALIDATION START
......@@ -39,7 +37,9 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
Document dom1 = null;
Document dom2 = null;
String errString = "";
GenericUtility genericUtility = GenericUtility.getInstance();
//Modified by POONAM on 24/06/2019.start
E12GenericUtility genericUtility = new E12GenericUtility();
//Modified by POONAM on 24/06/2019.End
try
{
if (xmlString != null && xmlString.trim().length() != 0)
......@@ -61,6 +61,8 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
System.out.println("Exception : FinEntAcctPrd : wfValData(String xmlString) : ==>" + e.getMessage());
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
return (errString);
}
......@@ -71,29 +73,33 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
int currentFormNo = 0, childNodeListLength = 0;
int currentFormNo = 0;
int childNodeListLength = 0;
String userId = "";
String childNodeName = null;
String errString = "";
String msgType = "";
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
SimpleDateFormat simpleDateFormat = null;
String msgType = "";
GenericUtility genericUtility = GenericUtility.getInstance();
//Modified by POONAM on 24/06/2019.Start
E12GenericUtility genericUtility = new E12GenericUtility();
//Modified by POONAM on 24/06/2019.End
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
try
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
//Modified by POONAM on 24/06/2019.Start
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//conn.setAutoCommit(false);
conn=getConnection();
//Modified by POONAM on 24/06/2019.End
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
if (objContext != null && objContext.trim().length() > 0)
......@@ -102,227 +108,331 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
}
switch (currentFormNo)
{
case 1:
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for (int ctr = 0; ctr < childNodeListLength; ctr++)
case 1:
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
for (int ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
if (childNode.getNodeType() != Node.ELEMENT_NODE)
{
continue;
}
childNodeName = childNode.getNodeName();
System.out.println("childNodeName.editFlag." + childNodeName + ".." + editFlag);
if (childNodeName.equalsIgnoreCase("fin_entity"))
{
childNode = childNodeList.item(ctr);
if (childNode.getNodeType() != Node.ELEMENT_NODE)
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
// FIN_ENTITY is mandatory
if ((finEnt == null || finEnt.trim().length() == 0))
{
continue;
}
childNodeName = childNode.getNodeName();
System.out.println("childNodeName.editFlag." + childNodeName + ".." + editFlag);
System.out.println("fin_entity is empty");
errList.add("VMFENACP01");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP01");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
if (childNodeName.equalsIgnoreCase("fin_entity"))
else
{
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
// FIN_ENTITY is mandatory
if (finEnt.length() == 0)
// FIN_ENTITY must be present in FINENT table.
int cnt = 0;
String finent = checkNull(genericUtility.getColumnValue("fin_entity", dom));
System.out.println("fin_entity invalid");
String sql = " select count(1) as RowCount from finent where fin_entity = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finent);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("fin_entity is empty");
if (cnt < 1)
{
System.out.println("fin_entity error message");
errList.add("VMFENACP01");
errList.add("VMFENACP02");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP01");
msgType = errorType(conn, "VMFENACP02");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if (childNodeName.equalsIgnoreCase("acct_prd"))
{
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
else
// ACCT_PRD is mandatory
if (acctPrd.length() == 0)
{
errList.add("VMFENACP03");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP03");
if (msgType.equalsIgnoreCase("E"))
{
// FIN_ENTITY must be present in FINENT table.
int cnt = 0;
String finent = checkNull(genericUtility.getColumnValue("fin_entity", dom));
break;
}
}
System.out.println("fin_entity invalid");
// ACCT_PRD must be present in ACCTPRD table.
else
{
int cnt = 0;
String sql = " select count(1) as RowCount from finent where fin_entity = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finent);
rs = pstmt.executeQuery();
String sql = " select count(1) as RowCount from acctprd where code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, acctPrd);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (cnt < 1)
{
errList.add("VMFENACP04");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP04");
if (msgType.equalsIgnoreCase("E"))
{
pstmt.close();
pstmt = null;
break;
}
}
}
if (cnt < 1)
{
System.out.println("fin_entity error message");
// FIN_ENTITY AND ACCT_PRD SHOULD NOT EXIST IN FINENT_ACCTPRD TABLE
if (editFlag.equalsIgnoreCase("A"))
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
errList.add("VMFENACP02");
errFields.add(childNodeName.toLowerCase());
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
rs = pstmt.executeQuery();
msgType = errorType(conn, "VMFENACP02");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
}
else if (childNodeName.equalsIgnoreCase("acct_prd"))
{
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
// ACCT_PRD is mandatory
if (acctPrd.length() == 0)
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
errList.add("VMFENACP03");
if (cnt > 0)
{
errList.add("VMFENACP05");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP03");
msgType = errorType(conn, "VMFENACP05");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
// ACCT_PRD must be present in ACCTPRD table.
else
}
}
else if (childNodeName.equalsIgnoreCase("descr"))
{
String descr = checkNull(genericUtility.getColumnValue("descr", dom));
// DESCR is mandatory
if (descr.length() == 0)
{
errList.add("VMFENACP06");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP06");
if (msgType.equalsIgnoreCase("E"))
{
int cnt = 0;
break;
}
}
}
String sql = " select count(1) as RowCount from acctprd where code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, acctPrd);
rs = pstmt.executeQuery();
else if (childNodeName.equalsIgnoreCase("fr_date"))
{
String frDate = checkNull(genericUtility.getColumnValue("fr_date", dom));
String toDate = checkNull(genericUtility.getColumnValue("to_date", dom));
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
java.sql.Timestamp frDateSql = null;
try
{
frDateSql = Timestamp.valueOf(genericUtility.getValidDateTimeString(frDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()));
}
catch(Exception e)
{
errList.add("VMFENACP07");
errFields.add(childNodeName.toLowerCase());
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
msgType = errorType(conn, "VMFENACP07");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
throw new ITMException(e);
}
if (cnt < 1)
{
errList.add("VMFENACP04");
errFields.add(childNodeName.toLowerCase());
java.sql.Timestamp toDateSql = null;
try
{
toDateSql = Timestamp.valueOf(genericUtility.getValidDateTimeString(toDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()));
}
catch(Exception e)
{
errList.add("VMFENACP09");
errFields.add("to_date");
msgType = errorType(conn, "VMFENACP04");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
msgType = errorType(conn, "VMFENACP09");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
// FIN_ENTITY AND ACCT_PRD SHOULD NOT EXIST IN FINENT_ACCTPRD TABLE
if (editFlag.equalsIgnoreCase("A"))
}
// FR_DATE is mandatory
if (frDate.length() == 0)
{
errList.add("VMFENACP07");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP07");
if (msgType.equalsIgnoreCase("E"))
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
break;
}
}
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
// FR_DATE SHOULD NOT OVERLAP EXISTING ACCOUNT PERIOD
else if(simpleDateFormat.parse(frDate).compareTo(simpleDateFormat.parse(toDate)) < 0)
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
if (cnt > 0)
{
errList.add("VMFENACP05");
errFields.add(childNodeName.toLowerCase());
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((fr_date <= ? and to_date >= ?) or ( fr_date >= ? and to_date <= ?))";
System.out.println("sql for overlap from_date : " + sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, frDateSql);
pstmt.setTimestamp(4, frDateSql);
pstmt.setTimestamp(5, frDateSql);
pstmt.setTimestamp(6, toDateSql);
msgType = errorType(conn, "VMFENACP05");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
System.out.println("sql for overlap to_date : " + sql);
rs = pstmt.executeQuery();
System.out.println("fin_entity : " + finEnt);
System.out.println("fr_date : " + frDate);
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
}
else if (childNodeName.equalsIgnoreCase("descr"))
{
String descr = checkNull(genericUtility.getColumnValue("descr", dom));
// DESCR is mandatory
if (descr.length() == 0)
if (rs != null)
{
errList.add("VMFENACP06");
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (cnt > 0)
{
errList.add("VMFENACP08");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP06");
if (msgType.equalsIgnoreCase("E"))
msgType = errorType(conn, "VMFENACP08");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
else if (childNodeName.equalsIgnoreCase("fr_date"))
}
else if (childNodeName.equalsIgnoreCase("to_date"))
{
String toDate = checkNull(genericUtility.getColumnValue("to_date", dom));
System.out.println("Inside childNode to_date :: " + childNodeName + toDate);
// TO_DATE is mandatory
if (toDate.length() == 0)
{
String frDate = checkNull(genericUtility.getColumnValue("fr_date", dom));
String toDate = checkNull(genericUtility.getColumnValue("to_date", dom));
java.sql.Timestamp frDateSql = null;
try
errList.add("VMFENACP09");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP09");
if (msgType.equalsIgnoreCase("E"))
{
frDateSql = Timestamp.valueOf(genericUtility.getValidDateTimeString(frDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()));
break;
}
catch(Exception e)
{
errList.add("VMFENACP07");
errFields.add(childNodeName.toLowerCase());
}
else
{
String frDate = checkNull(genericUtility.getColumnValue("fr_date", dom));
msgType = errorType(conn, "VMFENACP07");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
java.sql.Timestamp toDateSql = null;
try
{
......@@ -331,51 +441,49 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
catch(Exception e)
{
errList.add("VMFENACP09");
errFields.add("to_date");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP09");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
throw new ITMException(e);
}
// FR_DATE is mandatory
if (frDate.length() == 0)
// TO_DATE SHOULD BE GREATER THAN FR_DATE
if (simpleDateFormat.parse(frDate).compareTo(simpleDateFormat.parse(toDate)) >= 0)
{
errList.add("VMFENACP07");
errList.add("VMFENACP10");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP07");
if (msgType.equalsIgnoreCase("E"))
msgType = errorType(conn, "VMFENACP10");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
// FR_DATE SHOULD NOT OVERLAP EXISTING ACCOUNT PERIOD
else if(simpleDateFormat.parse(frDate).compareTo(simpleDateFormat.parse(toDate)) < 0)
// TO_DATE SHOULD NOT OVERLAP EXISTING ACCOUNT PERIOD
else
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((fr_date <= ? and to_date >= ?) or ( fr_date >= ? and to_date <= ?))";
System.out.println("sql for overlap from_date : " + sql);
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((fr_date <= ? and to_date >= ?) or (fr_date >= ? and to_date <= ?)) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, frDateSql);
pstmt.setTimestamp(4, frDateSql);
pstmt.setTimestamp(5, frDateSql);
pstmt.setTimestamp(3, toDateSql);
pstmt.setTimestamp(4, toDateSql);
pstmt.setTimestamp(5, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(frDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(6, toDateSql);
System.out.println("sql for overlap to_date : " + sql);
rs = pstmt.executeQuery();
System.out.println("fin_entity : " + finEnt);
System.out.println("fr_date : " + frDate);
System.out.println("to_date : " + toDate);
rs = pstmt.executeQuery();
if (rs.next())
{
......@@ -393,345 +501,256 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
pstmt = null;
}
if (cnt > 0)
if (cnt > 0)
{
errList.add("VMFENACP08");
errList.add("VMFENACP11");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP08");
if (msgType.equalsIgnoreCase("E"))
msgType = errorType(conn, "VMFENACP11");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
else if (childNodeName.equalsIgnoreCase("to_date"))
}
else if (childNodeName.equalsIgnoreCase("it_fr_date"))
{
String itFrDate = checkNull(genericUtility.getColumnValue("it_fr_date", dom));
String itToDate = checkNull(genericUtility.getColumnValue("it_to_date", dom));
System.out.println("it_fr_date inside it_fr_date :: " + itFrDate);
System.out.println("it_to_date inside it_fr_date :: " + itToDate);
if(itFrDate != null && itFrDate.length() != 0)
{
String toDate = checkNull(genericUtility.getColumnValue("to_date", dom));
System.out.println("Inside childNode to_date :: " + childNodeName + toDate);
// TO_DATE is mandatory
if (toDate.length() == 0)
// IT_TO_DATE IS MANDATORY IF IT_FR_DATE IS SPECIFIED
if (itToDate.length() == 0)
{
errList.add("VMFENACP09");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP09");
errList.add("VMFENACP12");
errFields.add("it_to_date");
System.out.println("it_to_date cannot be left blank...");
System.out.println("it_fr_date :: " + itFrDate + "it_to_date :: " + itToDate);
msgType = errorType(conn, "VMFENACP12");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
else
//IT_FR_DATE SHOULD NOT OVERLAP EXISTING IT ACCOUNT PERIOD
else if(simpleDateFormat.parse(itFrDate).compareTo(simpleDateFormat.parse(itToDate)) < 0)
{
String frDate = checkNull(genericUtility.getColumnValue("fr_date", dom));
java.sql.Timestamp toDateSql = null;
try
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((it_fr_date <= ? and it_to_date >= ?) or (it_fr_date >= ? and it_to_date <= ?))";
System.out.println("sql for overlap from_date : " + sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(4, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(5, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(6, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
System.out.println("sql for overlap it_fr_date : " + sql);
rs = pstmt.executeQuery();
System.out.println("fin_entity : " + finEnt);
System.out.println("fr_date : " + itFrDate);
if (rs.next())
{
toDateSql = Timestamp.valueOf(genericUtility.getValidDateTimeString(toDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()));
cnt = rs.getInt("RowCount");
}
catch(Exception e)
{
errList.add("VMFENACP09");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP09");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
if (rs != null)
{
rs.close();
rs = null;
}
// TO_DATE SHOULD BE GREATER THAN FR_DATE
if (simpleDateFormat.parse(frDate).compareTo(simpleDateFormat.parse(toDate)) >= 0)
if (pstmt != null)
{
errList.add("VMFENACP10");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP10");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
pstmt.close();
pstmt = null;
}
// TO_DATE SHOULD NOT OVERLAP EXISTING ACCOUNT PERIOD
else
if (cnt > 0)
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((fr_date <= ? and to_date >= ?) or (fr_date >= ? and to_date <= ?)) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, toDateSql);
pstmt.setTimestamp(4, toDateSql);
pstmt.setTimestamp(5, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(frDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(6, toDateSql);
System.out.println("sql for overlap to_date : " + sql);
System.out.println("fin_entity : " + finEnt);
System.out.println("to_date : " + toDate);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
errList.add("VMFENACP13");
errFields.add(childNodeName.toLowerCase());
if (cnt > 0)
msgType = errorType(conn, "VMFENACP13");
if (msgType.equalsIgnoreCase("E"))
{
errList.add("VMFENACP11");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP11");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
break;
}
}
}
}
else if (childNodeName.equalsIgnoreCase("it_fr_date"))
{
String itFrDate = checkNull(genericUtility.getColumnValue("it_fr_date", dom));
String itToDate = checkNull(genericUtility.getColumnValue("it_to_date", dom));
}
else if (childNodeName.equalsIgnoreCase("it_to_date"))
{
String itToDate = checkNull(genericUtility.getColumnValue("it_to_date", dom));
System.out.println("it_fr_date inside it_fr_date :: " + itFrDate);
System.out.println("it_to_date inside it_fr_date :: " + itToDate);
if(itToDate != null && itToDate.length() > 0)
{
String itFrDate = checkNull(genericUtility.getColumnValue("it_fr_date", dom));
if(itFrDate != null && itFrDate.length() != 0)
// TO_DATE SHOULD BE GREATER THAN FR_DATE
if (simpleDateFormat.parse(itFrDate).compareTo(simpleDateFormat.parse(itToDate)) >= 0)
{
// IT_TO_DATE IS MANDATORY IF IT_FR_DATE IS SPECIFIED
if (itToDate.length() == 0)
{
errList.add("VMFENACP12");
errFields.add("it_to_date");
System.out.println("it_to_date cannot be left blank...");
System.out.println("it_fr_date :: " + itFrDate + "it_to_date :: " + itToDate);
msgType = errorType(conn, "VMFENACP12");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
errList.add("VMFENACP14");
errFields.add(childNodeName.toLowerCase());
//IT_FR_DATE SHOULD NOT OVERLAP EXISTING IT ACCOUNT PERIOD
else if(simpleDateFormat.parse(itFrDate).compareTo(simpleDateFormat.parse(itToDate)) < 0)
msgType = errorType(conn, "VMFENACP14");
if (msgType.equalsIgnoreCase("E"))
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((it_fr_date <= ? and it_to_date >= ?) or (it_fr_date >= ? and it_to_date <= ?))";
System.out.println("sql for overlap from_date : " + sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(4, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(5, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(6, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
System.out.println("sql for overlap it_fr_date : " + sql);
rs = pstmt.executeQuery();
System.out.println("fin_entity : " + finEnt);
System.out.println("fr_date : " + itFrDate);
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (cnt > 0)
{
errList.add("VMFENACP13");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP13");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
break;
}
}
}
else if (childNodeName.equalsIgnoreCase("it_to_date"))
{
String itToDate = checkNull(genericUtility.getColumnValue("it_to_date", dom));
if(itToDate != null && itToDate.length() > 0)
//IT_TO_DATE SHOULD NOT OVERLAP EXISTING IT ACCOUNT PERIOD
else
{
String itFrDate = checkNull(genericUtility.getColumnValue("it_fr_date", dom));
// TO_DATE SHOULD BE GREATER THAN FR_DATE
if (simpleDateFormat.parse(itFrDate).compareTo(simpleDateFormat.parse(itToDate)) >= 0)
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((it_fr_date <= ? and it_to_date >= ?) or (it_fr_date >=? and it_to_date <= ?))";
System.out.println("sql for overlap from_date : " + sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(4, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(5, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(6, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
System.out.println("sql for overlap it_to_date : " + sql);
rs = pstmt.executeQuery();
System.out.println("fin_entity : " + finEnt);
System.out.println("fr_date : " + itToDate);
if (rs.next())
{
errList.add("VMFENACP14");
errFields.add(childNodeName.toLowerCase());
cnt = rs.getInt("RowCount");
}
msgType = errorType(conn, "VMFENACP14");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
if (rs != null)
{
rs.close();
rs = null;
}
//IT_TO_DATE SHOULD NOT OVERLAP EXISTING IT ACCOUNT PERIOD
else
if (pstmt != null)
{
int cnt = 0;
String finEnt = checkNull(genericUtility.getColumnValue("fin_entity", dom));
String acctPrd = checkNull(genericUtility.getColumnValue("acct_prd", dom));
String sql = " select count(1) as RowCount from finent_acctprd where fin_entity = ? and acct_prd <> ? and ((it_fr_date <= ? and it_to_date >= ?) or (it_fr_date >=? and it_to_date <= ?))";
System.out.println("sql for overlap from_date : " + sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEnt);
pstmt.setString(2, acctPrd);
pstmt.setTimestamp(3, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(4, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(5, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itFrDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
pstmt.setTimestamp(6, java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(itToDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat())));
System.out.println("sql for overlap it_to_date : " + sql);
rs = pstmt.executeQuery();
System.out.println("fin_entity : " + finEnt);
System.out.println("fr_date : " + itToDate);
if (rs.next())
{
cnt = rs.getInt("RowCount");
}
pstmt.close();
pstmt = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if (cnt > 0)
{
errList.add("VMFENACP15");
errFields.add(childNodeName.toLowerCase());
if (cnt > 0)
msgType = errorType(conn, "VMFENACP15");
if (msgType.equalsIgnoreCase("E"))
{
errList.add("VMFENACP15");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMFENACP15");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
break;
}
}
}
}
}
break;
}
break;
}
int errListSize = errList.size();
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
//ERRORLIST
if (errList != null && errListSize > 0)
int errListSize = errList.size();
StringBuffer errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
// Modified BY POONAM on 24/06/2019.Start
ITMDBAccessEJB itmdbAccessEJB =new ITMDBAccessEJB();
//Modified BY POONAM on 24/06/2019.END
//ERRORLIST
if (errList != null && errListSize > 0)
{
for (int cnt = 0; cnt < errListSize; cnt++)
{
for (int cnt = 0; cnt < errListSize; cnt++)
String errCode = (String) errList.get(cnt);
String errFldName = (String) errFields.get(cnt);
System.out.println("errCode .........." + errCode);
//Modified BY POONAM on 24/06/2019.Start
errString =itmdbAccessEJB.getErrorString(errFldName, errCode, userId, "", conn);
//Modified BY POONAM on 24/06/2019.END
System.out.println("errString is : ::::>>>> " + errString);
msgType = errorType(conn, errCode);
if (errString.length() > 0)
{
String errCode = (String) errList.get(cnt);
String errFldName = (String) errFields.get(cnt);
System.out.println("errCode .........." + errCode);
errString = getErrorString(errFldName, errCode, userId);
System.out.println("errString is : ::::>>>> " + errString);
msgType = 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);
System.out.println("errStringXml .........." + errStringXml);
errString = "";
}
if (msgType.equalsIgnoreCase("E"))
{
break;
}
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);
System.out.println("errStringXml .........." + errStringXml);
errString = "";
}
if (msgType.equalsIgnoreCase("E"))
{
break;
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
else
{
errStringXml = new StringBuffer("");
}
errString = errStringXml.toString();
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
catch (Exception e)
else
{
System.out.println("Exception ::" + e);
e.printStackTrace();
errString = e.getMessage();
}
finally
errStringXml = new StringBuffer("");
}
errString = errStringXml.toString();
}
catch (Exception e)
{
System.out.println("Exception ::" + e);
e.printStackTrace();
errString = e.getMessage();
throw new ITMException(e);
}
finally
{
try
{
try
{
if (conn != null)
{
conn.close();
}
if (conn != null)
{
conn.close();
conn = null;
}
catch (Exception d)
}
if (rs != null)
{
rs.close();
rs=null;
}
if (pstmt != null)
{
d.printStackTrace();
pstmt.close();
}
}
catch (Exception d)
{
d.printStackTrace();
throw new ITMException(d);
}
System.out.println("ErrString ::" + errString);
return errString;
}// END OF VALIDATION
}
System.out.println("ErrString ::" + errString);
return errString;
}// END OF VALIDATION
// ITEMCHANGE START
public String itemChanged() throws RemoteException, ITMException
......@@ -765,14 +784,14 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
catch (Exception e)
{
System.out.println("Exception : FinEntAcctPrd : [itemChanged(String,String)] :==>\n" + 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
{
GenericUtility genericUtility = null;
E12GenericUtility genericUtility = null;
Connection conn = null;
int currentFormNo = 0;
......@@ -793,10 +812,14 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
try
{
valueXmlString = new StringBuffer();
genericUtility = new GenericUtility();
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
genericUtility = new E12GenericUtility();
//Modified by Poonam on 26/06/2019.start
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//conn.setAutoCommit(false);
//Modified by Poonam on 26/06/2019.End
conn=getConnection();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
valueXmlString = new StringBuffer(
......@@ -810,46 +833,21 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
switch (currentFormNo)
{
case 1:
valueXmlString.append("<Detail1>");
if (currentColumn.trim().equalsIgnoreCase("itm_default"))
{
loginSiteCode = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
if (loginSiteCode != null && loginSiteCode.trim().length() > 0)
{
sql = " select a.fin_entity as fin_entity, b.descr as descr from site a , finent b where a.site_code = ? and b.fin_entity = a.fin_entity ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSiteCode);
rs = pstmt.executeQuery();
if (rs.next())
{
finDescr = rs.getString("descr") == null ? "" : rs.getString("descr");
finEntity = rs.getString("fin_entity") == null ? "" : rs.getString("fin_entity");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<fin_entity>").append("<![CDATA[" + finEntity + "]]>").append("</fin_entity>\r\n");
valueXmlString.append("<finent_descr>").append("<![CDATA[" + finDescr + "]]>").append("</finent_descr>\r\n");
}
}
else if (currentColumn.trim().equalsIgnoreCase("fin_entity"))
case 1:
valueXmlString.append("<Detail1>");
if (currentColumn.trim().equalsIgnoreCase("itm_default"))
{
loginSiteCode = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
if (loginSiteCode != null && loginSiteCode.trim().length() > 0)
{
finEnt = genericUtility.getColumnValue("fin_entity", dom);
query = " select descr from finent where fin_entity = ? ";
pstmt = conn.prepareStatement(query);
pstmt.setString(1, finEnt);
sql = " select a.fin_entity as fin_entity, b.descr as descr from site a , finent b where a.site_code = ? and b.fin_entity = a.fin_entity ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSiteCode);
rs = pstmt.executeQuery();
if (rs.next())
{
finDescr = rs.getString(1) == null ? "" : rs.getString(1);
finDescr = rs.getString("descr") == null ? "" : rs.getString("descr");
finEntity = rs.getString("fin_entity") == null ? "" : rs.getString("fin_entity");
}
if (rs != null)
{
......@@ -861,79 +859,104 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
pstmt.close();
pstmt = null;
}
valueXmlString.append("<finent_descr>").append("<![CDATA[" + finDescr + "]]>").append("</finent_descr>");
}
else if (currentColumn.trim().equalsIgnoreCase("acct_prd"))
valueXmlString.append("<fin_entity>").append("<![CDATA[" + finEntity + "]]>").append("</fin_entity>\r\n");
valueXmlString.append("<finent_descr>").append("<![CDATA[" + finDescr + "]]>").append("</finent_descr>\r\n");
}
}
else if (currentColumn.trim().equalsIgnoreCase("fin_entity"))
{
finEnt = genericUtility.getColumnValue("fin_entity", dom);
query = " select descr from finent where fin_entity = ? ";
pstmt = conn.prepareStatement(query);
pstmt.setString(1, finEnt);
rs = pstmt.executeQuery();
if (rs.next())
{
int itDateCnt = 0;
acctPrd = genericUtility.getColumnValue("acct_prd", dom);
query = " select descr, fr_date, to_date, it_fr_date, it_to_date, case when it_fr_date is not null and it_to_date is not null then 1 else 0 end as itDateCnt from acctprd where code = ? ";
pstmt = conn.prepareStatement(query);
pstmt.setString(1, acctPrd);
rs = pstmt.executeQuery();
if (rs.next())
{
acctDescr = rs.getString("descr") == null ? "" : rs.getString("descr");
frDateDB = rs.getDate("fr_date");
toDateDB = rs.getDate("to_date");
itFrDateDB = rs.getDate("it_fr_date");
itToDateDB = rs.getDate("it_to_date");
itDateCnt = rs.getInt("itDateCnt");
frDate = simpleDateFormat.format(frDateDB);
System.out.println(" from_date :: " + frDate);
toDate = simpleDateFormat.format(toDateDB);
System.out.println(" to_date :: " + toDate);
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<descr>").append("<![CDATA[" + acctDescr + "]]>").append("</descr>");
finDescr = rs.getString(1) == null ? "" : rs.getString(1);
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<finent_descr>").append("<![CDATA[" + finDescr + "]]>").append("</finent_descr>");
}
else if (currentColumn.trim().equalsIgnoreCase("acct_prd"))
{
int itDateCnt = 0;
acctPrd = genericUtility.getColumnValue("acct_prd", dom);
query = " select descr, fr_date, to_date, it_fr_date, it_to_date, case when it_fr_date is not null and it_to_date is not null then 1 else 0 end as itDateCnt from acctprd where code = ? ";
pstmt = conn.prepareStatement(query);
pstmt.setString(1, acctPrd);
rs = pstmt.executeQuery();
if (rs.next())
{
acctDescr = rs.getString("descr") == null ? "" : rs.getString("descr");
frDateDB = rs.getDate("fr_date");
toDateDB = rs.getDate("to_date");
itFrDateDB = rs.getDate("it_fr_date");
itToDateDB = rs.getDate("it_to_date");
itDateCnt = rs.getInt("itDateCnt");
frDate = simpleDateFormat.format(frDateDB);
System.out.println(" from_date :: " + frDate);
valueXmlString.append("<fr_date>").append("<![CDATA[" + frDate + "]]>").append("</fr_date>");
toDate = simpleDateFormat.format(toDateDB);
System.out.println(" to_date :: " + toDate);
valueXmlString.append("<to_date>").append("<![CDATA[" + toDate + "]]>").append("</to_date>");
if(itDateCnt > 0)
{
itFrDate = simpleDateFormat.format(itFrDateDB);
System.out.println(" it_from_date :: " + itFrDate);
itToDate = simpleDateFormat.format(itToDateDB);
System.out.println(" it_to_date :: " + itToDate);
valueXmlString.append("<it_fr_date>").append("<![CDATA[" + itFrDate + "]]>").append("</it_fr_date>");
valueXmlString.append("<it_to_date protect=\"0\">").append("<![CDATA[" + itToDate + "]]>").append("</it_to_date>");
}
else
{
valueXmlString.append("<it_fr_date>").append("<![CDATA[" + itFrDate + "]]>").append("</it_fr_date>");
valueXmlString.append("<it_to_date protect=\"1\">").append("<![CDATA[" + itToDate + "]]>").append("</it_to_date>");
}
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
valueXmlString.append("<descr>").append("<![CDATA[" + acctDescr + "]]>").append("</descr>");
System.out.println(" from_date :: " + frDate);
valueXmlString.append("<fr_date>").append("<![CDATA[" + frDate + "]]>").append("</fr_date>");
System.out.println(" to_date :: " + toDate);
valueXmlString.append("<to_date>").append("<![CDATA[" + toDate + "]]>").append("</to_date>");
if(itDateCnt > 0)
{
itFrDate = simpleDateFormat.format(itFrDateDB);
System.out.println(" it_from_date :: " + itFrDate);
itToDate = simpleDateFormat.format(itToDateDB);
System.out.println(" it_to_date :: " + itToDate);
valueXmlString.append("<it_fr_date>").append("<![CDATA[" + itFrDate + "]]>").append("</it_fr_date>");
valueXmlString.append("<it_to_date protect=\"0\">").append("<![CDATA[" + itToDate + "]]>").append("</it_to_date>");
}
else
{
valueXmlString.append("<it_fr_date>").append("<![CDATA[" + itFrDate + "]]>").append("</it_fr_date>");
valueXmlString.append("<it_to_date protect=\"1\">").append("<![CDATA[" + itToDate + "]]>").append("</it_to_date>");
}
}
else if (currentColumn.trim().equalsIgnoreCase("it_fr_date"))
{
itFrDate = genericUtility.getColumnValue("it_fr_date", dom);
if (itFrDate != null)
{
itToDate = checkNull(genericUtility.getColumnValue("it_to_date", dom));
valueXmlString.append("<it_to_date protect=\"0\">").append("<![CDATA[" + itToDate + "]]>").append("</it_to_date>");
}
else if (currentColumn.trim().equalsIgnoreCase("it_fr_date"))
else
{
itFrDate = genericUtility.getColumnValue("it_fr_date", dom);
if (itFrDate != null)
{
itToDate = checkNull(genericUtility.getColumnValue("it_to_date", dom));
valueXmlString.append("<it_to_date protect=\"0\">").append("<![CDATA[" + itToDate + "]]>").append("</it_to_date>");
}
else
{
valueXmlString.append("<it_to_date protect=\"1\">").append("").append("</it_to_date>");
}
valueXmlString.append("<it_to_date protect=\"1\">").append("").append("</it_to_date>");
}
}
valueXmlString.append("</Detail1>");
valueXmlString.append("</Detail1>");
break;
}
valueXmlString.append("</Root>");
}
break;
}
valueXmlString.append("</Root>");
}
catch (Exception e)
{
e.printStackTrace();
......@@ -949,9 +972,21 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
conn.close();
conn = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
} catch (Exception e1)
{
e1.printStackTrace();
throw new ITMException(e1);
}
}
System.out.println("valueXmlString:::::" + valueXmlString.toString());
......@@ -986,6 +1021,7 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
{
try
{
if (rs != null)
{
rs.close();
......@@ -996,7 +1032,7 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
pstmt.close();
pstmt = null;
}
}
}
catch (Exception e)
{
e.printStackTrace();
......@@ -1005,7 +1041,7 @@ public class FinEntAcctPrd extends ValidatorEJB implements FinEntAcctPrdRemote,
}
return msgType;
}
private String checkNull(String input)
{
if (input == null)
......
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION) values ('HRM',2,36,0,0,0,'w_finent_acctprd','Financial Entitywise Accounting Period','Financial Entitywise Accounting Period','HRM.2.36.0.0.0','e12_logo.gif',null,null,'T',to_date('2015-10-11','RRRR-MM-DD'),'BASE ','AALI ',null,null,null);
Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,CONFIRM_DATE_COL,CONFIRM_BY_COL,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,DEFAULT_DATA_ROW,IN_WF_VAL,IN_WF_COL,CANCEL_VAL,CANCEL_COL,THUMB_ALT_COL,THUMB_IMAGE_COL,THUMB_OBJ,ATTACH_COUNT_MIN,FUNCTION_TYPE,COMPL_ACTION,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,STATUS_COL,ENABLE_EDITOR,OFFLINE_OPT,CLOSE_COL,CLOSE_VAL) values ('w_finent_acctprd','2','2','M','seq10',null,null,null,null,null,'N',to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE ','0',null,null,null,null,null,null,null,null,null,'fin_entity,acct_prd','0','0','N',null,null,null,null,null,null,null,null,'0','FINENT_ACCTPRD','ADM',null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'Y',null,null,null,null,null,null,null,null,null,null,null,null,null,null,'compact',null,null,null,null,null,null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,SCAN_FLAG,SCAN_METADATA,AUTO_ACCEPT_SCAN,PROPERTY_INFO,SCAN_DELIMITER,EXT_COM,EXT_METADATA,EXT_SETUP,AFTER_SAVE,COLUMN_ON_SAVE,AUTO_ACCEPT_WEIGHDATA,RATE_COL,QTY_COL,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,FREEZE_COL_POS,DEFAULT_ROW_CNT,IS_MANDATORY,TRAN_ID_COL,KEY_INFO,SELECTION_OPT,THUMB_OBJ,THUMB_IMAGE_COL,FORM_NAME,FORM_ICON,THUMB_ALT_COL) values ('w_finent_acctprd','Account Period','d_finent_acctprd11','d_finent_acctprd21',null,null,null,null,'1',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',1,'ibase/resource/objaction/add.svg','Add New','a','a','A','Add','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',3,'ibase/resource/objaction/edit.svg','Edit','a','a','E','Edit','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2','000',null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',8,'ibase/resource/objaction/copyTransaction.svg','Adding New','a','a','A','Copy Transaction','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,'1',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',39,'ibase/resource/objaction/exprtExl.svg','Export To Excel','a','a','B','Export2XLS','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',41,'ibase/resource/objaction/add.svg','Adding New','a','a','A','Add','2',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,'0',null,null,null,null,null,null,'4',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',42,'ibase/resource/objaction/edit.svg','Editing Existing Record','a','a','E','Edit','2',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'4','000',null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('finent_acctprd',43,'ibase/resource/objaction/email.svg','Email Template','a','a','R','Email','2','6',null,'U',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'4',null,null);
Insert into OBJ_LINKS (OBJ_NAME,FORM_NO,FIELD_NAME,TARGET_OBJ_NAME,LINK_FORM_NAME,LINK_TITLE,LINK_URI,LINK_TYPE,LINK_ARG,UPDATE_FLAG,LINK_NAME,RIGHTS_CHAR,IMAGE,SHOW_IN_PANEL,SHORTCUT_CHAR,AUTO_INVOKE,SWIPE_POSITION,TITLE,DESCR,SHOW_CONFIRM,DISPLAY_MODE,LINE_NO,LINK_ID,REC_SPECIFIC) values ('finent_acctprd','1','home_upload',' ',' ','Upload Utility','/ibase/webitm/jsp/E12UploadTemplate.jsp?reset=true','3','finent_acctprd.String:OBJ_NAME,Financial Entitywise Accounting Period.String:OBJ_DESC,fromHomePage.String:FROM_HOMEPAGE',null,null,'U',null,'3',null,null,null,null,'Upload Utility',null,'3',1,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('finent_acctprd','1','acct_prd','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('finent_acctprd','1','fin_entity','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('finent_acctprd','1','it_fr_date','Y');
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY) values ('finent_acctprd','1','itm_default','Y');
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 ('finent_acctprd','post_item_change','1','poic_finent_acctprd',null,'0',to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE','2','JB','ibase.webitm.ejb.adm.FinEntAcctPrd',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 ('finent_acctprd','pre_validate','1','prv_finent_acctprd',null,'0',to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE','2','JB','ibase.webitm.ejb.adm.FinEntAcctPrd',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_finent_acctprd','For item change on the required fields','http://localhost:9090/axis/services/ValidatorService','base','itemChanged','String','S',null,null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','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_finent_acctprd','To validate the required fields','http://localhost:9090/axis/services/ValidatorService','base','wfValData','String','S',null,null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','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_finent_acctprd',1,'COMPONENT_TYPE','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE','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_finent_acctprd',2,'COMPONENT_NAME','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE','ibase.webitm.ejb.adm.FinEntAcctPrd');
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_finent_acctprd',3,'XML_DATA','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',4,'XML_DATA_1','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',5,'XML_DATA_ALL','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',6,'OBJ_CONTEXT','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',7,'FOCUSED_COLUMN','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',8,'EDIT_FLAG','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',9,'XTRA_PARAMS','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',1,'COMPONENT_TYPE','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE','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_finent_acctprd',2,'COMPONENT_NAME','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE','ibase.webitm.ejb.adm.FinEntAcctPrd');
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_finent_acctprd',3,'XML_DATA','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',4,'XML_DATA_1','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',5,'XML_DATA_ALL','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',6,'OBJ_CONTEXT','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',7,'EDIT_FLAG','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',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_finent_acctprd',8,'XTRA_PARAMS','I',null,'S',null,to_date('18-AUG-15','DD-MON-RR'),'AALI ','BASE',null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH) values ('FIN_ENTITY','W_FINENT_ACCTPRD','SELECT FIN_ENTITY, DESCR FROM FINENT',null,'Financial Entity',0,0,to_date('2018-05-15','RRRR-MM-DD'),'VAIBHAV ','VAIBHAV ','0',null,null,1,null,null,null,null,null,null,'0',null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH) values ('ACCT_PRD','W_FINENT_ACCTPRD','SELECT CODE, DESCR FROM ACCTPRD',null,'Account Period',0,0,to_date('2018-05-15','RRRR-MM-DD'),'VAIBHAV ','VAIBHAV ','0',null,null,1,null,null,null,null,null,null,'0',null,null,null,null,null,null);
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