Commit 3c1ccd57 authored by sanashaikh's avatar sanashaikh

Sana S: Modified on 24/01/2020

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215652 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3137cab2
...@@ -77,7 +77,7 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -77,7 +77,7 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
String userId = ""; String userId = "";
String mval1= "",mval= ""; String mval1= "",mval= "";
String sql = "",ls_accfilt=""; String sql = "",ls_accfilt="";
String effDateStr = ""; String effDateStr = "",gradeCode="";
String expDateStr = ""; String expDateStr = "";
int currentFormNo = 0; int currentFormNo = 0;
int noOfChilds = 0; int noOfChilds = 0;
...@@ -184,7 +184,7 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -184,7 +184,7 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
mval = checkNull(genericUtility.getColumnValue("ad_code",dom)); mval = checkNull(genericUtility.getColumnValue("ad_code",dom));
mval1 = checkNull(genericUtility.getColumnValue("ad_code__main",dom)); mval1 = checkNull(genericUtility.getColumnValue("ad_code__main",dom));
String payTable=checkNull(genericUtility.getColumnValue("pay_table",dom)); String payTable=checkNull(genericUtility.getColumnValue("pay_table",dom));
String gradeCode=checkNull(genericUtility.getColumnValue("grade_code",dom)); gradeCode=checkNull(genericUtility.getColumnValue("grade_code",dom));
// effDateStr = checkNull(genericUtility.getColumnValue("eff_date",dom)); // effDateStr = checkNull(genericUtility.getColumnValue("eff_date",dom));
System.out.print("effDateStr at 433:"+effDateStr); System.out.print("effDateStr at 433:"+effDateStr);
...@@ -520,6 +520,41 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal, ...@@ -520,6 +520,41 @@ public class GradeWisePerkIC extends ValidatorEJB implements GradeWisePerkLocal,
return errString; return errString;
} }
} }
//Added by Sana S on 24/01/2020 [start] [validate empty/null/wrong cadre code]
else if ("grade_code".equalsIgnoreCase(childNodeName))
{
gradeCode=checkNull(genericUtility.getColumnValue("grade_code",dom));
sql="select count(1) as cnt from grade where grade_code= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, gradeCode);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(gradeCode.equals("") || gradeCode.trim().length() == 0 || cnt==0)
{
errString = itmDbAcess.getErrorString("", "VMGRADE" , userId, "", conn);
return errString;
}
}
//Added by Sana S on 24/01/2020 [end] [validate empty/null/wrong cadre code]
} }
break; break;
} }
......
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