Commit 01f45f19 authored by dhirajchavan's avatar dhirajchavan

Converted PB code into java component.

I have Added some condition into  PoRcpConf Java component,
Purpose: system should consider item.qc_reqd in case siteitem is not defined or in siteitem.qc_reqd is null.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100327 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f0b275b5
......@@ -3289,6 +3289,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
{
qtySample = qtySampleSiteItem;
}
if (itemSer == null || itemSer.trim().length() == 0)
{
sql = "SELECT ITEM_SER FROM ITEM WHERE ITEM_CODE = ?";
......@@ -3304,6 +3306,27 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
pstmt1.close();
pstmt1 = null;
}
/* Added By Dhiraj R chavan on 7/MAR/2016*/
if(qcReqdSite==null || qcReqdSite.trim().length()==0)
{
System.out.println("####qcReqdSite"+qcReqdSite);
//sql = "SELECT ITEM_SER FROM ITEM WHERE ITEM_CODE = ?";
sql="select (case when qc_reqd is null then 'N' else qc_reqd end) from item where item_code=?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, itemCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
qcReqdSite =checkNull(rs1.getString("qc_reqd"));
}
rs1.close();
rs1 = null;
pstmt1.close();
}
System.out.println(">>>qcReqdSite Dj: = " + qcReqdSite);
/* Ended By Dhiraj R chavan on 7/MAR/2016*/
if (procMth != null && procMth.trim().length() > 0)
{
......
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