Commit 4c65f238 authored by cpatil's avatar cpatil

set value from stock in item change


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97720 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d3bd31ad
......@@ -239,6 +239,9 @@ public class StockStatusWizIC extends ValidatorEJB implements StockStatusWizICLo
String quantity = "", invStatus = "", purcOrd = "", porcpNo = "", locCode = "",tranId="";
GenericUtility genericUtility = GenericUtility.getInstance();
ConnDriver connDriver = new ConnDriver();
String invStat="", invstatDescr="", itemdescr="";
try
{
conn = connDriver.getConnectDB("DriverITM");
......@@ -275,6 +278,9 @@ public class StockStatusWizIC extends ValidatorEJB implements StockStatusWizICLo
{
lotNo = genericUtility.getColumnValue("lot_no", dom1);
lotSl = genericUtility.getColumnValue("lot_sl", dom1);
siteCode = (genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
/* // comment by cpatil on 02/04/15
sql = "select QORDER_NO,PORCP_NO,site_code,item_code from qc_order where lot_no=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lotNo);
......@@ -469,6 +475,39 @@ public class StockStatusWizIC extends ValidatorEJB implements StockStatusWizICLo
valueXmlString.append("<site_code><![CDATA[" + siteCode + "]]></site_code>");
valueXmlString.append("<lot_no><![CDATA[" + lotNo + "]]></lot_no>");
valueXmlString.append("<lot_sl><![CDATA[" + lotSl + "]]></lot_sl>");
*/
//added by cpatil on 02/04/15
sql = " select a.inv_stat,c.descr invstatDescr,A.item_code,b.descr itemdescr " +
" from stock a,item b,invstat c where a.item_code=b.item_code " +
" and a.inv_stat=c.inv_stat and a.site_code = ? and a.lot_no = ? " +
" and a.lot_sl = ? and a.quantity > 0 ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
pstmt.setString(2, lotNo);
pstmt.setString(3, lotSl);
rs = pstmt.executeQuery();
if (rs.next())
{
invStat = checkNull( rs.getString("inv_stat") );
invstatDescr = checkNull( rs.getString("invstatDescr") );
itemCode = checkNull( rs.getString("item_code") );
itemdescr = checkNull( rs.getString("itemdescr") );
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
valueXmlString.append("<status><![CDATA[" + invStat + "( "+invstatDescr+" )" + "]]></status>");
valueXmlString.append("<item_code><![CDATA[" + itemCode + "]]></item_code>");
valueXmlString.append("<descr><![CDATA[" + itemdescr + "]]></descr>");
valueXmlString.append("<qorder_no><![CDATA[]]></qorder_no>");
valueXmlString.append("<site_code><![CDATA[" + siteCode + "]]></site_code>");
valueXmlString.append("<lot_no><![CDATA[" + lotNo + "]]></lot_no>");
valueXmlString.append("<lot_sl><![CDATA[" + lotSl + "]]></lot_sl>");
}
valueXmlString.append("</Detail2>");
}
......
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