Commit 7f8dc113 authored by sbade's avatar sbade

changes as per client side code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97704 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 22dc18da
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -12,10 +12,8 @@ import org.json.simple.JSONObject; ...@@ -12,10 +12,8 @@ import org.json.simple.JSONObject;
@Local @Local
public interface SalesPerformanceLocal extends ValidatorLocal public interface SalesPerformanceLocal extends ValidatorLocal
{ {
public JSONObject getGridData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getProfitGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getProfitGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getExpenseGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getMnthlySalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getMnthlySalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getYTDSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getYTDSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getMnthSalesDivWiseGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getMnthSalesDivWiseGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
...@@ -26,6 +24,4 @@ public interface SalesPerformanceLocal extends ValidatorLocal ...@@ -26,6 +24,4 @@ public interface SalesPerformanceLocal extends ValidatorLocal
public JSONObject getBrandWiseZoneDetail(String dataSourceName,String month,String brandName) throws RemoteException, ITMException; public JSONObject getBrandWiseZoneDetail(String dataSourceName,String month,String brandName) throws RemoteException, ITMException;
public JSONObject getBrandZoneWiseMetroDetail(String dataSourceName,String month,String brandName,String zoneDescr,String divDescr) throws RemoteException, ITMException; public JSONObject getBrandZoneWiseMetroDetail(String dataSourceName,String month,String brandName,String zoneDescr,String divDescr) throws RemoteException, ITMException;
public JSONObject getTopBrandMTH(String dataSourceName,String month,String divCode) throws RemoteException, ITMException; public JSONObject getTopBrandMTH(String dataSourceName,String month,String divCode) throws RemoteException, ITMException;
public JSONObject getProfitYTDGraphData(String dataSourceName, String month) throws RemoteException, ITMException;
public JSONObject getExpenseYTDGraphData(String dataSourceName, String month) throws RemoteException, ITMException;
} }
...@@ -11,10 +11,8 @@ import org.json.simple.JSONObject; ...@@ -11,10 +11,8 @@ import org.json.simple.JSONObject;
@Remote @Remote
public interface SalesPerformanceRemote extends ValidatorRemote public interface SalesPerformanceRemote extends ValidatorRemote
{ {
public JSONObject getGridData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getProfitGraphData(String dataSourceName ,String month) throws RemoteException, ITMException; public JSONObject getProfitGraphData(String dataSourceName ,String month) throws RemoteException, ITMException;
public JSONObject getExpenseGraphData(String dataSourceName ,String month) throws RemoteException, ITMException;
public JSONObject getMnthlySalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getMnthlySalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getYTDSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getYTDSalesGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
public JSONObject getMnthSalesDivWiseGraphData(String dataSourceName,String month) throws RemoteException, ITMException; public JSONObject getMnthSalesDivWiseGraphData(String dataSourceName,String month) throws RemoteException, ITMException;
...@@ -25,6 +23,4 @@ public interface SalesPerformanceRemote extends ValidatorRemote ...@@ -25,6 +23,4 @@ public interface SalesPerformanceRemote extends ValidatorRemote
public JSONObject getTopBrandMTH(String dataSourceName,String month,String divCode) throws RemoteException, ITMException; public JSONObject getTopBrandMTH(String dataSourceName,String month,String divCode) throws RemoteException, ITMException;
public JSONObject getBrandWiseZoneDetail(String dataSourceName,String month,String brandName) throws RemoteException, ITMException; public JSONObject getBrandWiseZoneDetail(String dataSourceName,String month,String brandName) throws RemoteException, ITMException;
public JSONObject getBrandZoneWiseMetroDetail(String dataSourceName,String month,String brandName,String zoneDescr,String divDescr) throws RemoteException, ITMException; public JSONObject getBrandZoneWiseMetroDetail(String dataSourceName,String month,String brandName,String zoneDescr,String divDescr) throws RemoteException, ITMException;
public JSONObject getProfitYTDGraphData(String dataSourceName, String month) throws RemoteException, ITMException;
public JSONObject getExpenseYTDGraphData(String dataSourceName, String month) throws RemoteException, ITMException;
} }
...@@ -24,7 +24,15 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -24,7 +24,15 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
/*** 1 - This method will contains final data for rendering Top Brands graph ***/ /*** 1.
*
* Method Name : getAllIndiaTopBrandData(String dataSourceName, String month, String topNos)
* Servlet Name : AllIndiaTopBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering All India Top Brand graph.
* Graph Caption :
* 1. All India Top Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getAllIndiaTopBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getAllIndiaTopBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
...@@ -94,15 +102,22 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -94,15 +102,22 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMthlySalesJson; return rawDataMthlySalesJson;
} }
/** End of method getAllIndiaTopBrandData() **/
/***
* 2 - This method will contains final data for rendering division wise
* graph CNS /*** 2.
***/ *
* Method Name : getCNSDivisionBrandData(String dataSourceName, String month,String topNos)
* Servlet Name : CNSDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering CNS Top Brand graph.
* Graph Caption :
* 1. CNS Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getCNSDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getCNSDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -165,15 +180,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -165,15 +180,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of Method getCNSDivisionBrandData() **/
/***
* 3 - This method will contains final data for rendering division wise /*** 3.
* graph CVD *
***/ * Method Name : getCVDDivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : CVDDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering CVD Top Brand graph.
* Graph Caption :
* 1. CVD Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getCVDDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getCVDDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -235,15 +255,21 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -235,15 +255,21 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getCVDDivisionBrandData() **/
/*** /*** 4.
*4- This method will contains final data for rendering division wise *
* graph GI/PAIN * Method Name : getGIPAINDivisionBrandData(String dataSourceName,String month, String topNos)
***/ * Servlet Name : GIPAINDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering GI/PAIN Top Brand graph.
* Graph Caption :
* 1. GI/PAIN Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getGIPAINDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getGIPAINDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -305,15 +331,21 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -305,15 +331,21 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getGIPAINDivisionBrandData() **/
/***
* 5- This method will contains final data for rendering division wise /*** 5.
* graph GYNAEC *
***/ * Method Name : getGYNAECDivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : GYNAECDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering GYNAEC Top Brand graph.
* Graph Caption :
* 1. GYNAEC Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getGYNAECDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getGYNAECDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -376,15 +408,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -376,15 +408,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getGYNAECDivisionBrandData() **/
/***
* 6 - This method will contains final data for rendering division wise /*** 6.
* graph OPTHAL *
***/ * Method Name : getOPTHALDivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : OPTHALDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering OPTHAL Top Brand graph.
* Graph Caption :
* 1. OPTHAL Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getOPTHALDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getOPTHALDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -446,13 +483,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -446,13 +483,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getOPTHALDivisionBrandData() **/
//add new method on dated 5-aug-20014
//method 7 /*** 7.
*
* Method Name : getURODivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : URODivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering URO Top Brand graph.
* Graph Caption :
* 1. URO Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getURODivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getURODivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -513,9 +557,18 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -513,9 +557,18 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getURODivisionBrandData() **/
/*** 8.
*
* Method Name : getONCODivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : ONCODivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering ONCO Top Brand graph.
* Graph Caption :
* 1. ONCO Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
//method 8
public JSONObject getONCODivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getONCODivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
...@@ -580,9 +633,16 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -580,9 +633,16 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/*** 9.
@SuppressWarnings("unchecked") *
//method 9 * Method Name : getDERMADivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : DERMADivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering DERMA Top Brand graph.
* Graph Caption :
* 1. DERMA Top 10 Brands
* ***/
@SuppressWarnings("unchecked")
public JSONObject getDERMADivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getDERMADivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
...@@ -646,13 +706,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc ...@@ -646,13 +706,20 @@ public class SalesPerformanceTwo extends ValidatorEJB implements SalesPerformanc
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getDERMADivisionBrandData() **/
@SuppressWarnings("unchecked") /*** 10.
//method 10 *
public JSONObject getRESPDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException * Method Name : getRESPDivisionBrandData(String dataSourceName,String month, String topNos)
{ * Servlet Name : RESPDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering RESP Top Brand graph.
* Graph Caption :
* 1. RESP Top 10 Brands
* ***/
@SuppressWarnings("unchecked")
public JSONObject getRESPDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{
JSONObject rawDataMnthDivWiseSalesJson = new JSONObject(); JSONObject rawDataMnthDivWiseSalesJson = new JSONObject();
JSONObject rowData = null; JSONObject rowData = null;
String sql = ""; String sql = "";
...@@ -712,12 +779,18 @@ public JSONObject getRESPDivisionBrandData(String dataSourceName, String month, ...@@ -712,12 +779,18 @@ public JSONObject getRESPDivisionBrandData(String dataSourceName, String month,
} }
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getRESPDivisionBrandData() **/
/***
* 11 - This method will contains final data for rendering division wise /*** 11.
* graph SPL CARE *
***/ * Method Name : getOtherDivisionBrandData(String dataSourceName,String month, String topNos)
* Servlet Name : OTHERDivisionBrandServlet
* Metadataxml Name : topbrandsdasboard.xml
* Description : This method returns raw data for rendering Other Brand graph.
* Graph Caption :
* 1. Other Top 10 Brands
* ***/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public JSONObject getOtherDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException public JSONObject getOtherDivisionBrandData(String dataSourceName, String month, String topNos) throws RemoteException, ITMException
{ {
...@@ -783,6 +856,7 @@ public JSONObject getRESPDivisionBrandData(String dataSourceName, String month, ...@@ -783,6 +856,7 @@ public JSONObject getRESPDivisionBrandData(String dataSourceName, String month,
} }
return rawDataMnthDivWiseSalesJson; return rawDataMnthDivWiseSalesJson;
} }
/** End of method getOtherDivisionBrandData() **/
private String checkNull(String str) private String checkNull(String str)
{ {
......
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