Commit c9abd9e7 authored by bpandey's avatar bpandey

removed commented code on dated 18 oct-2014


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96635 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ded57384
...@@ -333,100 +333,6 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc ...@@ -333,100 +333,6 @@ public class LocationStockOccupancy extends ValidatorEJB implements LocationStoc
return xmlData.toString(); return xmlData.toString();
} }
/*
* public String getStkOccupncyDtl(String loginCode) throws RemoteException,
* ITMException { String data = ""; String sql = ""; ResultSet rs = null;
* Connection conn = null; PreparedStatement pstmt = null; ConnDriver
* connDriver = new ConnDriver(); StringBuffer xmlData = null; try { conn =
* connDriver.getConnectDB("DriverITM"); connDriver = null;
*
* sql =
* "select s.item_code,s.site_code,s.loc_code,s.lot_no,s.lot_sl,s.quantity,s.alloc_qty,s.exp_date, l.loc_phy_area,l.loc_phy_row,l.loc_phy_col,l.loc_phy_stack "
* +
* "From stock s left outer join location l on s.loc_code=l.loc_code where s.quantity >0 "
* + "AND s.exp_date <=SYSDATE AND S.SITE_CODE= ?";
*
* pstmt = conn.prepareStatement(sql); pstmt.setString(1, loginCode); rs =
* pstmt.executeQuery();
*
* xmlData = new StringBuffer("<?xml version='1.0'?> <Root>"); while
* (rs.next()) { xmlData.append("<Detail>");
*
* xmlData.append("<item_code>").append("<![CDATA[" +
* this.checkNull(rs.getString("item_code")) +
* "]]>").append("</item_code>");
* xmlData.append("<site_code>").append("<![CDATA[" +
* this.checkNull(rs.getString("site_code")) +
* "]]>").append("</site_code>");
* xmlData.append("<loc_code>").append("<![CDATA[" +
* this.checkNull(rs.getString("loc_code")) + "]]>").append("</loc_code>");
* xmlData.append("<lot_no>").append("<![CDATA[" +
* this.checkNull(rs.getString("lot_no")) + "]]>").append("</lot_no>");
* xmlData.append("<quantity>").append("<![CDATA[" +
* rs.getDouble("quantity") + "]]>").append("</quantity>");
* xmlData.append("<exp_date>").append("<![CDATA[" + rs.getDate("exp_date")
* + "]]>").append("</exp_date>");
* xmlData.append("<loc_phy_area>").append("<![CDATA[" +
* this.checkNull(rs.getString("loc_phy_area")) +
* "]]>").append("</loc_phy_area>");
* xmlData.append("<loc_phy_row>").append("<![CDATA[" +
* this.checkNull(rs.getString("loc_phy_row")) +
* "]]>").append("</loc_phy_row>");
* xmlData.append("<loc_phy_col>").append("<![CDATA[" +
* this.checkNull(rs.getString("loc_phy_col")) +
* "]]>").append("</loc_phy_col>");
* xmlData.append("<loc_phy_stack>").append("<![CDATA[" +
* this.checkNull(rs.getString("loc_phy_stack")) +
* "]]>").append("</loc_phy_stack>");
*
* xmlData.append("</Detail>"); } xmlData.append("</Root>");
*
* rs.close(); rs = null; pstmt.close(); pstmt = null;
*
* } catch (Exception e) { e.printStackTrace(); throw new ITMException(e); }
* finally { try { if (conn != null) { if (rs != null) rs.close(); rs =
* null; if (pstmt != null) pstmt.close(); pstmt = null; conn.close(); conn
* = null; } conn = null; } catch (Exception d) { d.printStackTrace(); throw
* new ITMException(d); } } return data; }
*
* public String getStkDtl(String locationCode, String siteCode) throws
* RemoteException, ITMException { String sql = ""; ResultSet rs = null;
* Connection conn = null; PreparedStatement pstmt = null; ConnDriver
* connDriver = new ConnDriver(); String selectedArea = ""; StringBuffer
* xmlData = null; try { conn = connDriver.getConnectDB("DriverITM");
* connDriver = null;
*
* sql =
* "select item_code,site_code,loc_code,lot_no,lot_sl,exp_date,quantity,alloc_qty,hold_qty From stock where quantity >0 AND exp_date <= SYSDATE and loc_code= ? and SITE_CODE=? "
* ;
*
* pstmt = conn.prepareStatement(sql); pstmt.setString(1, locationCode);
* pstmt.setString(2, siteCode); rs = pstmt.executeQuery(); xmlData = new
* StringBuffer("<?xml version='1.0'?> <Root>");
* xmlData.append("<location_code lcode=\"" + locationCode + "\">");
* xmlData.append("<detail>");
*
* while (rs.next()) {
*
* xmlData.append("<stock>");
* xmlData.append("<item_code>").append("<![CDATA[" +
* rs.getString("item_code") + "]]>").append("</item_code>");
* xmlData.append("<lot_sl>").append("<![CDATA[" + rs.getString("lot_sl") +
* "]]>").append("</lot_sl>");
* xmlData.append("<quantity>").append("<![CDATA[" +
* rs.getString("quantity") + "]]>").append("</quantity>");
* xmlData.append("<lot_no>").append("<![CDATA[" + rs.getString("lot_no") +
* "]]>").append("</lot_no>"); xmlData.append("</stock>"); }
*
* xmlData.append("</detail>"); rs.close(); rs = null; pstmt.close(); pstmt
* = null; } catch (Exception e) { e.printStackTrace(); throw new
* ITMException(e); } finally { try { if (conn != null) { if (rs != null)
* rs.close(); rs = null; if (pstmt != null) pstmt.close(); pstmt = null;
* conn.close(); conn = null; } conn = null; } catch (Exception d) {
* d.printStackTrace(); throw new ITMException(d); } } return selectedArea;
*
* }
*/
private String checkNull(String input) private String checkNull(String input)
{ {
if (input == null) if (input == null)
......
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