Commit ba6120f5 authored by agaikwad's avatar agaikwad

Request_id-F15BSUN005 Fin_Entity Validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97964 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 57ec086f
......@@ -63,6 +63,7 @@ public class AssetclassIC extends ValidatorEJB implements AssetclassICLocal ,As
String userId = null,loginSite = null;
int cnt = 0;
int ctr = 0;
String finEntity = "";
int currentFormNo = 0;
int childNodeListLength;
Connection conn = null;
......@@ -135,6 +136,32 @@ public class AssetclassIC extends ValidatorEJB implements AssetclassICLocal ,As
}
}
if(childNodeName.equalsIgnoreCase( "fin_entity" ))
{
finEntity = this.genericUtility.getColumnValue("fin_entity", dom);
if(finEntity != null && finEntity.trim().length() > 0)
{
sql = "select count(*) from finent where fin_entity = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, finEntity);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt(1);
}
if (cnt == 0)
{
errString = getErrorString("fin_entity", "VMFENTY1", userId);
/*errCode = "VMFENTY1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());*/
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
}
}
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