Commit 0fedd738 authored by arawankar's avatar arawankar

EmployeeServicePrdAmdConf.java

-Checked in on behalf of rohini

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202048 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 92f70859
......@@ -115,32 +115,6 @@ public class EmployeeServicePrdAmdConf extends ActionHandlerEJB implements Emplo
}
else
{
//Modified by Rohini R. on [12/06/2019][Start]
int count = 0;
sql = "select count(*) as unconfirmed_record from EMP_SERVICEPRD_AMD where emp_code = ? and confirmed <> 'Y'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
count = rs.getInt(1);
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(count > 0)
{
errString = itmdbAccess.getErrorString("", "VTEMPSPA15", "", "", conn);//Already Unconfirmed entry exists for employee.
return errString;
}
//Modified by Rohini R. on [12/06/2019][End]
sql = "select status,relieve_date from employee where emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, empCode);
......
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