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 ...@@ -454,10 +454,11 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr
else else
{ pcp = genericUtility.getColumnValue("prod_code__pur", dom1); { 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 = conn.prepareStatement(sql);
pstmt.setString(1, itemCode); pstmt.setString(1, itemCode);
pstmt.setString(2, pcp); /*pstmt.setString(2, pcp);*/
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
...@@ -584,10 +585,11 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr ...@@ -584,10 +585,11 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr
else 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 = conn.prepareStatement(sql);
pstmt.setString(1, itemCode); pstmt.setString(1, itemCode);
pstmt.setString(2, pco); /*pstmt.setString(2, pco);*/
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
...@@ -1121,7 +1123,7 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr ...@@ -1121,7 +1123,7 @@ public class GroupSchemeIC extends ValidatorEJB implements GroupSchemeICLocal,Gr
String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?"; String sql = "SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, errorCode); pstmt.setString(1, errorCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();s
if (rs.next()) if (rs.next())
{ {
msgType = rs.getString("MSG_TYPE"); 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