Commit 80c2ec14 authored by pchavan's avatar pchavan

Update source to show warning messages on click of confirm.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181467 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7b7f39e0
......@@ -122,7 +122,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
String sql = "";
String conf = "";
String siteRcp = "";
String invserialNo ="",itemCode ="" ,sItem = "";
HashSet<String> sh = new HashSet<String>();
try
{
if (conn == null)// changed by Gulzar - 25/11/11
......@@ -225,6 +226,72 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
conn.rollback();
}
}
//Added By PriyankaC 05/03/2018.[START]
System.out.println("tran_id : " +tranId);
sql ="SELECT ITEM_CODE FROM PORCPDET WHERE TRAN_ID= ? ";
pstmtSql = conn.prepareStatement(sql);
pstmtSql.setString(1, tranId);
rs = pstmtSql.executeQuery();
while (rs.next())
{
itemCode = checkNull(rs.getString("ITEM_CODE"));
sh.add(itemCode);
}
System.out.println("itemCode :" +itemCode +"Hashset" +sh);
if (pstmtSql != null)
{
pstmtSql.close();
pstmtSql = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
if(sh.isEmpty() == false)
{
Iterator itr = sh.iterator();
while(itr.hasNext())
{
sItem = sItem + "'"+(String) itr.next() + "'"+",";
}
}
if(sItem != null && sItem.length() != 0)
{
sItem = sItem.substring(0,sItem.length()-1);
}
else
{
sItem = "''";
}
System.out.println("sItem : " +sItem);
sql ="SELECT INV_SRNO_REQD FROM ITEM WHERE ITEM_CODE in ("+sItem+") ";
pstmtSql = conn.prepareStatement(sql);
// pstmtSql.setString(1, itemCode);
rs = pstmtSql.executeQuery();
while (rs.next())
{
invserialNo = checkNull(rs.getString("INV_SRNO_REQD"));
System.out.println("invserialNo : "+invserialNo);
if ("Y".equalsIgnoreCase(invserialNo))
{
retString = itmDBAccessLocal.getErrorString("", "VTINVSRNRQ", "");
return retString;
}
}
if (pstmtSql != null)
{
pstmtSql.close();
pstmtSql = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
//Added By PriyankaC on 05/03/2018.. [END]
} catch (Exception e)
{
try
......@@ -377,7 +444,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
{
subContractType = "";
}
//END PC.......
sql = "SELECT PORD_TYPE FROM PORDER WHERE PURC_ORDER = ?";
pstmtSql = conn.prepareStatement(sql);
pstmtSql.setString(1, purcOrder);
......
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