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;
...@@ -9,35 +8,34 @@ import ibase.webitm.ejb.*; ...@@ -9,35 +8,34 @@ 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"))
{ {
...@@ -45,256 +43,273 @@ public class StockTransferAct extends ActionHandlerEJB implements StockTransferA ...@@ -45,256 +43,273 @@ public class StockTransferAct extends ActionHandlerEJB implements StockTransferA
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;
PreparedStatement pstmt1 = null;
ArrayList lineNo = new ArrayList(); ArrayList lineNo = new ArrayList();
HashMap<String ,Double> hm = new HashMap<String,Double>(); HashMap<String, Double> hm = new HashMap<String, Double>();
String lineNoStr = "",locCode = "",locCode1="",lotNum="",siteCodeReq="",lotSerial="",sql = ""; String lineNoStr = "", locCode = "", locCode1 = "", lotNum = "", siteCodeReq = "", lotSerial = "", sql = "";
StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n"); StringBuffer valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
String detailCnt = ""; String detailCnt = "";
String itemCode = "",itemCode1="";double quantity = 0; String itemCode = "";
String availableYn=""; String availableYn = "";
int detCnt = 0; int detCnt = 0;
String refserfr = ""; String refserfr = "";
String consOrder = ""; String consOrder = "";
double remainingQty = 0d; double remainingQty = 0d;
// double noArt=0; double noArt = 0;
double hmQty = 0d; double hmQty = 0d;
double inputQty = 0d; double inputQty = 0d;
ibase.utility.E12GenericUtility genericUtility = new ibase.utility.E12GenericUtility();
System.out.println("Action Default Entry time :: ");
//Document temp = null; detailCnt = genericUtility
.getValueFromXTRA_PARAMS(xtraParams, "detCnt");
ibase.utility.E12GenericUtility genericUtility= new ibase.utility.E12GenericUtility(); if (detailCnt != null) {
System.out.println("Action Default Entry time :: " );
detailCnt = genericUtility.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) if (dom == null || detCnt > 1) {
{
valueXmlString.append("</Root>\r\n"); valueXmlString.append("</Root>\r\n");
return valueXmlString.toString(); return valueXmlString.toString();
} }
try try {
{
conn = getConnection(); conn = getConnection();
stmt = conn.createStatement(); consumeOrder = genericUtility.getColumnValue("ref_id__for", dom1);
consumeOrder = genericUtility.getColumnValue("ref_id__for",dom1); if (consumeOrder != null && consumeOrder.trim().length() > 0)
if(consumeOrder != null && consumeOrder.trim().length() > 0)
{ {
consOrder = consumeOrder; consOrder = consumeOrder;
System.out.println("Consumer Order Reference id::::::::"+consOrder); System.out.println("Consumer Order Reference id::::::::"
+ consOrder);
} }
refSerFor = genericUtility.getColumnValue("ref_ser__for",dom1); refSerFor = genericUtility.getColumnValue("ref_ser__for", dom1);
if(("C-ORD").trim().equalsIgnoreCase(refSerFor)) if (("C-ORD").trim().equalsIgnoreCase(refSerFor))
{ {
refserfr = refSerFor; refserfr = refSerFor;
System.out.println("Consumer Order Reference series::::::::"+refserfr); System.out.println("Consumer Order Reference series::::::::"
+ refserfr);
} }
sql = "select hdr.available_yn," sql = "select hdr.available_yn,"
+"hdr.site_code__req," + "hdr.site_code__req,"
+"det.line_no," + "det.line_no,"
+"det.item_code," + "det.item_code,"
+"hdr.loc_code," + "hdr.loc_code,"
+"det.quantity" + "det.quantity"
+" from consume_ord_det det,consume_ord hdr" + " from consume_ord_det det,consume_ord hdr"
+" where det.cons_order = hdr.cons_order " + " where det.cons_order = hdr.cons_order "
+" and hdr.cons_order = '"+consOrder+"' "; + " and hdr.cons_order = ?";
System.out.println("SQL ::"+sql); System.out.println("SQL ::" + sql);
stmt = conn.createStatement(); pstmt = conn.prepareStatement( sql );
rs = stmt.executeQuery(sql); rs = pstmt.executeQuery(sql);
while(rs.next()) pstmt.setString(1,consumeOrder);
{
while (rs.next()) {
availableYn = rs.getString("available_yn"); availableYn = rs.getString("available_yn");
siteCodeReq = rs.getString("site_code__req");
lineNoStr = rs.getString("line_no"); lineNoStr = rs.getString("line_no");
itemCode = rs.getString("item_code"); itemCode = rs.getString("item_code");
quantity = rs.getDouble("quantity"); locCode = rs.getString("loc_code");
locCode= rs.getString("loc_code");
System.out.println("availableYn ::"+availableYn);
System.out.println("itemCode ::"+itemCode);
System.out.println("quantity ::"+quantity);
System.out.println("Location code ::"+locCode);
System.out.println("AvailableYn ::" + availableYn);
System.out.println("itemCode ::" + itemCode);
System.out.println("Location code ::" + locCode);
sql = "SELECT STOCK.ITEM_SER, " sql = "SELECT STOCK.ITEM_SER, "
+"STOCK.ITEM_CODE," + "STOCK.ITEM_CODE,"
+"STOCK.UNIT, " + "STOCK.UNIT, "
+"STOCK.LOC_CODE," + "STOCK.LOC_CODE,"
+"STOCK.LOT_NO," + "STOCK.LOT_NO,"
+"STOCK.LOT_SL," + "STOCK.LOT_SL,"
+"STOCK.QUANTITY - STOCK.ALLOC_QTY AS BAL_QUANTITY, " + "STOCK.QUANTITY - STOCK.ALLOC_QTY AS BAL_QUANTITY, "
+"STOCK.SITE_CODE, " + "STOCK.SITE_CODE, "
+"STOCK.NO_ART, " + "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.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.EXP_DATE, " + "STOCK.RETEST_DATE, "
+"STOCK.RETEST_DATE, " + "STOCK.DIMENSION, " + "STOCK.RATE "
+"STOCK.DIMENSION, " + " FROM STOCK, INVSTAT"
+"STOCK.RATE " + " WHERE STOCK.INV_STAT = INVSTAT.INV_STAT"
+" FROM STOCK, INVSTAT,CONSUME_ORD_DET,CONSUME_ORD" + " AND STOCK.ITEM_CODE = ? "
+" WHERE STOCK.INV_STAT = INVSTAT.INV_STAT" + " AND STOCK.SITE_CODE = ? "
+" AND STOCK.ITEM_CODE = CONSUME_ORD_DET.ITEM_CODE " + " AND STOCK.QUANTITY - STOCK.ALLOC_QTY > 0"
+" AND STOCK.SITE_CODE = CONSUME_ORD.SITE_CODE__REQ " + " AND INVSTAT.AVAILABLE = ? ";
+" AND STOCK.QUANTITY - STOCK.ALLOC_QTY > 0"
+" AND INVSTAT.AVAILABLE = CONSUME_ORD.AVAILABLE_YN "; System.out.println("sql :" + sql);
pstmt1 = conn.prepareStatement( sql );
System.out.println("sql :"+sql); rs1 = pstmt1.executeQuery(sql);
rs1 = stmt.executeQuery(sql);
pstmt1.setString(1,itemCode);
System.out.println("itemCode ::" + itemCode);
while (rs1.next()) pstmt1.setString(2,siteCodeReq);
{ System.out.println("siteCodeReq ::" + siteCodeReq);
itemCode1 = rs1.getString(2);
locCode1 = rs1.getString(4); pstmt1.setString(3,availableYn);
lotNum = rs1.getString(5); System.out.println("availableYn ::" + availableYn);
lotSerial = rs1.getString(6);
remainingQty = rs1.getDouble(7); while (rs1.next()) {
siteCodeReq = rs1.getString(8);
lotNum = rs1.getString("LOT_NO");
System.out.println("itemCode1 :"+itemCode1); lotSerial = rs1.getString("LOT_SL");
System.out.println("locCode1 :"+locCode); remainingQty = rs1.getDouble("BAL_QUANTITY");
System.out.println("lotNum :"+lotNum); noArt = rs1.getDouble("NO_ART");
System.out.println("lotSerial :"+lotSerial);
System.out.println("remainingQty :"+remainingQty); System.out.println("lotNum :" + lotNum);
System.out.println("siteCodeReq :"+siteCodeReq); System.out.println("lotSerial :" + lotSerial);
System.out.println("remainingQty :" + remainingQty);
System.out.println("NO ART :" + noArt);
if (! hm.containsKey(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial ))
if (!hm.containsKey(itemCode + "~" + siteCodeReq + "~"+ locCode1 + "~" + lotNum + "~" + lotSerial))
{ {
hm.put(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum+"~"+ lotSerial,new Double(rs1.getDouble(10))); hm.put(itemCode + "~" + siteCodeReq + "~" + locCode+ "~" + lotNum + "~" + lotSerial, new Double(rs1.getDouble(10)));
} }
hmQty = Double.parseDouble((hm.get(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial)).toString());
if (remainingQty == 0) hmQty = Double.parseDouble((hm.get(itemCode + "~"+ siteCodeReq + "~" + locCode + "~" + lotNum + "~"+ lotSerial)).toString());
{
if (remainingQty == 0) {
break; break;
} }
else if(hmQty >= remainingQty) else if (hmQty >= remainingQty) {
{
inputQty = remainingQty; inputQty = remainingQty;
System.out.println("inputQty :"+inputQty); System.out.println("inputQty :" + inputQty);
remainingQty = 0; remainingQty = 0;
hm.put(itemCode1+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial,new Double(hmQty - inputQty)); hm.put(itemCode + "~" + siteCodeReq + "~" + locCode+ "~" + lotNum + "~" + lotSerial, new Double(hmQty - inputQty));
System.out.println("hmQty - remainingQty :"+(hmQty - inputQty)); System.out.println("hmQty - remainingQty :"+ (hmQty - inputQty));
System.out.println("hm if [hmQty >= remainingQty] :"+hm); System.out.println("hm if [hmQty >= remainingQty] :"+ hm);
} }
else if (hmQty < remainingQty) else if (hmQty < remainingQty) {
{
inputQty = hmQty; inputQty = hmQty;
System.out.println("inputQty :"+inputQty); System.out.println("inputQty :" + inputQty);
remainingQty = remainingQty - inputQty; remainingQty = remainingQty - inputQty;
System.out.println("remainingQty :"+remainingQty); System.out.println("remainingQty :" + remainingQty);
hm.put(itemCode+"~"+siteCodeReq+"~"+locCode1+"~"+lotNum + "~" + lotSerial,new Double(0)); hm.put(itemCode + "~" + siteCodeReq + "~" + locCode+ "~" + lotNum + "~" + lotSerial, new Double(0));
} }
System.out.println("Hashmap :"+hm); System.out.println("Hashmap :" + hm);
valueXmlString.append("<Detail>\r\n"); valueXmlString.append("<Detail>\r\n");
valueXmlString.append("<line_no isSrvCallOnChg=\"0\">").append("<![CDATA[").append(lineNoStr).append("]]>").append("</line_no>\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("<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("<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("<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_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("<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("<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("<acct_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeInv
//valueXmlString.append("<cctr_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeInv == null) ? "":cctrCodeInv).append("]]>").append("</cctr_code__cr>\r\n"); // == null) ?
//valueXmlString.append("<acct_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeDr == null) ? "":acctCodeDr).append("]]>").append("</acct_code__dr>\r\n"); // "":acctCodeInv).append("]]>").append("</acct_code__cr>\r\n");
//valueXmlString.append("<cctr_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeDr == null) ? "":cctrCodeDr).append("]]>").append("</cctr_code__dr>\r\n"); // valueXmlString.append("<cctr_code__cr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((cctrCodeInv
//valueXmlString.append("<item_descr isSrvCallOnChg=\"0\">").append("<![CDATA[").append(itemDescr).append("]]>").append("</item_descr>\r\n"); // == null) ?
//valueXmlString.append("<loc_code__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCode == null) ? "":locCode).append("]]>").append("</loc_code__fr>\r\n"); // "":cctrCodeInv).append("]]>").append("</cctr_code__cr>\r\n");
//valueXmlString.append("<location_descr__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCodeDescr == null) ? "":locCodeDescr).append("]]>").append("</location_descr__fr>\r\n"); // valueXmlString.append("<acct_code__dr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((acctCodeDr
//valueXmlString.append("<loc_descr__to isSrvCallOnChg=\"0\">").append("<![CDATA[").append((locCodeDescr == null) ? "":locCodeDescr).append("]]>").append("</loc_descr__to>\r\n"); // == null) ?
//valueXmlString.append("<lot_no__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((lotNoTo == null) ? "":lotNoTo).append("]]>").append("</lot_no__fr>\r\n"); // "":acctCodeDr).append("]]>").append("</acct_code__dr>\r\n");
//valueXmlString.append("<lot_sl__fr isSrvCallOnChg=\"0\">").append("<![CDATA[").append((lotSlTo == null) ? "":lotSlTo).append("]]>").append("</lot_sl__fr>\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"); valueXmlString.append("</Detail>\r\n");
} //end of inner while loop } // end of inner while loop
rs1.close(); rs1.close();
rs1 = null; rs1 = null;
stmt.close(); pstmt1.close();
stmt = null; pstmt1 = null;
} //end of outer while loop } // end of outer while loop
//stmt.close();
System.out.println("The size of ArrayList :"+lineNo.size());
System.out.println("The size of ArrayList :" + lineNo.size());
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close();
pstmt = null;
stmt.close();
stmt = null;
valueXmlString.append("</Root>\r\n"); valueXmlString.append("</Root>\r\n");
} }
catch (SQLException sqx) catch (SQLException sqx)
{ {
System.out.println("The sqlException occured in StockTransferAct :"+sqx); System.out.println("The sqlException occured in StockTransferAct :"+ sqx);
throw new ITMException(sqx); throw new ITMException(sqx);
} }
catch (Exception e) catch (Exception e)
{ {
System.out.println("The Exception occured in StockTransferAct :"+e); System.out.println("The Exception occured in StockTransferAct :"+ e);
throw new ITMException(e); throw new ITMException(e);
} }
finally finally
{ {
try 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.close();
conn = null; conn = null;
} }
catch (Exception e){} catch (Exception e)
{
e.printStackTrace();
}
} }
System.out.println("valueXmlString return from StockTransferAct[actionAllItems] :"+valueXmlString.toString()); System.out.println("valueXmlString return from StockTransferAct[actionAllItems] :"+ valueXmlString.toString());
return valueXmlString.toString(); return valueXmlString.toString();
} //End of actionAllItems method } // 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