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
...@@ -3160,7 +3160,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -3160,7 +3160,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
pstmtSql.close(); pstmtSql.close();
pstmtSql = null; pstmtSql = null;
} }
jobWorkType = distCommon.getDisparams("999999", "JOBWORK_TYPE", conn); jobWorkType = distCommon.getDisparams("999999", "JOBWORK_TYPE", conn);
if (jobWorkType == null) if (jobWorkType == null)
{ {
...@@ -3279,7 +3279,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -3279,7 +3279,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
qcType = checkNull(rs1.getString("QC_REQD_TYPE")); qcType = checkNull(rs1.getString("QC_REQD_TYPE"));
qtySample = rs1.getDouble("QTY_SAMPLE"); qtySample = rs1.getDouble("QTY_SAMPLE");
procMth = checkNull(rs1.getString("PROC_MTH")); procMth = checkNull(rs1.getString("PROC_MTH"));
} }
} }
rs1.close(); rs1.close();
rs1 = null; rs1 = null;
...@@ -3289,6 +3289,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -3289,6 +3289,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
{ {
qtySample = qtySampleSiteItem; qtySample = qtySampleSiteItem;
} }
if (itemSer == null || itemSer.trim().length() == 0) if (itemSer == null || itemSer.trim().length() == 0)
{ {
sql = "SELECT ITEM_SER FROM ITEM WHERE ITEM_CODE = ?"; sql = "SELECT ITEM_SER FROM ITEM WHERE ITEM_CODE = ?";
...@@ -3304,6 +3306,27 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -3304,6 +3306,27 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
pstmt1.close(); pstmt1.close();
pstmt1 = null; 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) 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