Commit 922b9cbe authored by vpathare's avatar vpathare

links implementation in dashBoard for mobile

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@180205 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bea861d6
......@@ -110,12 +110,24 @@ public class AttendanceCompliance extends ValidatorEJB implements AttendanceComp
userImagePath = CommonConstants.TOMCAT_HOME+"/ibase/CustomMenuImageServlet?fldValue="+salesPersCode+"&object="+object+"&objName="+object+"&ALT_FLD_VALUE="+salesPersName;
tran_image = "<img class='cardProdImg2' src='"+userImagePath+"' style='margin-top:-15px;'/>";
String devisonWiseRegion = checkNull(rs.getString("DIVISION"))+" "+checkNull(rs.getString("REGION"));
//added by vishal pathare on 8.2.18 for[feed data for links implementation]Start
JSONObject feedDataJson = new JSONObject();
feedDataJson.put( "SALES_PERS", salesPersCode );
feedDataJson.put( "SP_NAME", salesPersName );
feedDataJson.put( "STATE", state );
feedDataJson.put( "EMP_NAME", reportHead );
feedDataJson.put( "NOT_REPORTED_DAYS", notReportingDays );
feedDataJson.put( "MOBILE_NO", mobileNo );
String jsonString = feedDataJson.toString();
String feedData = jsonString.replaceAll("\\\\","");
System.out.println("feedData string is["+feedData+"]");
//added by vishal pathare on 8.2.18 for[feed data for links implementation]End
if(regionWiseAttendanceMap.containsKey(devisonWiseRegion))
{
complianceReport.add("<div class='tdMousehover'>" +
"<table border='0' cellpadding='0' cellspacing='1' width='100%' style= 'padding: 2px;margin:auto;'>" +
"<tr class = 'row' id='"+salesPersCode+"' onclick='getRowWisePkValue(this.id)'>" +
"<tr class = 'row' id='"+salesPersCode+"' feedDataJson='"+feedData+"' onclick='getRowWisePkValue(this.id)'>" +
"<td width='2%'>"+tran_image+"</td>" +
"<td><table cellpadding='0' cellspacing='0' width='70%' style='padding-left:5px;'>" +
"<tr><td><table cellpadding='0' cellspacing='1'>" +
......@@ -139,7 +151,7 @@ public class AttendanceCompliance extends ValidatorEJB implements AttendanceComp
complianceReport = new ArrayList<String>();
complianceReport.add("<div class='tdMousehover'>" +
"<table border='0' cellpadding='0' cellspacing='1' width='100%' style= 'padding: 2px;margin:auto;'>" +
"<tr class = 'row' id='"+salesPersCode+"' onclick='getRowWisePkValue(this.id)'>" +
"<tr class = 'row' id='"+salesPersCode+"' feedDataJson='"+feedData+"' onclick='getRowWisePkValue(this.id)'>" +
"<td width='2%'>"+tran_image+"</td>" +
"<td><table cellpadding='0' cellspacing='0' width='70%' style='padding-left:5px;'>" +
"<tr><td><table cellpadding='0' cellspacing='1'>" +
......
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