Commit 7108d09e authored by dkasliwal's avatar dkasliwal

Remove Purchase order EJB And Servlet


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98403 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c5e66632
package ibase.dashboard.scm.ejb;
import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import javax.ejb.Stateless;
import org.json.simple.JSONObject;
/**
* Session Bean implementation class CustomerInfoEJB
*/
@Stateless
public class PendingPurcOrder extends ValidatorEJB implements PendingPurcOrderRemote, PendingPurcOrderLocal {
/**
* Default constructor.
*/
public PendingPurcOrder() {
}
GenericUtility genericUtility = GenericUtility.getInstance();
SimpleDateFormat gridDateFormat=null;
SimpleDateFormat convrtToTimStmDate=null;
@SuppressWarnings("unchecked")
@Override
//Last
public JSONObject getLastFivePaymentsDetail(String loginCode, String dataSourceName) throws RemoteException, ITMException
{
JSONObject rawDataPaymentDet = new JSONObject();
JSONObject rowData = null;
String sql = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
String processOrder="",completed="",open="";
try
{
gridDateFormat = new SimpleDateFormat( genericUtility.getApplDateFormat());
convrtToTimStmDate = new SimpleDateFormat(genericUtility.getDBDateFormat());
System.out.println(" Inside PendingPurcOrder for getLastPaymentsData Method Data Soruc Name ="+dataSourceName+" loginCode is =" + loginCode);
conn = connDriver.getConnectDB(dataSourceName);
connDriver = null;
int count = 0;
sql = " select m.tran_id,m.tran_date, m.net_amt,m.ref_no,m. bank_code,b.bank_name from misc_payment m inner join bank b on m.bank_code=b.bank_code " +
" where Rownum <= 5 and m.sundry_type = 'S'and m.net_amt>0 " +
" and m.sundry_code in (select entity_code from entity_contact where entity_type = 'S' and User_id__portal = '"+loginCode+"' ) "+
" and tran_date >= (select fr_date from acctprd where to_date(sysdate) " +
" between fr_date and to_date) and confirmed = 'Y'order by tran_date desc ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
while (rs.next())
{
rowData = new JSONObject();
rowData.put("tran_id", checkNull(rs.getString("tran_id")));
String tranDate =checkNull(rs.getString("tran_date"));
if(tranDate.trim().length()>0)
{
rowData.put("tran_date", gridDateFormat.format((convrtToTimStmDate.parse(tranDate))));
}
else
{
rowData.put("tran_date",checkNull(rs.getString("tran_date")));
}
rowData.put("net_amt", checkNull(rs.getString("net_amt")));
rowData.put("cheque_no",checkNull (rs.getString("ref_no")));
rowData.put("bank_code", checkNull(rs.getString("bank_name")));
rawDataPaymentDet.put(count, rowData);
count++;
}
}
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();
System.out.println("Exception in :SupplierInfoEJB for getPendingPurcOrder Method :" + d.getMessage());
throw new ITMException(d);
}
}
return rawDataPaymentDet;
}
@SuppressWarnings("unchecked")
public JSONObject getPOValueDetail(String loginCode, String dataSourceName) throws RemoteException, ITMException
{
JSONObject rawDataPOValueDet = new JSONObject();
JSONObject rowData = null;
String sql = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
try
{
System.out.println(" Inside PendingPurcOrderEJB for getPOValueData Method Data Soruc Name ="+dataSourceName+" logincode is =" + loginCode);
conn = connDriver.getConnectDB(dataSourceName);
connDriver = null;
/*sql = " select to_char(ORD_DATE, 'MON-YY') as month, sum(tot_amt) as povalue,count(1) as no_of_po " +
" from porder where ORD_DATE >= (select ADD_MONTHS(sysdate,-6) from dual)" +
" and case when confirmed " +
" is null then 'N' else confirmed end = 'Y' and case when status is null " +
" then 'O' else status end <> 'X' " +
// +" and supp_code in (select entity_code from entity_contact where entity_type = 'S' and User_id_portal = login_user ) " +
" group by to_char(ORD_DATE, 'MON-YY') ";*/
sql = " select to_char(ORD_DATE, 'MON-YY') as month, sum(tot_amt) as povalue,to_char(ORD_DATE,'MMYY'),count(1) as no_of_po "+
" from porder where ORD_DATE >= (SELECT ADD_MONTHS(SYSDATE,-5) FROM DUAL ) "+
" and case when confirmed is null then 'N' else confirmed end = 'Y' "+
" and case when status is null then 'O' else status end <> 'X' "+
" and supp_code in (select entity_code from entity_contact where entity_type = 'S' and User_id__portal ='"+loginCode+"')"+
" group by to_char(ORD_DATE, 'MON-YY') ,to_char(ORD_DATE,'MMYY') "+
" order by to_char(ORD_DATE,'MMYY') asc ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
int count = 0;
while (rs.next())
{
rowData = new JSONObject();
rowData.put("month", (rs.getString("month")));
rowData.put("povalue", (rs.getString("povalue")));
rowData.put("no_of_po", (rs.getString("no_of_po")));
rawDataPOValueDet.put(count, rowData);
count++;
}
}
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();
System.out.println("Exception in :PendingPurcOrderEJB for getPOValueData Method :" + d.getMessage());
throw new ITMException(d);
}
}
return rawDataPOValueDet;
}
@SuppressWarnings("unchecked")
public JSONObject getPendingInvoice(String loginCode, String dataSourceName) throws RemoteException, ITMException
{
JSONObject rawDataPOValueDet = new JSONObject();
JSONObject rowData = null;
String sql = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
try
{
System.out.println(" Inside PendingPurcOrderEJB for getPendingInvoice Method Data Soruc Name ="+dataSourceName+" logincode is =" + loginCode);
conn = connDriver.getConnectDB(dataSourceName);
connDriver = null;
sql = " select o.purc_order,o.ord_date, o.tot_amt, sum(r.amount) as receipt, " +
" t.descr as warehouse from porder o, porcp r, site s, station t " +
" where r.purc_order = o.purc_order and s.site_code = o.site_code__dlv " +
" and t.stan_code = s.stan_code and not exists (select b.bill_no " +
" from supplier_bill b where b.porder_no = o.purc_order " +
" and (b.bill_no = r.dc_no or b.bill_no = r.invoice_no)) " +
" and o.supp_code in (select entity_code from entity_contact " +
" where entity_type = 'S' and User_id__portal = '"+loginCode+"')" +
" and case when o.confirmed is null then 'N' else o.confirmed end = 'Y' " +
" and case when o.status is null then 'O' else o.status end not in ('X','C')" +
" group by t.descr,o.purc_order,o.ord_date, o.tot_amt ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
int count = 0;
String ord_date="";
gridDateFormat = new SimpleDateFormat( genericUtility.getApplDateFormat());
convrtToTimStmDate = new SimpleDateFormat(genericUtility.getDBDateFormat());
while (rs.next())
{
rowData = new JSONObject();
rowData.put("purc_order", checkNull(rs.getString("purc_order")));
ord_date = checkNull(rs.getString("ord_date"));
if(ord_date.trim().length()>0)
{
rowData.put("ord_date", gridDateFormat.format((convrtToTimStmDate.parse(ord_date))));
}
else
{
rowData.put("ord_date",checkNull(rs.getString("ord_date")));
}
rowData.put("tot_amt", rs.getDouble("tot_amt"));
rowData.put("receipt", checkNull (rs.getString("receipt")));
rowData.put("warehouse", checkNull(rs.getString("warehouse")));
rawDataPOValueDet.put(count, rowData);
count++;
}
}
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();
System.out.println("Exception in :PendingPurcOrderEJB for getPendingInvoice Method :" + d.getMessage());
throw new ITMException(d);
}
}
return rawDataPOValueDet;
}
//POOrderSummary Method
@SuppressWarnings("unchecked")
public JSONObject getPOrderSummary(String loginCode, String dataSourceName) throws RemoteException, ITMException
{
JSONObject rawDataPaymentDet = new JSONObject();
JSONObject rowData = null;
String sql = "";
ResultSet rs = null;
PreparedStatement pstmt = null;
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
String processOrder="",completed="",open="";
try
{
gridDateFormat = new SimpleDateFormat( genericUtility.getApplDateFormat());
convrtToTimStmDate = new SimpleDateFormat(genericUtility.getDBDateFormat());
System.out.println(" Inside PendingPurcOrder for getLastPaymentsData Method Data Soruc Name ="+dataSourceName+" loginCode is =" + loginCode);
conn = connDriver.getConnectDB(dataSourceName);
connDriver = null;
/*to get P Order summary data */
sql = " select sum(tot_amt) as process_orders,count(1) as no_of_po "
+" from porder where ORD_DATE >= (SELECT ADD_MONTHS(SYSDATE,-5) FROM DUAL ) "
+" and case when confirmed is null then 'N' else confirmed end = 'N' "
+" and case when status is null then 'O' else status end not in ('X','C') "
+" and supp_code in (select entity_code from entity_contact where entity_type = 'S' and User_id__portal = '"+loginCode+"') ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
int count = 0;
while (rs.next())
{
rowData = new JSONObject();
rowData.put("status", "In Process ");
rowData.put("process_orders",checkDoubleNull(rs.getString("process_orders")));
rowData.put("no_of_po", rs.getString("no_of_po"));
rawDataPaymentDet.put(count, rowData);
count++;
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
sql = " select sum(tot_amt) as completed,count(1) as no_of_po "
+" from porder where ORD_DATE >= (SELECT ADD_MONTHS(SYSDATE,-5) FROM DUAL ) "
+" and case when confirmed is null then 'N' else confirmed end = 'Y' "
+" and case when status is null then 'O' else status end = 'C' "
+" and supp_code in (select entity_code from entity_contact where entity_type = 'S' and User_id__portal = '"+loginCode+"') ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
while (rs.next())
{
rowData = new JSONObject();
rowData.put("status", "Completed");
rowData.put("process_orders", checkDoubleNull(rs.getString("completed")));
rowData.put("no_of_po", rs.getString("no_of_po"));
rawDataPaymentDet.put(count, rowData);
count++;
}
pstmt.close();
pstmt = null;
rs.close();
rs = null;
sql = " select sum(tot_amt) as open,count(1) as no_of_po "
+" from porder where ORD_DATE >= (SELECT ADD_MONTHS(SYSDATE,-5) FROM DUAL ) "
+" and case when confirmed is null then 'N' else confirmed end = 'Y' "
+" and case when status is null then 'O' else status end not in ('X','C') "
+" and supp_code in (select entity_code from entity_contact where entity_type = 'S' and User_id__portal = '"+loginCode+"' ) ";
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
while (rs.next())
{
rowData = new JSONObject();
rowData.put("status", "Open");
rowData.put("process_orders",checkDoubleNull(rs.getString("open")));
rowData.put("no_of_po", rs.getString("no_of_po"));
rawDataPaymentDet.put(count, rowData);
count++;
}
}
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();
System.out.println("Exception in :SupplierInfoEJB for getPendingPurcOrder Method :" + d.getMessage());
throw new ITMException(d);
}
}
return rawDataPaymentDet;
}
//check null functionallity for required component
private double checkDoubleNull(String str)
{
if(str == null || str.trim().length() == 0 || str.trim().equalsIgnoreCase("null"))
{
return 0.0;
}
else
{
return Math.round(Double.parseDouble(str)* Math.pow(10, 2)) / Math.pow(10, 2);
}
}
private String checkNull(String str)
{
if(str == null || str.trim().equalsIgnoreCase("null"))
{
return "";
}
else
{
return str.trim() ;
}
}
}
package ibase.dashboard.scm.ejb;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
import org.json.simple.JSONObject;
@Local
public interface PendingPurcOrderLocal extends ValidatorLocal
{
public JSONObject getLastFivePaymentsDetail(String prdCode, String dataSourceName) throws RemoteException, ITMException;
public JSONObject getPOValueDetail(String prdCode, String dataSourceName) throws RemoteException, ITMException;
public JSONObject getPendingInvoice(String prdCode, String dataSourceName) throws RemoteException, ITMException;
public JSONObject getPOrderSummary(String prdCode, String dataSourceName) throws RemoteException, ITMException;
}
package ibase.dashboard.scm.ejb;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
import org.json.simple.JSONObject;
@Remote
public interface PendingPurcOrderRemote extends ValidatorRemote
{
public JSONObject getLastFivePaymentsDetail(String prdCode, String dataSourceName) throws RemoteException, ITMException;
public JSONObject getPOValueDetail(String prdCode, String dataSourceName) throws RemoteException, ITMException;
public JSONObject getPendingInvoice(String prdCode, String dataSourceName) throws RemoteException, ITMException;
public JSONObject getPOrderSummary(String prdCode, String dataSourceName) throws RemoteException, ITMException;
}
package ibase.dashboard.scm.servlet;
import ibase.dashboard.scm.ejb.PendingPurcOrderRemote;
import ibase.system.config.AppConnectParm;
import ibase.webitm.utility.ITMException;
import java.io.IOException;
import java.io.OutputStream;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.json.simple.JSONObject;
public class POrderSummaryServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
JSONObject jsonObjMetaData =null;
JSONObject jsonMetaData = null;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
doPost(request, response);
}
@SuppressWarnings("unchecked")
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
PendingPurcOrderRemote custInfoRemote = null;
InitialContext context = null;
AppConnectParm appConnectParm = new AppConnectParm();
String dataSourceName = "";
String loginId = "";
try
{
response.setContentType("application/xml");
HttpSession session = request.getSession(true);
ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
loginId = userInfo.getLoginCode();
/*if(loginId==null ||loginId=="" )
{
loginId="62851";
}*/
dataSourceName =request.getParameter("dataSourceName");
System.out.println( "loginId is =" + loginId );
context = new InitialContext(appConnectParm.getProperty());
custInfoRemote = (PendingPurcOrderRemote)context.lookup("ibase/PendingPurcOrder/remote");
JSONObject jsonObjData = (JSONObject)custInfoRemote.getPOrderSummary(loginId,dataSourceName);
OutputStream outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush();
outputStream.close();
System.out.println(" Final data set for POrderSummaryServlet build the Graph is===" + jsonObjData);
} catch (Exception e)
{
System.out.println("Exception : POrderSummaryServlet :" + e);
try
{
throw new ITMException(e);
} catch (ITMException e1)
{
e1.printStackTrace();
}
}
}
}
package ibase.dashboard.scm.servlet;
import ibase.dashboard.scm.ejb.PendingPurcOrderRemote;
import ibase.system.config.AppConnectParm;
import ibase.webitm.utility.ITMException;
import java.io.IOException;
import java.io.OutputStream;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.json.simple.JSONObject;
public class PendingInvoiceServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
JSONObject jsonObjMetaData =null;
JSONObject jsonMetaData = null;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
doPost(request, response);
}
@SuppressWarnings("unchecked")
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
PendingPurcOrderRemote pendingPurcOrdRemote = null;
InitialContext context = null;
AppConnectParm appConnectParm = new AppConnectParm();
String dataSourceName = "";
String loginId = "";
try
{
response.setContentType("application/xml");
HttpSession session = request.getSession(true);
ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
loginId = userInfo.getLoginCode();
/*if(loginId==null ||loginId=="" )
{
loginId="62851";
}*/
dataSourceName =request.getParameter("dataSourceName");
System.out.println( "loginId is =" + loginId );
context = new InitialContext(appConnectParm.getProperty());
pendingPurcOrdRemote = (PendingPurcOrderRemote)context.lookup("ibase/PendingPurcOrder/remote");
JSONObject jsonObjData = (JSONObject)pendingPurcOrdRemote.getPendingInvoice(loginId,dataSourceName);
OutputStream outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush();
outputStream.close();
System.out.println(" Final data set for PendingInvoiceServlet build the Graph is===" + jsonObjData);
} catch (Exception e)
{
System.out.println("Exception : PendingInvoiceServlet :" + e);
try
{
throw new ITMException(e);
} catch (ITMException e1)
{
e1.printStackTrace();
}
}
}
}
\ No newline at end of file
package ibase.dashboard.scm.servlet;
import ibase.dashboard.scm.ejb.PendingPurcOrderRemote;
import ibase.system.config.AppConnectParm;
import ibase.webitm.utility.ITMException;
import java.io.IOException;
import java.io.OutputStream;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.json.simple.JSONObject;
public class PendingPurcOrderServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
JSONObject jsonObjMetaData =null;
JSONObject jsonMetaData = null;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
doPost(request, response);
}
@SuppressWarnings("unchecked")
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
PendingPurcOrderRemote pendingPurcOrderRemote = null;
InitialContext context = null;
AppConnectParm appConnectParm = new AppConnectParm();
String dataSourceName = "";
String loginId = "";
try
{
response.setContentType("application/xml");
HttpSession session = request.getSession(true);
ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
loginId = userInfo.getLoginCode();
/*if(loginId==null ||loginId=="" )
{
loginId="62851";
}*/
dataSourceName =request.getParameter("dataSourceName");
System.out.println( "loginId is =" + loginId );
context = new InitialContext(appConnectParm.getProperty());
pendingPurcOrderRemote = (PendingPurcOrderRemote)context.lookup("ibase/PendingPurcOrder/remote");
JSONObject jsonObjData = (JSONObject)pendingPurcOrderRemote.getLastFivePaymentsDetail(loginId,dataSourceName);
OutputStream outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush();
outputStream.close();
System.out.println(" Final data set for PendingPurcOrderServlet build the Graph is===" + jsonObjData);
} catch (Exception e)
{
System.out.println("Exception : PendingPurcOrderServlet :" + e);
try
{
throw new ITMException(e);
} catch (ITMException e1)
{
e1.printStackTrace();
}
}
}
}
package ibase.dashboard.scm.servlet;
import ibase.dashboard.scm.ejb.PendingPurcOrderRemote;
import ibase.system.config.AppConnectParm;
import ibase.webitm.utility.ITMException;
import java.io.IOException;
import java.io.OutputStream;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.json.simple.JSONObject;
public class PendingPurcOrderValServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
JSONObject jsonObjMetaData =null;
JSONObject jsonMetaData = null;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
doPost(request, response);
}
@SuppressWarnings("unchecked")
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
PendingPurcOrderRemote pendingPurcOrderRemote = null;
InitialContext context = null;
AppConnectParm appConnectParm = new AppConnectParm();
String dataSourceName = "";
String loginId = "";
try
{
response.setContentType("application/xml");
HttpSession session = request.getSession(true);
ibase.utility.UserInfoBean userInfo = (ibase.utility.UserInfoBean) session.getAttribute("USER_INFO");
loginId = userInfo.getLoginCode();
/*if(loginId==null ||loginId=="" )
{
loginId="62851";
}*/
dataSourceName =request.getParameter("dataSourceName");
System.out.println( "loginId is =" + loginId );
context = new InitialContext(appConnectParm.getProperty());
pendingPurcOrderRemote = (PendingPurcOrderRemote)context.lookup("ibase/PendingPurcOrder/remote");
JSONObject jsonObjData = (JSONObject)pendingPurcOrderRemote.getPOValueDetail(loginId,dataSourceName);
OutputStream outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush();
outputStream.close();
System.out.println(" Final data set for PendingPurcOrderValServlet build the Graph is===" + jsonObjData);
} catch (Exception e)
{
System.out.println("Exception : PendingPurcOrderValServlet :" + e);
try
{
throw new ITMException(e);
} catch (ITMException e1)
{
e1.printStackTrace();
}
}
}
}
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