Commit 2f4ffefe authored by wansari's avatar wansari

W16IBAS007 added validation for anal_code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105294 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2f0407c8
...@@ -680,6 +680,42 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC ...@@ -680,6 +680,42 @@ public class IndentReqIC extends ValidatorEJB implements IndentICLocal, IndentIC
} }
} }
//Added by wasim on 10-04-17 for validation of anal_code for anal_code validation [START]
if("anal_code".equalsIgnoreCase(childNodeName))
{
System.out.println("-------- inside anal_code -----------------");
mval = checkNullAndTrim(genericUtility.getColumnValue("anal_code", dom));
if(mval.length() > 0)
{
sql = " SELECT ANAL_CODE,DESCR FROM ANALYSIS WHERE ANAL_CODE = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mval);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs != null)
{
rs.close();
rs = null;
}
if(cnt == 0)
{
errCode = "VTINVANAL";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
//Added by wasim on 10-04-17 for validation of anal_code for anal_code validation [END]
} }
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