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,10 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote
{
priceList = genericUtility.getColumnValue("price_list", dom);
System.out.println("<<<<<<+"+priceList+"+>>>>>>>"+priceList);
sql = "select count(1) from pricelist where price_list = ?";
//Added By PriyankaC on 19July2019[Start]..
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();
......@@ -248,13 +250,35 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote
pstmt.close();
pstmt = null;
}
//Added By PriyankaC on 19July219 [END]
/*sql = "select count(1) from pricelist 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;*/
}
else if(childNodeName.equalsIgnoreCase("price_list__clg"))
{
priceListClg = genericUtility.getColumnValue("price_list__clg", dom);
sql = "select count(1) from pricelist where price_list = ?";
//Added By PriyankaC on 19july2019..[Start]
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();
......@@ -273,8 +297,28 @@ public class StateIC extends ValidatorEJB implements StateICLocal, StateICRemote
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.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;*/
////Changed By PriyankaC...[END]
}
}
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