Commit 4b4e623e authored by vvengurlekar's avatar vvengurlekar

PayarrToProc.java

PayarrToProcLocal.java
PayarrToProcRemote.java - Arrears to processed component committed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192024 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dca97b11
...@@ -80,7 +80,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -80,7 +80,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
String sql = ""; String sql = "";
String empCode = "", status = "", prdCode = "", procType = "", paySite = ""; String empCode = "", status = "", prdCode = "", procType = "", paySite = "";
String msgType = "";//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]
int userLevel = 0; int userLevel = 0;
Date fromDate = null, relieveDate = null; Date fromDate = null, relieveDate = null;
try try
...@@ -139,26 +138,12 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -139,26 +138,12 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR04"; errCode = "VTPAYARR04";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
if(status.equalsIgnoreCase("S")) if(status.equalsIgnoreCase("S"))
{ {
errCode = "VTPAYARR01"; errCode = "VTPAYARR01";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
sql = "select usr_lev from users where code = ?"; sql = "select usr_lev from users where code = ?";
...@@ -207,13 +192,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -207,13 +192,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR06"; errCode = "VTPAYARR06";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
} }
} }
...@@ -222,13 +200,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -222,13 +200,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR04"; errCode = "VTPAYARR04";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
} }
else if("prd_code".equalsIgnoreCase(childNodeName)) else if("prd_code".equalsIgnoreCase(childNodeName))
...@@ -262,13 +233,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -262,13 +233,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR05"; errCode = "VTPAYARR05";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
empCode = checkNull(genericUtility.getColumnValue("emp_code", dom)); empCode = checkNull(genericUtility.getColumnValue("emp_code", dom));
...@@ -297,13 +261,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -297,13 +261,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR02"; errCode = "VTPAYARR02";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
} }
} }
...@@ -312,13 +269,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -312,13 +269,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR05"; errCode = "VTPAYARR05";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
procType = checkNull(genericUtility.getColumnValue("proc_type", dom)); procType = checkNull(genericUtility.getColumnValue("proc_type", dom));
...@@ -349,13 +299,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -349,13 +299,6 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
errCode = "VTPAYARR03"; errCode = "VTPAYARR03";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]start
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
//Modified by Ahmed on 31-AUG-2018[To break and return error message when validation fails]end
} }
} }
} }
...@@ -586,14 +529,13 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -586,14 +529,13 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
site = ""; empName = ""; site = ""; empName = "";
if(empCode != null && empCode.trim().length() > 0) 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= ?"; sql = "SELECT EMP_SITE, FN_GET_EMP_NAME( EMP_CODE,'X')AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE= ?";
sql = "SELECT EMP_SITE, DDF_GET_MASTERS_NAME('EMPLOYEE', EMP_CODE, 'FML') AS EMP_NAME FROM EMPLOYEE WHERE EMP_CODE=?";//Modified by Ahmed on 31-AUG-2018[To set long name value of employee from database function]
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode); pstmt.setString(1, empCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
site = checkNull(rs.getString("EMP_SITE")); site = checkNull(rs.getString("EMP_SITE"));
empName = checkNull(rs.getString("EMP_NAME")); empName = checkNull(rs.getString("EMP_NAME"));
} }
if(rs != null) if(rs != null)
...@@ -738,4 +680,4 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya ...@@ -738,4 +680,4 @@ public class PayarrToProc extends ValidatorEJB implements PayarrToProcLocal,Paya
} }
//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]
\ No newline at end of file
...@@ -13,10 +13,8 @@ import org.w3c.dom.Document; ...@@ -13,10 +13,8 @@ import org.w3c.dom.Document;
public interface PayarrToProcLocal extends ValidatorLocal 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(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; 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;
......
...@@ -13,10 +13,8 @@ import org.w3c.dom.Document; ...@@ -13,10 +13,8 @@ import org.w3c.dom.Document;
public interface PayarrToProcRemote extends ValidatorRemote 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(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; 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