Commit 69c62ad7 authored by pchavan's avatar pchavan

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203889 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 03c2aab9
...@@ -228,8 +228,30 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote ...@@ -228,8 +228,30 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote
{ {
priceList = genericUtility.getColumnValue("price_list", dom); priceList = genericUtility.getColumnValue("price_list", dom);
System.out.println("<<<<<<+"+priceList+"+>>>>>>>"+priceList); System.out.println("<<<<<<+"+priceList+"+>>>>>>>"+priceList);
//Added By PriyankaC on 19July2019[Start]..
sql = "select count(1) from pricelist where price_list = ?"; if(priceList != null && priceList.trim().length() > 0)
{
sql = "select count(1) from pricelist_mst where price_list = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priceList);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
if(cnt == 0)
{
errCode = "VTPLIST1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
//Added By PriyankaC on 19July219 [END]
/*sql = "select count(1) from pricelist where price_list = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priceList); pstmt.setString(1, priceList);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -246,15 +268,38 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote ...@@ -246,15 +268,38 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;*/
} }
else if(childNodeName.equalsIgnoreCase("price_list__clg")) else if(childNodeName.equalsIgnoreCase("price_list__clg"))
{ {
priceListClg = genericUtility.getColumnValue("price_list__clg", dom); priceListClg = genericUtility.getColumnValue("price_list__clg", dom);
//Added By PriyankaC on 19july2019..[Start]
sql = "select count(1) from pricelist where price_list = ?"; if(priceListClg != null && priceListClg.trim().length() > 0)
{
sql = "select count(1) from pricelist_mst where price_list = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priceListClg);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
if(cnt == 0)
{
errCode = "VTPLIST1";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
//Added By PriyankaC on 19july2019 [END]..
//Changed By PriyankaC...[Start]
/*sql = "select count(1) from pricelist where price_list = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priceListClg); pstmt.setString(1, priceListClg);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -271,10 +316,9 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote ...@@ -271,10 +316,9 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;*/
////Changed By PriyankaC...[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