Commit b161223f authored by vvengurlekar's avatar vvengurlekar

Added sql changes and logic change for 4th and 5th level for live events dashboard


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105363 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4110fd97
...@@ -12,5 +12,5 @@ public interface LiveEventDetailsLocal extends ValidatorLocal ...@@ -12,5 +12,5 @@ public interface LiveEventDetailsLocal extends ValidatorLocal
public JSONObject getParticipentEventSummary(String dataSourceName,String eventCode) throws RemoteException, ITMException; public JSONObject getParticipentEventSummary(String dataSourceName,String eventCode) throws RemoteException, ITMException;
public JSONObject getParticipentEventDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException; public JSONObject getParticipentEventDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException;
public JSONObject getParticipentProductDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException; public JSONObject getParticipentProductDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException;
public JSONObject getProductDetail(String dataSourceName,String personName,String productName,String mgrCode,String eventCode) throws RemoteException, ITMException; public JSONObject getProductDetail(String dataSourceName,String personName,String productName,String mgrCode,String eventCode, String newTranId) throws RemoteException, ITMException;
} }
...@@ -13,5 +13,5 @@ public interface LiveEventDetailsRemote extends ValidatorRemote ...@@ -13,5 +13,5 @@ public interface LiveEventDetailsRemote extends ValidatorRemote
public JSONObject getParticipentEventSummary(String dataSourceName,String eventCode) throws RemoteException, ITMException; public JSONObject getParticipentEventSummary(String dataSourceName,String eventCode) throws RemoteException, ITMException;
public JSONObject getParticipentEventDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException; public JSONObject getParticipentEventDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException;
public JSONObject getParticipentProductDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException; public JSONObject getParticipentProductDetail(String dataSourceName,String eventCode,String participentCode) throws RemoteException, ITMException;
public JSONObject getProductDetail(String dataSourceName,String personName,String productName,String mgrCode,String eventCode) throws RemoteException, ITMException; public JSONObject getProductDetail(String dataSourceName,String personName,String productName,String mgrCode,String eventCode, String newTranId) throws RemoteException, ITMException;
} }
...@@ -33,6 +33,7 @@ public class ProductDetailServlet extends HttpServlet ...@@ -33,6 +33,7 @@ public class ProductDetailServlet extends HttpServlet
String productName = ""; String productName = "";
String uniqueCode = ""; String uniqueCode = "";
String eventCode = ""; String eventCode = "";
String newTranId = "";
try try
{ {
response.setContentType("application/xml"); response.setContentType("application/xml");
...@@ -41,11 +42,12 @@ public class ProductDetailServlet extends HttpServlet ...@@ -41,11 +42,12 @@ public class ProductDetailServlet extends HttpServlet
productName = request.getParameter("productName"); productName = request.getParameter("productName");
uniqueCode = request.getParameter("code"); uniqueCode = request.getParameter("code");
eventCode = request.getParameter("eventCode"); eventCode = request.getParameter("eventCode");
newTranId = request.getParameter("newTranId");
System.out.println("uniqueCode==="+uniqueCode); System.out.println("uniqueCode==="+uniqueCode);
System.out.println(" ProductDetailServlet uniqueCode ="+uniqueCode+"=== personName =" + personName + "===== dataSourceName :"+dataSourceName); System.out.println(" ProductDetailServlet uniqueCode ="+uniqueCode+"=== personName =" + personName + "===== dataSourceName :"+dataSourceName);
context = new InitialContext(appConnectParm.getProperty()); context = new InitialContext(appConnectParm.getProperty());
liveEventDetailsRemote = (LiveEventDetailsRemote) context.lookup("ibase/LiveEventDetails/remote"); liveEventDetailsRemote = (LiveEventDetailsRemote) context.lookup("ibase/LiveEventDetails/remote");
JSONObject jsonObjData = (JSONObject) liveEventDetailsRemote.getProductDetail(dataSourceName,personName,productName,uniqueCode,eventCode); JSONObject jsonObjData = (JSONObject) liveEventDetailsRemote.getProductDetail(dataSourceName,personName,productName,uniqueCode,eventCode,newTranId);
OutputStream outputStream = response.getOutputStream(); OutputStream outputStream = response.getOutputStream();
outputStream.write(jsonObjData.toString().getBytes()); outputStream.write(jsonObjData.toString().getBytes());
outputStream.flush(); outputStream.flush();
......
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