Commit 3662b79f authored by agaikwad's avatar agaikwad

Request_id-F15BSUN002


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97965 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ba6120f5
......@@ -94,6 +94,22 @@ public class AssetclassIC extends ValidatorEJB implements AssetclassICLocal ,As
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
int seriesCount = 0;
String id = genericUtility.getColumnValue("item_ser", dom);
String id1 = genericUtility.getColumnValue("grp_code", dom);
String Sql = "SELECT COUNT(1) AS COUNT FROM ASSET_CLASS WHERE ITEM_SER=? AND GRP_CODE=?";
pstmt = conn.prepareStatement(Sql);
pstmt.setString(1,id);
pstmt.setString(2,id1);
rs = pstmt.executeQuery();
System.out.println("Sql" + Sql);
if (rs.next()) {
seriesCount = rs.getInt("COUNT");
}
if (seriesCount > 0) {
errString = getErrorString(" ", "VMTRANIDEX", userId);
break;
}
if ( childNodeName.equalsIgnoreCase( "item_ser" ) )
{
......
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