Commit 0ad61abb authored by ngadkari's avatar ngadkari

Request Id - D17IBAS001

   Group scheme 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177804 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0d1c3ba6
......@@ -454,10 +454,11 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr
else
{ pcp = genericUtility.getColumnValue("prod_code__pur", dom1);
sql = " select count (*) from item where item_code = ? and product_code = ? ";
/*sql = " select count (*) from item where item_code = ? and product_code = ? ";*/
sql = " select count (*) from item where item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, pcp);
/*pstmt.setString(2, pcp);*/
rs = pstmt.executeQuery();
if(rs.next())
{
......@@ -584,10 +585,11 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr
else
{
sql = " select count (*) from item where item_code = ? and product_code = ? ";
/*sql = " select count (*) from item where item_code = ? and product_code = ? ";*/
sql = " select count (*) from item where item_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, pco);
/*pstmt.setString(2, pco);*/
rs = pstmt.executeQuery();
if(rs.next())
{
......@@ -1121,7 +1123,7 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
rs = pstmt.executeQuery();s
if (rs.next())
{
msgType = rs.getString("MSG_TYPE");
......
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