Commit aa6f3335 authored by mnair's avatar mnair

Updated changes in the StockTransferAct.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@180991 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dfb4e894
package ibase.webitm.ejb.dis.adv; package ibase.webitm.ejb.dis.adv;
import java.util.*; import java.util.*;
import java.sql.*; import java.sql.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless; import javax.ejb.Stateless;
@Stateless // added for ejb3 @Stateless
public class StockTransferAct extends ActionHandlerEJB implements StockTransferActLocal,StockTransferActRemote // added for ejb3
public class StockTransferAct extends ActionHandlerEJB implements StockTransferActLocal, StockTransferActRemote
{ {
public String actionHandler() throws RemoteException,ITMException public String actionHandler() throws RemoteException, ITMException {
{
return ""; return "";
} }
public String actionHandler(String actionType, String xmlString, String xmlString1, String objContext, String xtraParams) throws RemoteException,ITMException public String actionHandler(String actionType, String xmlString,String xmlString1, String objContext, String xtraParams)
{ throws RemoteException, ITMException {
Document dom = null; Document dom = null;
Document dom1 = null; Document dom1 = null;
String retString = null; String retString = null;
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility(); ibase.utility.E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
try try {
{ if (xmlString != null && xmlString.trim().length() != 0)
if(xmlString != null && xmlString.trim().length()!=0)
{ {
System.out.println("XML String :"+xmlString); System.out.println("XML String :" + xmlString);
dom = genericUtility.parseString(xmlString); dom = genericUtility.parseString(xmlString);
} }
if(xmlString1 != null && xmlString1.trim().length()!=0) if (xmlString1 != null && xmlString1.trim().length() != 0)
{ {
System.out.println("XML String1 :"+xmlString1); System.out.println("XML String1 :" + xmlString1);
dom1 = genericUtility.parseString(xmlString1); dom1 = genericUtility.parseString(xmlString1);
} }
System.out.println("actionType:"+actionType+":"); System.out.println("actionType:" + actionType + ":");
if (actionType.equalsIgnoreCase("All Items")) if (actionType.equalsIgnoreCase("All Items"))
{ {
retString = actionAllItems(dom, dom1, xtraParams, actionType); retString = actionAllItems(dom, dom1, xtraParams, actionType);
} }
} catch (Exception e) {
} System.out.println("Exception :StockTransferAct :actionHandler(String xmlString):"+ e.getMessage() + ":");
catch(Exception e)
{
System.out.println("Exception :StockTransferAct :actionHandler(String xmlString):" + e.getMessage() + ":");
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); throw new ITMException(e);
} }
System.out.println("returning String from StockTransferAct : actionHandler"+retString); System.out.println("returning String from StockTransferAct : actionHandler"+ retString);
return retString; return retString;
} }
private String actionAllItems(Document dom, Document dom1,String xtraParams, String actionType) throws RemoteException,ITMException
private String actionAllItems(Document dom, Document dom1, String xtraParams, String actionType) throws RemoteException,ITMException //Added - - Gulzar 25/04/07
{ {
System.out.println("xmlString from StockTransferActEJB :"+dom+" \n xmlString1 :"+dom1); System.out.println("xmlString from StockTransferActEJB :" + dom+ " \n xmlString1 :" + dom1);
String consumeOrder = "",refSerFor=""; String consumeOrder = "", refSerFor = "";
ResultSet rs = null,rs1=null; ResultSet rs = null, rs1 = null;
Connection conn = null; Connection conn = null;
Statement stmt = null; PreparedStatement pstmt = null;
ArrayList lineNo = new ArrayList(); PreparedStatement pstmt1 = null;
HashMap<String ,Double> hm = new HashMap<String,Double>(); ArrayList lineNo = new ArrayList();
String lineNoStr = "",locCode = "",locCode1="",lotNum="",siteCodeReq="",lotSerial="",sql = ""; HashMap<String, Double> hm = new HashMap<String, Double>();
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n"); String lineNoStr = "", locCode = "", locCode1 = "", lotNum = "", siteCodeReq = "", lotSerial = "", sql = "";
String detailCnt = ""; StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
String itemCode = "",itemCode1="";double quantity = 0; String detailCnt = "";
String availableYn=""; String itemCode = "";
int detCnt = 0; String availableYn = "";
String refserfr = ""; int detCnt = 0;
String consOrder = ""; String refserfr = "";
double remainingQty = 0d; String consOrder = "";
// double noArt=0; double remainingQty = 0d;
double noArt = 0;
double hmQty = 0d; double hmQty = 0d;
double inputQty = 0d; double inputQty = 0d;
//Document temp = null;
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility(); ibase.utility.E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
System.out.println("Action Default Entry time :: " ); System.out.println("Action Default Entry time :: ");
detailCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt"); detailCnt = genericUtility
if (detailCnt != null) .getValueFromXTRA_PARAMS(xtraParams, "detCnt");
{ if (detailCnt != null) {
detCnt = Integer.parseInt(detailCnt); detCnt = Integer.parseInt(detailCnt);
System.out.println("detCnt...........:: " + detCnt); System.out.println("detCnt...........:: " + detCnt);
} }
if (dom == null || detCnt > 1)
{
valueXmlString.append("</Root>\r\n");
return valueXmlString.toString();
}
try if (dom == null || detCnt > 1) {
{ valueXmlString.append("</Root>\r\n");
return valueXmlString.toString();
conn = getConnection();
stmt = conn.createStatement();
consumeOrder = genericUtility.getColumnValue("ref_id__for",dom1);
if(consumeOrder != null && consumeOrder.trim().length() > 0)
{
consOrder = consumeOrder;
System.out.println("Consumer Order Reference id::::::::"+consOrder);
} }
refSerFor = genericUtility.getColumnValue("ref_ser__for",dom1);
if(("C-ORD").trim().equalsIgnoreCase(refSerFor))
{
refserfr = refSerFor;
System.out.println("Consumer Order Reference series::::::::"+refserfr);
}
sql = "select hdr.available_yn," try {
+"hdr.site_code__req,"
+"det.line_no," conn = getConnection();
+"det.item_code,"
+"hdr.loc_code," consumeOrder = genericUtility.getColumnValue("ref_id__for", dom1);
+"det.quantity"
+" from consume_ord_det det,consume_ord hdr" if (consumeOrder != null && consumeOrder.trim().length() > 0)
+" where det.cons_order = hdr.cons_order "
+" and hdr.cons_order = '"+consOrder+"' ";
System.out.println("SQL ::"+sql);
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while(rs.next())
{ {
availableYn = rs.getString("available_yn"); consOrder = consumeOrder;
lineNoStr = rs.getString("line_no"); System.out.println("Consumer Order Reference id::::::::"
itemCode = rs.getString("item_code"); + consOrder);
quantity = rs.getDouble("quantity"); }
locCode= rs.getString("loc_code");
refSerFor = genericUtility.getColumnValue("ref_ser__for", dom1);
System.out.println("availableYn ::"+availableYn); if (("C-ORD").trim().equalsIgnoreCase(refSerFor))
System.out.println("itemCode ::"+itemCode); {
System.out.println("quantity ::"+quantity); refserfr = refSerFor;
System.out.println("Location code ::"+locCode); System.out.println("Consumer Order Reference series::::::::"
+ refserfr);
}
sql = "SELECT STOCK.ITEM_SER, " sql = "select hdr.available_yn,"
+"STOCK.ITEM_CODE," + "hdr.site_code__req,"
+"STOCK.UNIT, " + "det.line_no,"
+"STOCK.LOC_CODE," + "det.item_code,"
+"STOCK.LOT_NO," + "hdr.loc_code,"
+"STOCK.LOT_SL," + "det.quantity"
+"STOCK.QUANTITY - STOCK.ALLOC_QTY AS BAL_QUANTITY, " + " from consume_ord_det det,consume_ord hdr"
+"STOCK.SITE_CODE, " + " where det.cons_order = hdr.cons_order "
+"STOCK.NO_ART, " + " and hdr.cons_order = ?";
+"(STOCK.QUANTITY - CASE WHEN STOCK.ALLOC_QTY IS NULL THEN 0 ELSE STOCK.ALLOC_QTY END -CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END),"
+"STOCK.EXP_DATE, " System.out.println("SQL ::" + sql);
+"STOCK.RETEST_DATE, " pstmt = conn.prepareStatement( sql );
+"STOCK.DIMENSION, " rs = pstmt.executeQuery(sql);
+"STOCK.RATE " pstmt.setString(1,consumeOrder);
+" FROM STOCK, INVSTAT,CONSUME_ORD_DET,CONSUME_ORD"
+" WHERE STOCK.INV_STAT = INVSTAT.INV_STAT" while (rs.next()) {
+" AND STOCK.ITEM_CODE = CONSUME_ORD_DET.ITEM_CODE "
+" AND STOCK.SITE_CODE = CONSUME_ORD.SITE_CODE__REQ " availableYn = rs.getString("available_yn");
+" AND STOCK.QUANTITY - STOCK.ALLOC_QTY > 0" siteCodeReq = rs.getString("site_code__req");
+" AND INVSTAT.AVAILABLE = CONSUME_ORD.AVAILABLE_YN "; lineNoStr = rs.getString("line_no");
itemCode = rs.getString("item_code");
System.out.println("sql :"+sql); locCode = rs.getString("loc_code");
rs1 = stmt.executeQuery(sql);
while (rs1.next())
{
itemCode1 = rs1.getString(2);
locCode1 = rs1.getString(4);
lotNum = rs1.getString(5);
lotSerial = rs1.getString(6);
remainingQty = rs1.getDouble(7);
siteCodeReq = rs1.getString(8);
System.out.println("itemCode1 :"+itemCode1);
System.out.println("locCode1 :"+locCode);
System.out.println("lotNum :"+lotNum);
System.out.println("lotSerial :"+lotSerial);
System.out.println("remainingQty :"+remainingQty);
System.out.println("siteCodeReq :"+siteCodeReq);
if (! hm.containsKey(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial ))
{
hm.put(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum+"~"+ lotSerial,new Double(rs1.getDouble(10)));
}
hmQty = Double.parseDouble((hm.get(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial)).toString());
if (remainingQty == 0)
{
break;
}
else if(hmQty >= remainingQty)
{
inputQty = remainingQty;
System.out.println("inputQty :"+inputQty);
remainingQty = 0;
hm.put(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial,new Double(hmQty - inputQty));
System.out.println("hmQty - remainingQty :"+(hmQty - inputQty));
System.out.println("hm if [hmQty >= remainingQty] :"+hm);
}
else if (hmQty < remainingQty)
{
inputQty = hmQty;
System.out.println("inputQty :"+inputQty);
remainingQty = remainingQty - inputQty; System.out.println("AvailableYn ::" + availableYn);
System.out.println("remainingQty :"+remainingQty); System.out.println("itemCode ::" + itemCode);
hm.put(itemCode+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial,new Double(0)); System.out.println("Location code ::" + locCode);
}
System.out.println("Hashmap :"+hm);
valueXmlString.append("<Detail>\r\n");
valueXmlString.append("<line_no isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lineNoStr).append("]]>").append("</line_no>\r\n");
valueXmlString.append("<item_code isSrvCallOnChg=\"0\">").append("<![CDATA[").append(itemCode).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<quantity isSrvCallOnChg=\"0\">").append("<![CDATA[").append(inputQty).append("]]>").append("</quantity>\r\n");
valueXmlString.append("<loc_code__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCode == null) ? "":locCode).append("]]>").append("</loc_code__to>\r\n");
valueXmlString.append("<lot_no__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lotNum).append("]]>").append("</lot_no__to>\r\n");
valueXmlString.append("<lot_sl__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lotSerial).append("]]>").append("</lot_sl__to>\r\n");
valueXmlString.append("<no_art isSrvCallOnChg=\"0\">").append("<![CDATA[").append(rs1.getDouble(9)).append("]]>").append("</no_art>\r\n");
//valueXmlString.append("<acct_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeInv == null) ? "":acctCodeInv).append("]]>").append("</acct_code__cr>\r\n");
//valueXmlString.append("<cctr_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeInv == null) ? "":cctrCodeInv).append("]]>").append("</cctr_code__cr>\r\n");
//valueXmlString.append("<acct_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeDr == null) ? "":acctCodeDr).append("]]>").append("</acct_code__dr>\r\n");
//valueXmlString.append("<cctr_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeDr == null) ? "":cctrCodeDr).append("]]>").append("</cctr_code__dr>\r\n");
//valueXmlString.append("<item_descr isSrvCallOnChg=\"0\">").append("<![CDATA[").append(itemDescr).append("]]>").append("</item_descr>\r\n");
//valueXmlString.append("<loc_code__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCode == null) ? "":locCode).append("]]>").append("</loc_code__fr>\r\n");
//valueXmlString.append("<location_descr__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCodeDescr == null) ? "":locCodeDescr).append("]]>").append("</location_descr__fr>\r\n");
//valueXmlString.append("<loc_descr__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCodeDescr == null) ? "":locCodeDescr).append("]]>").append("</loc_descr__to>\r\n");
//valueXmlString.append("<lot_no__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((lotNoTo == null) ? "":lotNoTo).append("]]>").append("</lot_no__fr>\r\n");
//valueXmlString.append("<lot_sl__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((lotSlTo == null) ? "":lotSlTo).append("]]>").append("</lot_sl__fr>\r\n");
valueXmlString.append("</Detail>\r\n");
} //end of inner while loop
rs1.close();
rs1 = null;
stmt.close();
stmt = null;
} //end of outer while loop
//stmt.close();
System.out.println("The size of ArrayList :"+lineNo.size());
sql = "SELECT STOCK.ITEM_SER, "
rs.close(); + "STOCK.ITEM_CODE,"
rs = null; + "STOCK.UNIT, "
+ "STOCK.LOC_CODE,"
+ "STOCK.LOT_NO,"
+ "STOCK.LOT_SL,"
+ "STOCK.QUANTITY - STOCK.ALLOC_QTY AS BAL_QUANTITY, "
+ "STOCK.SITE_CODE, "
+ "STOCK.NO_ART, "
+ "(STOCK.QUANTITY - CASE WHEN STOCK.ALLOC_QTY IS NULL THEN 0 ELSE STOCK.ALLOC_QTY END -CASE WHEN STOCK.HOLD_QTY IS NULL THEN 0 ELSE STOCK.HOLD_QTY END) ,"
+ "STOCK.EXP_DATE, " + "STOCK.RETEST_DATE, "
+ "STOCK.DIMENSION, " + "STOCK.RATE "
+ " FROM STOCK, INVSTAT"
+ " WHERE STOCK.INV_STAT = INVSTAT.INV_STAT"
+ " AND STOCK.ITEM_CODE = ? "
+ " AND STOCK.SITE_CODE = ? "
+ " AND STOCK.QUANTITY - STOCK.ALLOC_QTY > 0"
+ " AND INVSTAT.AVAILABLE = ? ";
System.out.println("sql :" + sql);
stmt.close(); pstmt1 = conn.prepareStatement( sql );
stmt = null; rs1 = pstmt1.executeQuery(sql);
valueXmlString.append("</Root>\r\n");
pstmt1.setString(1,itemCode);
} System.out.println("itemCode ::" + itemCode);
catch (SQLException sqx)
{ pstmt1.setString(2,siteCodeReq);
System.out.println("The sqlException occured in StockTransferAct :"+sqx); System.out.println("siteCodeReq ::" + siteCodeReq);
throw new ITMException(sqx);
} pstmt1.setString(3,availableYn);
catch (Exception e) System.out.println("availableYn ::" + availableYn);
{
System.out.println("The Exception occured in StockTransferAct :"+e);
throw new ITMException(e);
}
finally
{
try
{
conn.close();
conn = null;
}
catch (Exception e){}
}
System.out.println("valueXmlString return from StockTransferAct[actionAllItems] :"+valueXmlString.toString()); while (rs1.next()) {
return valueXmlString.toString();
lotNum = rs1.getString("LOT_NO");
lotSerial = rs1.getString("LOT_SL");
remainingQty = rs1.getDouble("BAL_QUANTITY");
noArt = rs1.getDouble("NO_ART");
System.out.println("lotNum :" + lotNum);
System.out.println("lotSerial :" + lotSerial);
System.out.println("remainingQty :" + remainingQty);
System.out.println("NO ART :" + noArt);
} //End of actionAllItems method if (!hm.containsKey(itemCode + "~" + siteCodeReq + "~"+ locCode1 + "~" + lotNum + "~" + lotSerial))
{
hm.put(itemCode + "~" + siteCodeReq + "~" + locCode+ "~" + lotNum + "~" + lotSerial, new Double(rs1.getDouble(10)));
}
hmQty = Double.parseDouble((hm.get(itemCode + "~"+ siteCodeReq + "~" + locCode + "~" + lotNum + "~"+ lotSerial)).toString());
} if (remainingQty == 0) {
break;
}
else if (hmQty >= remainingQty) {
inputQty = remainingQty;
System.out.println("inputQty :" + inputQty);
remainingQty = 0;
hm.put(itemCode + "~" + siteCodeReq + "~" + locCode+ "~" + lotNum + "~" + lotSerial, new Double(hmQty - inputQty));
System.out.println("hmQty - remainingQty :"+ (hmQty - inputQty));
System.out.println("hm if [hmQty >= remainingQty] :"+ hm);
}
else if (hmQty < remainingQty) {
inputQty = hmQty;
System.out.println("inputQty :" + inputQty);
remainingQty = remainingQty - inputQty;
System.out.println("remainingQty :" + remainingQty);
hm.put(itemCode + "~" + siteCodeReq + "~" + locCode+ "~" + lotNum + "~" + lotSerial, new Double(0));
}
System.out.println("Hashmap :" + hm);
valueXmlString.append("<Detail>\r\n");
valueXmlString.append("<line_no isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lineNoStr).append("]]>").append("</line_no>\r\n");
valueXmlString.append("<item_code isSrvCallOnChg=\"0\">").append("<![CDATA[").append(itemCode).append("]]>").append("</item_code>\r\n");
valueXmlString.append("<quantity isSrvCallOnChg=\"0\">").append("<![CDATA[").append(inputQty).append("]]>").append("</quantity>\r\n");
valueXmlString.append("<loc_code__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCode == null) ? "" : locCode).append("]]>").append("</loc_code__to>\r\n");
valueXmlString.append("<lot_no__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lotNum).append("]]>").append("</lot_no__to>\r\n");
valueXmlString.append("<lot_sl__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lotSerial).append("]]>").append("</lot_sl__to>\r\n");
valueXmlString.append("<no_art isSrvCallOnChg=\"0\">").append("<![CDATA[").append(noArt).append("]]>").append("</no_art>\r\n");
// valueXmlString.append("<acct_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeInv
// == null) ?
// "":acctCodeInv).append("]]>").append("</acct_code__cr>\r\n");
// valueXmlString.append("<cctr_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeInv
// == null) ?
// "":cctrCodeInv).append("]]>").append("</cctr_code__cr>\r\n");
// valueXmlString.append("<acct_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeDr
// == null) ?
// "":acctCodeDr).append("]]>").append("</acct_code__dr>\r\n");
// valueXmlString.append("<cctr_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeDr
// == null) ?
// "":cctrCodeDr).append("]]>").append("</cctr_code__dr>\r\n");
// valueXmlString.append("<item_descr isSrvCallOnChg=\"0\">").append("<![CDATA[").append(itemDescr).append("]]>").append("</item_descr>\r\n");
// valueXmlString.append("<loc_code__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCode
// == null) ?
// "":locCode).append("]]>").append("</loc_code__fr>\r\n");
// valueXmlString.append("<location_descr__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCodeDescr
// == null) ?
// "":locCodeDescr).append("]]>").append("</location_descr__fr>\r\n");
// valueXmlString.append("<loc_descr__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCodeDescr
// == null) ?
// "":locCodeDescr).append("]]>").append("</loc_descr__to>\r\n");
// valueXmlString.append("<lot_no__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((lotNoTo
// == null) ?
// "":lotNoTo).append("]]>").append("</lot_no__fr>\r\n");
// valueXmlString.append("<lot_sl__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((lotSlTo
// == null) ?
// "":lotSlTo).append("]]>").append("</lot_sl__fr>\r\n");
valueXmlString.append("</Detail>\r\n");
} // end of inner while loop
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
} // end of outer while loop
System.out.println("The size of ArrayList :" + lineNo.size());
rs.close();
rs = null;
pstmt.close();
pstmt = null;
valueXmlString.append("</Root>\r\n");
}
catch (SQLException sqx)
{
System.out.println("The sqlException occured in StockTransferAct :"+ sqx);
throw new ITMException(sqx);
}
catch (Exception e)
{
System.out.println("The Exception occured in StockTransferAct :"+ e);
throw new ITMException(e);
}
finally
{
try
{
if( rs != null ) //For resultSet rs
rs.close();
rs = null;
if( rs1 != null ) //For resultSet rs1
rs1.close();
rs1=null;
if( pstmt != null ) //For PreparedStatement pstmt
pstmt.close();
pstmt = null;
if( pstmt1!=null ) //For PreparedStatement pstmt1
pstmt1.close();
pstmt1 = null;
if( conn != null )
conn.close();
conn = null;
}
catch (Exception e)
{
e.printStackTrace();
}
}
System.out.println("valueXmlString return from StockTransferAct[actionAllItems] :"+ valueXmlString.toString());
return valueXmlString.toString();
} // End of actionAllItems method
}
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