Commit 9d7786d6 authored by rtelang's avatar rtelang

AdChangeIC.java

- Changes done in itemchange of empCode To Add PaySite from employee master as issue reported by Mahesh Patil.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214515 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2f232019
......@@ -435,6 +435,7 @@ public class AdChangeIC extends ValidatorEJB implements AdChangeICLocal, AdChang
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
String sql = "", empCode = "", adCode = "", empFname = "", empLname = "";
String paySite = "";//Modified by Rohini T on [03/01/2020]
String effDateStr = "", expDateStr = "", propYn = "", refType = "", refNo = "",logInEmpCode = "";
int currentFormNo = 0;
Connection conn = null;
......@@ -585,8 +586,10 @@ public class AdChangeIC extends ValidatorEJB implements AdChangeICLocal, AdChang
effDate1 = Timestamp.valueOf(genericUtility.getValidDateString(effDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
}
System.out.println("Employee Code Itemchange :: empCode["+empCode+"]\t effDateStr ["+effDateStr+"]");
sql = "Select date_join, emp_fname, emp_lname from employee where emp_code = ?";
//Added and Commented by Rohini T on [03/01/2020][To Add PaySite from employee master as issue reported by Mahesh Patil][Start]
// sql = "Select date_join, emp_fname, emp_lname from employee where emp_code = ?";
sql = "Select date_join, emp_fname, emp_lname,pay_site from employee where emp_code = ?";
//Added and Commented by Rohini T on [03/01/2020][To Add PaySite from employee master as issue reported by Mahesh Patil][End]
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
......@@ -595,6 +598,7 @@ public class AdChangeIC extends ValidatorEJB implements AdChangeICLocal, AdChang
joinDate = rs.getTimestamp("date_join");
empFname = checkNull(rs.getString("emp_fname"));
empLname = checkNull(rs.getString("emp_lname"));
paySite = checkNull(rs.getString("pay_site"));//Modified by Rohini T on [03/01/2020][To Add PaySite from employee master as issue reported by Mahesh Patil]
}
if (rs != null)
{
......@@ -612,6 +616,7 @@ public class AdChangeIC extends ValidatorEJB implements AdChangeICLocal, AdChang
}
valueXmlString.append("<emp_fname><![CDATA[").append(empFname).append("]]></emp_fname>");
valueXmlString.append("<emp_lname><![CDATA[").append(empLname).append("]]></emp_lname>");
valueXmlString.append("<pay_site><![CDATA[").append(paySite).append("]]></pay_site>");//Modified by Rohini T on [03/01/2020][To Add PaySite from employee master as issue reported by Mahesh Patil]
}
valueXmlString.append("</Detail1>\r\n");
}
......
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