Commit 1cff820f authored by sbade's avatar sbade

Added merged source code for all


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100094 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6a0a8983
...@@ -3,7 +3,6 @@ package ibase.client; ...@@ -3,7 +3,6 @@ package ibase.client;
import java.util.ArrayList; import java.util.ArrayList;
import com.google.gwt.json.client.JSONObject; import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.ScrollPanel;
......
...@@ -18,7 +18,6 @@ import com.google.gwt.user.client.DOM; ...@@ -18,7 +18,6 @@ import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Window; import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.view.client.ListDataProvider; import com.google.gwt.view.client.ListDataProvider;
import ibase.client.resources.Resources;
/** /**
* This class is used to show the data in paged format. * This class is used to show the data in paged format.
...@@ -31,7 +30,6 @@ public class CellTableGridCreator ...@@ -31,7 +30,6 @@ public class CellTableGridCreator
public CellTableGridCreator() { public CellTableGridCreator() {
// TODO Auto-generated constructor stub
} }
ListDataProvider<CellTableGridInfo> dataProvider = new ListDataProvider<CellTableGridInfo>(); ListDataProvider<CellTableGridInfo> dataProvider = new ListDataProvider<CellTableGridInfo>();
......
...@@ -4,7 +4,6 @@ import java.util.ArrayList; ...@@ -4,7 +4,6 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.Set; import java.util.Set;
...@@ -212,8 +211,10 @@ public class ChartCreator ...@@ -212,8 +211,10 @@ public class ChartCreator
if(fetchRowWiseVal.get(yAxisColunList.get(yCnt))!=null) if(fetchRowWiseVal.get(yAxisColunList.get(yCnt))!=null)
{ {
currentvalue = (fetchRowWiseVal.get(yAxisColunList.get(yCnt)).toString().replace('"', ' ').trim()); currentvalue = (fetchRowWiseVal.get(yAxisColunList.get(yCnt)).toString().replace('"', ' ').trim());
valueList.add(currentvalue); valueList.add(currentvalue);
} }
} }
allDataMap.put(key, valueList); allDataMap.put(key, valueList);
key = ""; key = "";
...@@ -260,10 +261,71 @@ public class ChartCreator ...@@ -260,10 +261,71 @@ public class ChartCreator
barChartMap = new LinkedHashMap<JSONValue, JSONValue>(); barChartMap = new LinkedHashMap<JSONValue, JSONValue>();
dataStringValue = new JSONString("" + mapValuList.get(seriesCnt)); dataStringValue = new JSONString("" + mapValuList.get(seriesCnt));
barChartMap.put(dataStringKey, dataStringValue); barChartMap.put(dataStringKey, dataStringValue);
barChartMap.put(new JSONString("showValue"), new JSONString(showValList.get(seriesCnt))); barChartMap.put(new JSONString("showValue"), new JSONString(showValList.get(seriesCnt)));
/*added by swati for horizanotal bar graph and to link on 16 Nov 2015*/
barChartMap.put(new JSONString("label"), new JSONString((monthKey.replace('"', ' ').trim())));
if(linkLMetadataList.get(seriesCnt).length()>0)
{
linkStringKey = new JSONString("link");
String temp = Window.Location.getHref();
String prevUrl = temp.substring(temp.indexOf('&'), temp.length());
//String period =parameterList.get(1);
String url=Window.Location.getParameter("titleName");
String prdFilter="",propertyStr="";
int count=0;
for (FilterInfo filterInfo : filterList)
{
if(count==0)
{
propertyStr = "&"+filterInfo.getFieldName()+"@"+parameterList.get(count+1);
}
else
{
propertyStr = propertyStr+"&"+filterInfo.getFieldName()+"@"+parameterList.get(count+1);
}
count++;
}
if(prdFilterName.length()>0)
{
prdFilter=prdFilterName;
}
if(url=="undefined" || url.equals("undefined") || url.equalsIgnoreCase("undefined"))
{
url="&titleName@"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim();
}
else
{
url="&titleName@"+url+":"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim();
}
if((prevUrl).trim().length()>1)
{
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+prevUrl.replace('=', '@')+propertyStr+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+prevUrl.replace('=', '@')+propertyStr+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}
}
else
{
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n"))
{
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p")){
linkStringValue=new JSONString(linkTypeList.get(seriesCnt)+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}
}
barChartMap.put(linkStringKey, linkStringValue);
}
/*ended by swati for horizanotal bar graph and to link on 16 Nov 2015*/
barValueList.add(barChartMap); barValueList.add(barChartMap);
} }
barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':')); barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':'));
if ("column".equals(renderInfoList.get(seriesCnt))) if ("column".equals(renderInfoList.get(seriesCnt)))
{ {
...@@ -316,7 +378,6 @@ public class ChartCreator ...@@ -316,7 +378,6 @@ public class ChartCreator
mapValuList = allDataMap.get(keyString); mapValuList = allDataMap.get(keyString);
categoryMap = new LinkedHashMap<JSONValue, JSONValue>(); categoryMap = new LinkedHashMap<JSONValue, JSONValue>();
keyString = keyString.replace('"', ' ').trim(); keyString = keyString.replace('"', ' ').trim();
/*Add color for pie chart for compliance Dashboard JNJ by Dhanendra 16Jun2015*/ /*Add color for pie chart for compliance Dashboard JNJ by Dhanendra 16Jun2015*/
if(keyString.equals("NR")) if(keyString.equals("NR"))
{ {
...@@ -337,9 +398,22 @@ public class ChartCreator ...@@ -337,9 +398,22 @@ public class ChartCreator
jsnStringKey = new JSONString("label"); jsnStringKey = new JSONString("label");
categoryMap.put(jsnStringKey, jsnStringValue); categoryMap.put(jsnStringKey, jsnStringValue);
dataStringKey = new JSONString("value"); dataStringKey = new JSONString("value");
if(mapValuList.size()>0)
{
for (int seriesCnt = 0; seriesCnt < mapValuList.size(); seriesCnt++) for (int seriesCnt = 0; seriesCnt < mapValuList.size(); seriesCnt++)
{ {
dataStringValue = new JSONString("" + mapValuList.get(seriesCnt)); dataStringValue = new JSONString("" + mapValuList.get(seriesCnt));
/*added new code for tooltip by swati 02 dec 2015*/
if(mapValuList.get(seriesCnt).contains("@"))
{
String [] temp = mapValuList.get(seriesCnt).split("@");
dataStringValue = new JSONString("" + temp[0]);
categoryMap.put(new JSONString("tooltext"), new JSONString(temp[1]+" "+temp[0]));
}
else {
dataStringValue = new JSONString("" + mapValuList.get(seriesCnt));
}
/*ended by swati 02 dec 2015*/
categoryMap.put(dataStringKey, dataStringValue); categoryMap.put(dataStringKey, dataStringValue);
if(linkLMetadataList.get(seriesCnt).length()>0) if(linkLMetadataList.get(seriesCnt).length()>0)
{ {
...@@ -349,10 +423,7 @@ public class ChartCreator ...@@ -349,10 +423,7 @@ public class ChartCreator
String period =parameterList.get(1); String period =parameterList.get(1);
String url=Window.Location.getParameter("titleName"); String url=Window.Location.getParameter("titleName");
String prdFilter=""; String prdFilter="",propertyStr="";
/*Added code to open new chart in frame by swati 25 Nov 2015*/
String propertyStr="";
int count=0; int count=0;
for (FilterInfo filterInfo : filterList) for (FilterInfo filterInfo : filterList)
{ {
...@@ -379,30 +450,32 @@ public class ChartCreator ...@@ -379,30 +450,32 @@ public class ChartCreator
{ {
url="&titleName@"+url+":"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim(); url="&titleName@"+url+":"+(FilterCreator.title).get(0)+(""+jsnStringValue).replace('"', ' ').trim();
} }
String linkType=linkTypeList.get(seriesCnt).trim();
if((prevUrl).trim().length()>1) if((prevUrl).trim().length()>1)
{ {
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n"))
//--start---by swati 30 nov 2015
if(linkType.equalsIgnoreCase("n"))
{ {
if(linkLMetadataList.get(seriesCnt).trim().contains("/")) if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else { }else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
} }
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p")) else if(linkType.equalsIgnoreCase("p"))
{ {
if(linkLMetadataList.get(seriesCnt).trim().contains("/")) if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-detailsPopUp,"+linkedProperties+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else { }else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
} }
/*Added code to open new chart in frame by swati 18 Aug 2015*/
/*Added code to open new chart in frame by swati 25 Nov 2015*/ if(linkType.equalsIgnoreCase("f"))
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("f"))
{ {
String cellValue=(""+dataStringValue).replace('"', ' '); String cellValue=(""+dataStringValue).replace('"', ' ');
String urlStr=""; String urlStr="";
...@@ -412,33 +485,36 @@ public class ChartCreator ...@@ -412,33 +485,36 @@ public class ChartCreator
linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')"); linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')");
} }
} }
/*ended code to open new chart in frame by swati 25 Nov 2015*/ /*ended code to open new chart in frame by swati 18 Aug 2015*/
//-----end---by swati 30 nov 2015------
} }
else else
{ {
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("n"))
//-----start--- 30 nov 2015------
if(linkType.equalsIgnoreCase("n"))
{ {
if(linkLMetadataList.get(seriesCnt).trim().contains("/")) if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else { }else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-"+"/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
} }
else if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("p")) else if(linkType.equalsIgnoreCase("p"))
{ {
if(linkLMetadataList.get(seriesCnt).trim().contains("/")) if(linkLMetadataList.get(seriesCnt).trim().contains("/"))
{ {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-detailsPopUp,"+linkedProperties+"-"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
}else { }else {
linkStringValue=new JSONString(linkTypeList.get(seriesCnt).trim()+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
} }
/*Added code to open new chart in frame by swati 25 Nov 2015*/ /*Added code to open new chart in frame by swati 18 Aug 2015*/
if(linkTypeList.get(seriesCnt).trim().equalsIgnoreCase("f")) if(linkType.equalsIgnoreCase("f"))
{ {
String metadataName=parameterList.get(0); //String metadataName=parameterList.get(0);
String cellValue=(""+dataStringValue).replace('"', ' '); String cellValue=(""+dataStringValue).replace('"', ' ');
String urlStr=""; String urlStr="";
String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim(); String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim();
...@@ -447,22 +523,20 @@ public class ChartCreator ...@@ -447,22 +523,20 @@ public class ChartCreator
linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')"); linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')");
} }
} }
/*ended code to open new chart in frame by swati 25 Nov 2015*/ /*ended code to open new chart in frame by swati 18 Aug 2015*/
//-----end--- 30 nov 2015------
} }
categoryMap.put(linkStringKey, linkStringValue); categoryMap.put(linkStringKey, linkStringValue);
} }
/*ended for serdia*/
/*ended link code fpr poup,new tab,frame by swati date 25 Nov 2015*/
barValueList.add(categoryMap); barValueList.add(categoryMap);
barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':')); barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':'));
} }
}
graphJson.put("data", barDataVal); graphJson.put("data", barDataVal);
} }
} }
if(chartTypeList.get(0).trim().equals("stack")) if(chartTypeList.get(0).trim().equals("stack"))
{ {
//HashMap<String, String> dMap = new HashMap<String, String>();
int count = 0; int count = 0;
for (String keyString : valueMapSet) for (String keyString : valueMapSet)
{ {
...@@ -490,6 +564,8 @@ public class ChartCreator ...@@ -490,6 +564,8 @@ public class ChartCreator
if(!barChartMap.containsKey(jsnStringKey)) if(!barChartMap.containsKey(jsnStringKey))
{ {
barChartMap.put(dataStringKey, new JSONString(tempArr[1])); barChartMap.put(dataStringKey, new JSONString(tempArr[1]));
linkStringKey = new JSONString("link"); linkStringKey = new JSONString("link");
/*started code link in stack by swati 10 aug 2015*/ /*started code link in stack by swati 10 aug 2015*/
String temp = Window.Location.getHref(); String temp = Window.Location.getHref();
...@@ -570,6 +646,7 @@ public class ChartCreator ...@@ -570,6 +646,7 @@ public class ChartCreator
//Window.alert("linkStringKey: "+linkStringKey+"\nlinkStringValue:"+linkStringValue); //Window.alert("linkStringKey: "+linkStringKey+"\nlinkStringValue:"+linkStringValue);
/*ended code link in stack by swati 10 aug 2015*/ /*ended code link in stack by swati 10 aug 2015*/
barChartMap.put(linkStringKey, linkStringValue); barChartMap.put(linkStringKey, linkStringValue);
} }
} }
if(! labelList.contains(categoryMap)) if(! labelList.contains(categoryMap))
...@@ -632,15 +709,29 @@ public class ChartCreator ...@@ -632,15 +709,29 @@ public class ChartCreator
keyString = keyString.replace('"', ' ').trim(); keyString = keyString.replace('"', ' ').trim();
jsnStringValue = new JSONString(keyString); jsnStringValue = new JSONString(keyString);
jsnStringKey = new JSONString("label"); jsnStringKey = new JSONString("label");
dataStringKey = new JSONString("value");
/*end of new code by swati on 23 dec 2014*/ /*end of new code by swati on 23 dec 2014*/
monthKey = (String) array[columnCnt]; monthKey = (String) array[columnCnt];
mapValuList = allDataMap.get(monthKey); mapValuList = allDataMap.get(monthKey);
/*added new code for tooltip by swati 02 dec 2015*/
if(mapValuList.get(seriesCnt).contains("@"))
{
String [] temp = mapValuList.get(seriesCnt).split("@");
dataStringValue = new JSONString("" + temp[0]);
barChartMap.put(new JSONString("tooltext"), new JSONString(temp[1]+" "+temp[0]));
}
else {
dataStringValue = new JSONString("" + mapValuList.get(seriesCnt)); dataStringValue = new JSONString("" + mapValuList.get(seriesCnt));
}
/*ended by swati 02 dec 2015*/
dataStringKey = new JSONString("value");
barChartMap.put(dataStringKey, dataStringValue); barChartMap.put(dataStringKey, dataStringValue);
barChartMap.put(new JSONString("showValue"), new JSONString(showValList.get(seriesCnt))); barChartMap.put(new JSONString("showValue"), new JSONString(showValList.get(seriesCnt)));
if(linkLMetadataList.get(seriesCnt).length()>0)
{
linkStringKey = new JSONString("link"); linkStringKey = new JSONString("link");
String temp = Window.Location.getHref(); String temp = Window.Location.getHref();
...@@ -669,7 +760,8 @@ public class ChartCreator ...@@ -669,7 +760,8 @@ public class ChartCreator
} }
if(url=="undefined" || url.equals("undefined") || url.equalsIgnoreCase("undefined")) if(url=="undefined" || url.equals("undefined") || url.equalsIgnoreCase("undefined"))
{ {
if((FilterCreator.title).size()>0){ if((FilterCreator.title).size()>0)
{
url="&titleName@"+(FilterCreator.title).get(0); url="&titleName@"+(FilterCreator.title).get(0);
} }
} }
...@@ -698,11 +790,9 @@ public class ChartCreator ...@@ -698,11 +790,9 @@ public class ChartCreator
linkStringValue=new JSONString(linkType+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim()); linkStringValue=new JSONString(linkType+"-detailsPopUp,"+linkedProperties+"-/ibase/dwh/GwtDashboardPage.html?metadataname@"+linkLMetadataList.get(seriesCnt)+propertyStr+prevUrl.replace('=', '@')+"&"+prdFilter+"@"+period+url+"&"+yAxisColunList.get(seriesCnt)+"@"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim());
} }
} }
/*Added code to open new chart in frame by swati 18 Aug 2015*/ /*Added code to open new chart in frame by swati 18 Aug 2015*/
if(linkType.equalsIgnoreCase("f")) if(linkType.equalsIgnoreCase("f"))
{ {
Window.alert("in f: "+linkType);
String cellValue=(""+dataStringValue).replace('"', ' '); String cellValue=(""+dataStringValue).replace('"', ' ');
String urlStr=""; String urlStr="";
String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim(); String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim();
...@@ -736,20 +826,21 @@ public class ChartCreator ...@@ -736,20 +826,21 @@ public class ChartCreator
/*Added code to open new chart in frame by swati 18 Aug 2015*/ /*Added code to open new chart in frame by swati 18 Aug 2015*/
if(linkType.equalsIgnoreCase("f")) if(linkType.equalsIgnoreCase("f"))
{ {
//CustomGrid data = new CustomGrid(8); //CustomGrid data = new CustomGrid(8);
String metadataName=parameterList.get(0); //String metadataName=parameterList.get(0);
String cellValue=(""+dataStringValue).replace('"', ' '); String cellValue=(""+dataStringValue).replace('"', ' ');
String urlStr=""; String urlStr="";
String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim(); String parameterListString=yAxisColunList.get(seriesCnt)+"&"+(""+dataStringValue).replace('"', ' ').trim()+"&"+xAxisColunList.get(0)+"@"+(""+jsnStringValue).replace('"', ' ').trim();
String xPlotValue = (""+jsnStringValue).replace('"', ' ').trim();
if(linkLMetadataList.get(seriesCnt).trim().length()>0 ) if(linkLMetadataList.get(seriesCnt).trim().length()>0 )
{ {
linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"', 'Y')"); linkStringValue=new JSONString("JavaScript: isJavaScriptCall=true;linkFunction('"+linkLMetadataList.get(seriesCnt)+"', '"+cellValue+"', '"+propertyStr+"','"+ urlStr+"', '"+parameterListString+"','"+xPlotValue+"', 'Y')");
} }
} }
/*ended code to open new chart in frame by swati 18 Aug 2015*/ /*ended code to open new chart in frame by swati 18 Aug 2015*/
} }
barChartMap.put(linkStringKey, linkStringValue); barChartMap.put(linkStringKey, linkStringValue);
}
barValueList.add(barChartMap); barValueList.add(barChartMap);
} }
barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':')); barDataVal = JSONParser.parseStrict(barValueList.toString().replace('=', ':'));
...@@ -778,6 +869,7 @@ public class ChartCreator ...@@ -778,6 +869,7 @@ public class ChartCreator
categryJson.put("category", categryDataVal); categryJson.put("category", categryDataVal);
graphJson.put("dataset", JSONParser.parseStrict(allDataList.toString().replace('=', ':'))); graphJson.put("dataset", JSONParser.parseStrict(allDataList.toString().replace('=', ':')));
graphJson.put("categories", categryJson); graphJson.put("categories", categryJson);
} }
/**End of Linkedd chart logic by swati dates: 22 December 2014 **/ /**End of Linkedd chart logic by swati dates: 22 December 2014 **/
...@@ -795,10 +887,10 @@ public class ChartCreator ...@@ -795,10 +887,10 @@ public class ChartCreator
jsnStringKey = new JSONString("label"); jsnStringKey = new JSONString("label");
categoryMap.put(jsnStringKey, jsnStringValue); categoryMap.put(jsnStringKey, jsnStringValue);
categoryMap.put(new JSONString("value"), new JSONString("" + mapValuList.get(0))); categoryMap.put(new JSONString("value"), new JSONString("" + mapValuList.get(0)));
if(mapValuList.size()>0) /*if(mapValuList.size()>=1)
{ {
categoryMap.put(new JSONString("color"), new JSONString("" + mapValuList.get(1))); categoryMap.put(new JSONString("color"), new JSONString("" + mapValuList.get(1)));
} }*/
labelList.add(categoryMap); labelList.add(categoryMap);
} }
} }
...@@ -808,6 +900,7 @@ public class ChartCreator ...@@ -808,6 +900,7 @@ public class ChartCreator
/**End of Gantt chart logic by swati dated: 04 March 2014 **/ /**End of Gantt chart logic by swati dated: 04 March 2014 **/
jsonChartVal = JSONParser.parseStrict(metaDataList.toString()); jsonChartVal = JSONParser.parseStrict(metaDataList.toString());
graphJson.put("chart", jsonChartVal); graphJson.put("chart", jsonChartVal);
//Window.alert("graphJson: "+graphJson);
} catch (Exception e) } catch (Exception e)
{ {
......
package ibase.client;
public class CommonUtils
{
public native static void printOnConsole( String value )
/*-{
if( typeof window.console !== "undefined" )
{
console.log( value );
}
}-*/;
}
package ibase.client; package ibase.client;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.ArrayList;
import com.google.gwt.core.client.Callback; import com.google.gwt.core.client.Callback;
import com.google.gwt.http.client.Request; import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder; import com.google.gwt.http.client.RequestBuilder;
......
...@@ -27,6 +27,7 @@ import com.google.gwt.user.client.ui.HasVerticalAlignment; ...@@ -27,6 +27,7 @@ import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.MenuBar; import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem; import com.google.gwt.user.client.ui.MenuItem;
import com.google.gwt.user.client.ui.PopupPanel; import com.google.gwt.user.client.ui.PopupPanel;
...@@ -99,7 +100,6 @@ public class FilterCreator extends Composite ...@@ -99,7 +100,6 @@ public class FilterCreator extends Composite
horizontlPnl.add(fltrImgPnl); horizontlPnl.add(fltrImgPnl);
} }
this.metaDataJsnObj = metaDataJsnObj; this.metaDataJsnObj = metaDataJsnObj;
openFltrImg.addClickHandler(new FilterBtnActionHandler()); openFltrImg.addClickHandler(new FilterBtnActionHandler());
initWidget(horizontlPnl); initWidget(horizontlPnl);
...@@ -224,6 +224,12 @@ public class FilterCreator extends Composite ...@@ -224,6 +224,12 @@ public class FilterCreator extends Composite
getAutoCompWithDigitFltr(filterInfo, popUpVPnl, fltrParmtrArray); getAutoCompWithDigitFltr(filterInfo, popUpVPnl, fltrParmtrArray);
} }
/* ended */ /* ended */
/* added new filter drop down list 23 sep 2015*/
if (filterInfo.getFiltrType().equals("7"))
{
creatDropDown(filterInfo, popUpVPnl, fltrParmtrArray);
}
/* ended */
} }
} }
headingLbl.setStyleName("filterDivHeadingName"); //Dhanendra 12-09-2014 headingLbl.setStyleName("filterDivHeadingName"); //Dhanendra 12-09-2014
...@@ -821,6 +827,7 @@ public class FilterCreator extends Composite ...@@ -821,6 +827,7 @@ public class FilterCreator extends Composite
FlexTable grid = null; FlexTable grid = null;
CheckBox checkBox = null; CheckBox checkBox = null;
TextBox fltrTxtBox = null; TextBox fltrTxtBox = null;
ListBox fltrListBox= null;
BulletList bulletList = null; BulletList bulletList = null;
ScrollPanel scrollPnl = null; ScrollPanel scrollPnl = null;
ArrayList<String> popUpSendDtatList = new ArrayList<String>(); ArrayList<String> popUpSendDtatList = new ArrayList<String>();
...@@ -958,7 +965,6 @@ public class FilterCreator extends Composite ...@@ -958,7 +965,6 @@ public class FilterCreator extends Composite
if (listItem.getWidget(0) instanceof Paragraph) if (listItem.getWidget(0) instanceof Paragraph)
{ {
paragraph = (Paragraph) listItem.getWidget(0); paragraph = (Paragraph) listItem.getWidget(0);
if (selectedChkBoxBuffer.length() != 0) if (selectedChkBoxBuffer.length() != 0)
{ {
selectedChkBoxBuffer.append("," + paragraph.getText().trim()); selectedChkBoxBuffer.append("," + paragraph.getText().trim());
...@@ -988,17 +994,40 @@ public class FilterCreator extends Composite ...@@ -988,17 +994,40 @@ public class FilterCreator extends Composite
{ {
popUpSendDtatList.add(""); popUpSendDtatList.add("");
popUpSendDtatListDtl.add(""); popUpSendDtatListDtl.add("");
} }
} }
} }
} }
/*added new code to set drop down by swati on 24 sep 2015*/
else if (horizontalPanel.getWidget(0) instanceof ListBox)
{
fltrListBox = (ListBox) horizontalPanel.getWidget(0);
if (fltrListBox.getTitle().equals(colName))
{
if (!fltrListBox.getTitle().isEmpty())
{
popUpSendDtatList.add(""+fltrListBox.getSelectedIndex());
popUpSendDtatListDtl.add(fltrListBox.getItemText(fltrListBox.getSelectedIndex()));
} else
{
if ("Y".equalsIgnoreCase(mandatotyFilter))
{
Window.alert(fltrInfo.getColDescr() + " Can't Be Empty");
Window.setTitle(windowTitle);
isFilterNotSelected = true;
} else
{
popUpSendDtatList.add("");
popUpSendDtatListDtl.add("");
}
}
}
}
/*ended new code to set drop down by swati on 24 sep 2015*/
} }
} }
} }
} }
//Window.alert("poupsenddatalist : "+popUpSendDtatList);
if (!isFilterNotSelected) if (!isFilterNotSelected)
{ {
Window.setTitle(""); Window.setTitle("");
...@@ -1023,8 +1052,6 @@ public class FilterCreator extends Composite ...@@ -1023,8 +1052,6 @@ public class FilterCreator extends Composite
String filtrEntrdData = ""; String filtrEntrdData = "";
String filterDescr = ""; String filterDescr = "";
int count = 0; int count = 0;
boolean flag = false;
String temp1 = Window.Location.getHref(); String temp1 = Window.Location.getHref();
subTitle = temp1.substring(temp1.lastIndexOf('=') + 1, temp1.length()); subTitle = temp1.substring(temp1.lastIndexOf('=') + 1, temp1.length());
if (!subTitle.trim().equalsIgnoreCase((metadatName.trim()))) if (!subTitle.trim().equalsIgnoreCase((metadatName.trim())))
...@@ -1124,6 +1151,7 @@ public class FilterCreator extends Composite ...@@ -1124,6 +1151,7 @@ public class FilterCreator extends Composite
titleLbl.setText(title.get(0)) ; titleLbl.setText(title.get(0)) ;
} }
/*End Code for Remove Colon for no Filter by Dhanendra on 31-07-15*/ /*End Code for Remove Colon for no Filter by Dhanendra on 31-07-15*/
} }
} }
...@@ -1181,6 +1209,69 @@ public class FilterCreator extends Composite ...@@ -1181,6 +1209,69 @@ public class FilterCreator extends Composite
addEnterKeyHandler(inputTxtBox); addEnterKeyHandler(inputTxtBox);
popUpHPnl.add(outerVPanel); popUpHPnl.add(outerVPanel);
} }
/*added new method for drop down box by swati 23 sep 2015*/
private void creatDropDown(final FilterInfo filterInfo, final VerticalPanel popUpHPnl, final String[] splitedArray)
{
try
{
final ListBox dropDownBox = new ListBox();
Label columnNameLbl = null;
dropDownBox.setTitle(filterInfo.getFieldName());
dropDownBox.setStylePrimaryName("drpDownBoxCss");
VerticalPanel outerVPanel = new VerticalPanel();
HorizontalPanel hPanel = new HorizontalPanel();
VerticalPanel vPanel = new VerticalPanel();
columnNameLbl = new Label("" + filterInfo.getColDescr());
vPanel.add(columnNameLbl);
columnNameLbl.setStyleName("filterHeaderLabel");
vPanel.setStyleName("filterHeaderPanel");
hPanel.add(dropDownBox);
outerVPanel.add(vPanel);
outerVPanel.add(hPanel);
String objActionPath = "/ibase/DashboardFilterServlet?FIELDNAME=" + filterInfo.getFieldName() + "&OBJ_NAME=" + filterInfo.getModName();
RequestBuilder reqBuilder = new RequestBuilder(RequestBuilder.POST, objActionPath);
reqBuilder.sendRequest(null, new RequestCallback()
{
@Override
public void onResponseReceived(Request request, Response response)
{
HashMap<String, ArrayList<String>> drpDwnMap=new HashMap<String, ArrayList<String>>();
String row="";
ArrayList valueList = new ArrayList<String>();
drpDwnMap=getPopUpDataMap(response.getText());
for (Map.Entry<String, ArrayList<String>> entry : drpDwnMap.entrySet())
{
row = entry.getKey();
valueList = entry.getValue();
dropDownBox.addItem(""+valueList.get(1));
dropDownBox.setVisibleItemCount(1);
dropDownBox.setSelectedIndex(1);
//dropDownBox.setItemSelected(1, true);
}
}
@Override
public void onError(com.google.gwt.http.client.Request request, Throwable exception)
{
Window.alert("Error occured " + exception.getMessage());
}
});
/*if (fltrParmtrArray != null)
{
for (int arrayCnt = 0; arrayCnt < fltrParmtrArray.length; arrayCnt++)
{
//dropDownBox.setText(fltrParmtrArray[arrayCnt]);
}
}*/
addEnterKeyHandler(dropDownBox);
popUpHPnl.add(outerVPanel);
} catch (RequestException e)
{
Window.alert("Error occured " + e.getMessage());
}
}
/*ended new method for drop down box by swati 23 sep 2015*/
private void createDatePikr(final FilterInfo filterInfo, final VerticalPanel popUpHPnl, final String[] fltrParmtrArray) private void createDatePikr(final FilterInfo filterInfo, final VerticalPanel popUpHPnl, final String[] fltrParmtrArray)
{ {
......
...@@ -24,7 +24,6 @@ public class GWTDashBoardReport implements EntryPoint ...@@ -24,7 +24,6 @@ public class GWTDashBoardReport implements EntryPoint
HorizontalPanel hpanel= new HorizontalPanel(); HorizontalPanel hpanel= new HorizontalPanel();
String metadataname = ""; String metadataname = "";
public String prdFilterName= ""; public String prdFilterName= "";
@SuppressWarnings("unchecked")
public void onModuleLoad() public void onModuleLoad()
{ {
metadataname = Window.Location.getParameter("metadataname") == null ? "" : Window.Location.getParameter("metadataname"); metadataname = Window.Location.getParameter("metadataname") == null ? "" : Window.Location.getParameter("metadataname");
...@@ -53,7 +52,9 @@ public class GWTDashBoardReport implements EntryPoint ...@@ -53,7 +52,9 @@ public class GWTDashBoardReport implements EntryPoint
Window.alert("Exception :: onModuleLoad() [" + result + "]"); Window.alert("Exception :: onModuleLoad() [" + result + "]");
} }
}, metadataname); }, metadataname);
} else }
else
{ {
Window.alert("Please Enter Metadata name"); Window.alert("Please Enter Metadata name");
} }
...@@ -100,6 +101,12 @@ public class GWTDashBoardReport implements EntryPoint ...@@ -100,6 +101,12 @@ public class GWTDashBoardReport implements EntryPoint
parameterList.add(Window.Location.getParameter(filterInfo.getFieldName()) == null ? monthYear : Window.Location.getParameter(filterInfo.getFieldName())); parameterList.add(Window.Location.getParameter(filterInfo.getFieldName()) == null ? monthYear : Window.Location.getParameter(filterInfo.getFieldName()));
} }
} }
/*Add code for current prd code by dhanendra on 06-10-2015 */
else if(filterInfo.getFieldName().equals("CURRENT_PRDCODE"))
{
parameterList.add(Window.Location.getParameter(filterInfo.getFieldName()) == null ? monthYear : Window.Location.getParameter(filterInfo.getFieldName()));
}
/*End code for current prd code by dhanendra on 06-10-2015 */
else else
{ {
......
...@@ -86,10 +86,13 @@ public class GraphComponent extends Composite ...@@ -86,10 +86,13 @@ public class GraphComponent extends Composite
/*End code for progess bar to data building- Dhanendra 17Nov2014*/ /*End code for progess bar to data building- Dhanendra 17Nov2014*/
//MetaDataDtl metaDataDtl =new MetaDataDtl(); //MetaDataDtl metaDataDtl =new MetaDataDtl();
//final ArrayList<FilterInfo> filterList = metaDataDtl.getFilters(metaDataJsnObj); //final ArrayList<FilterInfo> filterList = metaDataDtl.getFilters(metaDataJsnObj);
// add variable by swati
String empCodeEpa="";
public GraphComponent(ArrayList<String> parameterList, JSONObject metaDataJsnObj,String showfilter) public GraphComponent(ArrayList<String> parameterList, JSONObject metaDataJsnObj,String showfilter)
{ {
userMail = Window.Location.getParameter("EMP_MAILCODE") == null ? "" : Window.Location.getParameter("EMP_MAILCODE"); userMail = Window.Location.getParameter("EMP_MAILCODE") == null ? "" : Window.Location.getParameter("EMP_MAILCODE");
reportCaption= Window.Location.getParameter("GEO_LOCATION") == null ? "" : Window.Location.getParameter("GEO_LOCATION"); reportCaption= Window.Location.getParameter("GEO_LOCATION") == null ? "" : Window.Location.getParameter("GEO_LOCATION");
empCodeEpa= Window.Location.getParameter("EMP_CODE") == null ? "" : Window.Location.getParameter("EMP_CODE");
String isShowfilter= Window.Location.getParameter("FLAG"); String isShowfilter= Window.Location.getParameter("FLAG");
this.jsonObjMetaData = metaDataJsnObj; this.jsonObjMetaData = metaDataJsnObj;
this.parameterList = parameterList; this.parameterList = parameterList;
...@@ -351,8 +354,17 @@ public class GraphComponent extends Composite ...@@ -351,8 +354,17 @@ public class GraphComponent extends Composite
this.createOuterDiv("Graph"+uniqueId+componentId,type,groupCssTypeNameList.get(0)); this.createOuterDiv("Graph"+uniqueId+componentId,type,groupCssTypeNameList.get(0));
idList.add("Graph"+uniqueId+componentId+"Div"); idList.add("Graph"+uniqueId+componentId+"Div");
/*End uniqueId to Graph by Dhanendra on date 10-11-2015*/ /*End uniqueId to Graph by Dhanendra on date 10-11-2015*/
/*added code to append x-axis value in child grpah in title by dhanendra on Date: 07-Dec-2015*/
Label componantTtl=null;
if(empCodeEpa.length()>0)
{
componantTtl = new Label(componantTitlNameList.get(0)+" : "+empCodeEpa);
Label componantTtl = new Label(componantTitlNameList.get(0)); }else
{
componantTtl = new Label(componantTitlNameList.get(0));
}
/*added code to append x-axis value in child grpah in title by dhanendra on Date: 07-Dec-2015*/
Image componantTtlImg = new Image("FusionChart/images/"+componentIconName); Image componantTtlImg = new Image("FusionChart/images/"+componentIconName);
Image refreshImg = new Image("FusionChart/images/refresh.png"); Image refreshImg = new Image("FusionChart/images/refresh.png");
...@@ -1332,6 +1344,7 @@ public class GraphComponent extends Composite ...@@ -1332,6 +1344,7 @@ public class GraphComponent extends Composite
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void getData(final Callback<JSONObject, String> callback, ArrayList<String> parameterList) public void getData(final Callback<JSONObject, String> callback, ArrayList<String> parameterList)
{ {
this.parameterList=parameterList; this.parameterList=parameterList;
String viewOptionSelectd = parameterList.get(parameterList.size()-1); String viewOptionSelectd = parameterList.get(parameterList.size()-1);
dataDtl = new MetaDataDtl(); dataDtl = new MetaDataDtl();
...@@ -1349,7 +1362,6 @@ public class GraphComponent extends Composite ...@@ -1349,7 +1362,6 @@ public class GraphComponent extends Composite
e12LoadImg.setLoadingInfo("Waiting For Data..."); e12LoadImg.setLoadingInfo("Waiting For Data...");
e12LoadImg.setLoading(true); e12LoadImg.setLoading(true);
} }
for (Map.Entry<String, ArrayList<String>> entry : datsSourceDtlMap.entrySet()) for (Map.Entry<String, ArrayList<String>> entry : datsSourceDtlMap.entrySet())
{ {
final String key = entry.getKey(); final String key = entry.getKey();
...@@ -1414,7 +1426,6 @@ public class GraphComponent extends Composite ...@@ -1414,7 +1426,6 @@ public class GraphComponent extends Composite
{ {
if (STATUS_CODE_OK == response.getStatusCode()) if (STATUS_CODE_OK == response.getStatusCode())
{ {
//Window.alert("response.getText(): "+response.getText());
if (response.getText().trim().length() > 2) //if code is relese to OTC then Comment this if condition Dhanendra 07Nov2014 if (response.getText().trim().length() > 2) //if code is relese to OTC then Comment this if condition Dhanendra 07Nov2014
{ {
JSONObject servletJsnObj = (JSONObject) JSONParser.parseStrict(response.getText()); JSONObject servletJsnObj = (JSONObject) JSONParser.parseStrict(response.getText());
...@@ -1438,7 +1449,7 @@ public class GraphComponent extends Composite ...@@ -1438,7 +1449,7 @@ public class GraphComponent extends Composite
} }
} else } else
{ {
Window.alert("Responce for getData null"); //Window.alert("Responce for getData null");
e12LoadImg.setLoading(false); e12LoadImg.setLoading(false);
} }
} }
...@@ -1459,10 +1470,6 @@ public class GraphComponent extends Composite ...@@ -1459,10 +1470,6 @@ public class GraphComponent extends Composite
public boolean isNumeric(String s) { public boolean isNumeric(String s) {
return s.matches("[-+]?\\d*\\.?\\d+"); return s.matches("[-+]?\\d*\\.?\\d+");
} }
/*Start Add this method for multiple Report By Dhanendra 25MAy2015*/ /*Start Add this method for multiple Report By Dhanendra 25MAy2015*/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private JSONObject getDataMapJson(JSONObject dataJsn, String groupName, ArrayList graphDtlList) private JSONObject getDataMapJson(JSONObject dataJsn, String groupName, ArrayList graphDtlList)
......
...@@ -27,6 +27,7 @@ import com.google.gwt.user.client.ui.CheckBox; ...@@ -27,6 +27,7 @@ import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.MultiWordSuggestOracle; import com.google.gwt.user.client.ui.MultiWordSuggestOracle;
import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.SuggestBox; import com.google.gwt.user.client.ui.SuggestBox;
...@@ -158,6 +159,9 @@ public class InputListWidget extends Composite ...@@ -158,6 +159,9 @@ public class InputListWidget extends Composite
itemBox.getElement().setAttribute("style", "outline-color: -moz-use-text-color; outline-style: none; outline-width: medium;"); itemBox.getElement().setAttribute("style", "outline-color: -moz-use-text-color; outline-style: none; outline-width: medium;");
final SuggestBox suggestBox = new SuggestBox(getSuggestions(""), itemBox); final SuggestBox suggestBox = new SuggestBox(getSuggestions(""), itemBox);
suggestBox.getElement().setId("suggestion_box"); suggestBox.getElement().setId("suggestion_box");
//added to set number of suggestions in suggestion box by sachin 29 sep 2015
suggestBox.setLimit(50);
//ended to set number of suggestions in suggestion box by sachin 29 sep 2015
listItem.add(suggestBox); listItem.add(suggestBox);
Paragraph paragraph = null; Paragraph paragraph = null;
Span span = null; Span span = null;
...@@ -234,7 +238,6 @@ public class InputListWidget extends Composite ...@@ -234,7 +238,6 @@ public class InputListWidget extends Composite
}); });
SuggestBox suggestBox1 =(SuggestBox)listItem.getWidget(listItem.getWidgetCount()-1); SuggestBox suggestBox1 =(SuggestBox)listItem.getWidget(listItem.getWidgetCount()-1);
Window.alert("vsuggestBox1 is ="+suggestBox1.getText());
final StringBuffer buffer = new StringBuffer(); final StringBuffer buffer = new StringBuffer();
suggestBox.getTextBox().addKeyUpHandler(new KeyUpHandler() suggestBox.getTextBox().addKeyUpHandler(new KeyUpHandler()
{ {
...@@ -600,6 +603,7 @@ public class InputListWidget extends Composite ...@@ -600,6 +603,7 @@ public class InputListWidget extends Composite
FlexTable grid = null; FlexTable grid = null;
CheckBox checkBox = null; CheckBox checkBox = null;
TextBox fltrTxtBox = null; TextBox fltrTxtBox = null;
ListBox fltrListBox=null;
BulletList bulletList = null; BulletList bulletList = null;
ScrollPanel scrollPnl = null; ScrollPanel scrollPnl = null;
FilterInfo fltrInfo = null; FilterInfo fltrInfo = null;
...@@ -719,6 +723,19 @@ public class InputListWidget extends Composite ...@@ -719,6 +723,19 @@ public class InputListWidget extends Composite
} }
} }
/**/
else if (horizontalPanel.getWidget(0) instanceof ListBox)
{
fltrListBox = (ListBox) horizontalPanel.getWidget(0);
if (fltrListBox.getTitle().equals(colName))
{
if (!fltrListBox.getItemText(fltrListBox.getSelectedIndex()).isEmpty())
{
fltrDataMap.put(fltrInfo.getFieldName(), ""+fltrListBox.getSelectedIndex());
}
}
}
/**/
} }
} }
} }
......
...@@ -70,15 +70,13 @@ public class MetaDataDtl ...@@ -70,15 +70,13 @@ public class MetaDataDtl
LinkedHashMap<String, String> typeGraphMap = null; LinkedHashMap<String, String> typeGraphMap = null;
LinkedHashMap<String, String> gridDataSourceMap = null; LinkedHashMap<String, String> gridDataSourceMap = null;
LinkedHashMap<String, String> graphDataSourceMap = null; LinkedHashMap<String, String> graphDataSourceMap = null;
LinkedHashMap<String, String> divIdGrpMap = null;
LinkedHashMap<String, String> gridCompTypeMap = null; LinkedHashMap<String, String> gridCompTypeMap = null;
LinkedHashMap<String, String> gridLinkFormatMap = null; LinkedHashMap<String, String> gridLinkFormatMap = null;
//Added By Prashant Chavan 09-Mar-15 [for Link On Grid] Start //Added By Prashant Chavan 09-Mar-15 [for Link On Grid] Start
LinkedHashMap<String, String> gridMetaLinkDataMap = null; LinkedHashMap<String, String> gridMetaLinkDataMap = null;
//Added By Prashant Chavan 09-Mar-15 [for Link On Grid] End //Added By Prashant Chavan 09-Mar-15 [for Link On Grid] End
LinkedHashMap<String, String> componentTypeMap = null;
LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap = null; LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap = null;
LinkedHashMap<String, ArrayList<FilterInfo>> filterDtlMap = null; LinkedHashMap<String, ArrayList<String>> datsSourceDtlMap_temp = null;
HashMap<String, ArrayList<Object>> graphMeataDataMap = null; HashMap<String, ArrayList<Object>> graphMeataDataMap = null;
HashMap<String, HashMap> gridNGraphMeataDataMap = null; HashMap<String, HashMap> gridNGraphMeataDataMap = null;
Node columnGrpNode = null; Node columnGrpNode = null;
...@@ -95,7 +93,7 @@ public class MetaDataDtl ...@@ -95,7 +93,7 @@ public class MetaDataDtl
Node rootNode = null; Node rootNode = null;
NodeList rootNodeList = null; NodeList rootNodeList = null;
ArrayList graphDtlList = null; ArrayList graphDtlList = null;
ArrayList<String> groupCssTypeList = null; //ArrayList<String> groupCssTypeList = null;
NodeList graphNodeList = null; NodeList graphNodeList = null;
String attributeName = ""; String attributeName = "";
String graphID = ""; String graphID = "";
...@@ -108,8 +106,6 @@ public class MetaDataDtl ...@@ -108,8 +106,6 @@ public class MetaDataDtl
String lineVisibleDtl = ""; String lineVisibleDtl = "";
String dotThicknessDtl = ""; String dotThicknessDtl = "";
//add on 20dec2014 by swati linkedchart //add on 20dec2014 by swati linkedchart
NodeList pupUpOptNodeList = null;
Node popUpNode = null;
ArrayList<String> linkedMetadataList = null; ArrayList<String> linkedMetadataList = null;
ArrayList<String> linkTypeList = null; ArrayList<String> linkTypeList = null;
String linkedProperties = ""; String linkedProperties = "";
...@@ -164,11 +160,9 @@ public class MetaDataDtl ...@@ -164,11 +160,9 @@ public class MetaDataDtl
gridLinkFormatMap = new LinkedHashMap<String, String>(); gridLinkFormatMap = new LinkedHashMap<String, String>();
gridCaptionDataMap = new LinkedHashMap<String, String>(); gridCaptionDataMap = new LinkedHashMap<String, String>();
gridAlignDataMap = new LinkedHashMap<String, String>(); gridAlignDataMap = new LinkedHashMap<String, String>();
divIdGrpMap = new LinkedHashMap<String, String>();
componentTypeMap = new LinkedHashMap<String, String>();
gridCompTypeMap = new LinkedHashMap<String, String>(); gridCompTypeMap = new LinkedHashMap<String, String>();
datsSourceDtlMap = new LinkedHashMap<String, ArrayList<String>>(); datsSourceDtlMap = new LinkedHashMap<String, ArrayList<String>>();
filterDtlMap = new LinkedHashMap<String, ArrayList<FilterInfo>>(); datsSourceDtlMap_temp= new LinkedHashMap<String, ArrayList<String>>();
xmlMetadata = jsonObjMetadata.get("metaData").toString(); xmlMetadata = jsonObjMetadata.get("metaData").toString();
xmlMetadata = jsonObjMetadata.get("metaData").toString().replace("\\", "").trim(); xmlMetadata = jsonObjMetadata.get("metaData").toString().replace("\\", "").trim();
xmlMetadata = xmlMetadata.replace('"', ' ').trim(); xmlMetadata = xmlMetadata.replace('"', ' ').trim();
...@@ -190,8 +184,31 @@ public class MetaDataDtl ...@@ -190,8 +184,31 @@ public class MetaDataDtl
String id = rootNode.getAttributes().getNamedItem("id").getNodeValue(); String id = rootNode.getAttributes().getNamedItem("id").getNodeValue();
datsSourceDtlList.add(rootNode.getAttributes().getNamedItem("driverName").getNodeValue()); datsSourceDtlList.add(rootNode.getAttributes().getNamedItem("driverName").getNodeValue());
datsSourceDtlList.add(rootNode.getChildNodes().item(0).getNodeValue()); datsSourceDtlList.add(rootNode.getChildNodes().item(0).getNodeValue());
datsSourceDtlMap.put(id, datsSourceDtlList); datsSourceDtlMap_temp.put(id, datsSourceDtlList);
} }
/** Added code to add all datasources in selected view [By default on load first view will be selected] datsSourceD Map by swati on 14 Jan 2016 **/
if ("view".equals(rootNode.getNodeName()))
{
viewNodeList = rootNode.getChildNodes();
if (viewOptionSelectd != null && viewOptionSelectd.equals(rootNode.getAttributes().getNamedItem("name").getNodeValue()))
{
for (int viewCtr = 0; viewCtr < viewNodeList.getLength(); viewCtr++)
{
viewNode = viewNodeList.item(viewCtr);
if (("component".equals(viewNode.getNodeName()) || "grid".equals(viewNode.getNodeName())) )
{
datsSourceDtlList = new ArrayList<String>();
graphID = viewNode.getAttributes().getNamedItem("datasource").getNodeValue();
datsSourceDtlMap.put(graphID, datsSourceDtlMap_temp.get(graphID));
}
}
}
}
/** Ended code to add all datasources in selected view [By default on load first view will be selected] datsSourceD Map by swati on 14 Jan 2016 **/
String columnsize = ""; String columnsize = "";
String columnAlign = ""; String columnAlign = "";
String dataSource = ""; String dataSource = "";
...@@ -238,22 +255,16 @@ public class MetaDataDtl ...@@ -238,22 +255,16 @@ public class MetaDataDtl
gridNodeList = viewNode.getChildNodes(); gridNodeList = viewNode.getChildNodes();
String componentType = ""; String componentType = "";
String componentCaption = ""; String componentCaption = "";
//Added By Prashant Chavan 09-Mar-15 [for Link On Grid] Start
String linkMetadata = "";
//Added By Prashant Chavan 09-Mar-15 [for Link On Grid] End
String linkFormat = ""; String linkFormat = "";
String filterDisplay = ""; String filterDisplay = "";
/* Add By Dhanedra for metadata change */ /* Add By Dhanedra for metadata change */
groupFltrNameList = new ArrayList<String>(); groupFltrNameList = new ArrayList<String>();
String groupType = ""; String groupType = "";
String componentCssName = ""; String componentCssName = "";
String componentIconName = ""; String componentIconName = "";
String componantTitl = ""; String componantTitl = "";
gridGroupDataMap = new LinkedHashMap<String, String>(); gridGroupDataMap = new LinkedHashMap<String, String>();
gridComponantTtlDataMap = new LinkedHashMap<String, String>(); gridComponantTtlDataMap = new LinkedHashMap<String, String>();
gridGroupCSSDataMap = new LinkedHashMap<String, String>(); gridGroupCSSDataMap = new LinkedHashMap<String, String>();
...@@ -497,10 +508,9 @@ public class MetaDataDtl ...@@ -497,10 +508,9 @@ public class MetaDataDtl
jsnStringKey = new JSONString("yAxisName"); jsnStringKey = new JSONString("yAxisName");
metaDataMap.put(jsnStringKey, dataStringValue); metaDataMap.put(jsnStringKey, dataStringValue);
} }
String flag = null; //String flag = null;
if ("columns".equals(yAxsisNode.getNodeName())) if ("columns".equals(yAxsisNode.getNodeName()))
{ {
flag = "false";
NodeList yAxsisNodeList = yAxsisNode.getChildNodes(); NodeList yAxsisNodeList = yAxsisNode.getChildNodes();
for (int colCtr = 0; colCtr < yAxsisNodeList.getLength(); colCtr++) for (int colCtr = 0; colCtr < yAxsisNodeList.getLength(); colCtr++)
{ {
...@@ -530,7 +540,6 @@ public class MetaDataDtl ...@@ -530,7 +540,6 @@ public class MetaDataDtl
lineVisibleDtl = columnNode.getAttributes().getNamedItem("linevisibility").getNodeValue(); lineVisibleDtl = columnNode.getAttributes().getNamedItem("linevisibility").getNodeValue();
if (lineVisibleDtl.trim().equals("0")) if (lineVisibleDtl.trim().equals("0"))
{ {
flag = "true";
metaDataMap.put(new JSONString("lineAlpha"), new JSONString("1")); metaDataMap.put(new JSONString("lineAlpha"), new JSONString("1"));
metaDataMap.put(new JSONString("anchorBorderThickness"), new JSONString("3")); metaDataMap.put(new JSONString("anchorBorderThickness"), new JSONString("3"));
} }
...@@ -557,13 +566,7 @@ public class MetaDataDtl ...@@ -557,13 +566,7 @@ public class MetaDataDtl
} }
//ended parent-axis to render column by swati on 31 July 2015 //ended parent-axis to render column by swati on 31 July 2015
} }
/*
* if (flag.equals("false"))
{
metaDataMap.put(new JSONString("lineAlpha"), new JSONString("1"));
metaDataMap.put(new JSONString("anchorBorderThickness"), new JSONString("3"));
}
*/
} }
//Window.alert("metaDataMap: "+metaDataMap); //Window.alert("metaDataMap: "+metaDataMap);
//added by swati "placevaluesinside": "1",rotatevalues //added by swati "placevaluesinside": "1",rotatevalues
...@@ -616,6 +619,7 @@ public class MetaDataDtl ...@@ -616,6 +619,7 @@ public class MetaDataDtl
jsnStringKey = new JSONString("slantLabels"); jsnStringKey = new JSONString("slantLabels");
metaDataMap.put(jsnStringKey, dataStringValue); metaDataMap.put(jsnStringKey, dataStringValue);
} }
if ("bg_color".equals(chartPropertyNode.getNodeName())) if ("bg_color".equals(chartPropertyNode.getNodeName()))
{ {
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue()); dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
...@@ -739,26 +743,62 @@ public class MetaDataDtl ...@@ -739,26 +743,62 @@ public class MetaDataDtl
metaDataMap.put(jsnStringKey, dataStringValue); metaDataMap.put(jsnStringKey, dataStringValue);
} }
//ended show sum property for stack chart to metaDataMap by swati on 18 Aug 2015 //ended show sum property for stack chart to metaDataMap by swati on 18 Aug 2015
//added baseFontColor ,basefontsize property for pie chart to metaDataMap by Dhanendra on 21 Oct 2015
if ("basefontcolor".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("baseFontColor");
metaDataMap.put(jsnStringKey, dataStringValue);
} }
if ("basefontsize".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("basefontsize");
metaDataMap.put(jsnStringKey, dataStringValue);
} }
//end swati for chart properties //added baseFontColor ,basefontsize property for pie chart to metaDataMap by Dhanendra on 21 Oct 2015
//added show showAlternateVGridColor,paletteColors property for bar chart to metaDataMap by swati on 16 Nov 2015
if ("barcolor".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("paletteColors");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("showgrid".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("showAlternateVGridColor");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("rotatelabel".equals(chartPropertyNode.getNodeName()))
{
if(chartPropertyNode.getChildNodes().item(0).getNodeValue()=="1")
dataStringValue = new JSONString("rotate");
else
dataStringValue = new JSONString("");
jsnStringKey = new JSONString("labelDisplay");
metaDataMap.put(jsnStringKey, dataStringValue);
}
//ended show sum property for bar chart to metaDataMap by swati on 16 Nov 2015
}
}
//end swati for chart properties
/* Start Add new metadata tag for Compliance Report by Dhanendra on 25May2015 */ /* Start Add new metadata tag for Compliance Report by Dhanendra on 25May2015 */
if ("group".equalsIgnoreCase(childNodeName)) if ("group".equalsIgnoreCase(childNodeName))
{ {
groupTypeList.add(graphDataNode.getChildNodes().item(0).getNodeValue()); groupTypeList.add(graphDataNode.getChildNodes().item(0).getNodeValue());
} }
if ("ComponentTitle".equalsIgnoreCase(childNodeName)) if ("ComponentTitle".equalsIgnoreCase(childNodeName))
{ {
componantTitlList.add(graphDataNode.getChildNodes().item(0).getNodeValue()); componantTitlList.add(graphDataNode.getChildNodes().item(0).getNodeValue());
} }
if ("component_css".equalsIgnoreCase(childNodeName)) if ("component_css".equalsIgnoreCase(childNodeName))
{ {
componentCssList.add(graphDataNode.getChildNodes().item(0).getNodeValue()); componentCssList.add(graphDataNode.getChildNodes().item(0).getNodeValue());
} }
if ("groupFilter".equalsIgnoreCase(childNodeName)) if ("groupFilter".equalsIgnoreCase(childNodeName))
{ {
...@@ -1077,7 +1117,6 @@ public class MetaDataDtl ...@@ -1077,7 +1117,6 @@ public class MetaDataDtl
linkedMetadataName = columnNode.getAttributes().getNamedItem("linkedmetadata").getNodeValue(); linkedMetadataName = columnNode.getAttributes().getNamedItem("linkedmetadata").getNodeValue();
linkedMetadataList.add(linkedMetadataName); linkedMetadataList.add(linkedMetadataName);
} }
} }
if ("colorrange".equalsIgnoreCase(childNodeName)) if ("colorrange".equalsIgnoreCase(childNodeName))
...@@ -1611,9 +1650,6 @@ public class MetaDataDtl ...@@ -1611,9 +1650,6 @@ public class MetaDataDtl
gridNGraphMeataDataMap.put("datasource" + graphID, graphDataSourceMap); gridNGraphMeataDataMap.put("datasource" + graphID, graphDataSourceMap);
} }
//***End Code for Card (Added by sachin on 1-jully-2015)*****\\ //***End Code for Card (Added by sachin on 1-jully-2015)*****\\
//***Start Code for Gantt Chart (Added by sachin on 4-08-15)*****\\ //***Start Code for Gantt Chart (Added by sachin on 4-08-15)*****\\
if ("component".equals(viewNode.getNodeName()) && type.equalsIgnoreCase("DHTML_GANTT")) if ("component".equals(viewNode.getNodeName()) && type.equalsIgnoreCase("DHTML_GANTT"))
...@@ -1669,6 +1705,7 @@ public class MetaDataDtl ...@@ -1669,6 +1705,7 @@ public class MetaDataDtl
} }
} }
gridNGraphMeataDataMap.put("datSrc", datsSourceDtlMap); gridNGraphMeataDataMap.put("datSrc", datsSourceDtlMap);
// Window.alert("datsSourceDtlMap: "+datsSourceDtlMap);
return gridNGraphMeataDataMap; return gridNGraphMeataDataMap;
} }
...@@ -1772,17 +1809,14 @@ public class MetaDataDtl ...@@ -1772,17 +1809,14 @@ public class MetaDataDtl
{ {
filterInfo.setColId(columNode.getChildNodes().item(0).getNodeValue()); filterInfo.setColId(columNode.getChildNodes().item(0).getNodeValue());
} }
if ("field_name".equals(columNode.getNodeName())) if ("field_name".equals(columNode.getNodeName()))
{ {
filterInfo.setFieldName(columNode.getChildNodes().item(0).getNodeValue()); filterInfo.setFieldName(columNode.getChildNodes().item(0).getNodeValue());
} }
if ("mod_name".equals(columNode.getNodeName())) if ("mod_name".equals(columNode.getNodeName()))
{ {
filterInfo.setModName(columNode.getChildNodes().item(0).getNodeValue()); filterInfo.setModName(columNode.getChildNodes().item(0).getNodeValue());
} }
if ("show_ontitle".equals(columNode.getNodeName())) if ("show_ontitle".equals(columNode.getNodeName()))
{ {
filterInfo.setShowOnTitle(columNode.getChildNodes().item(0).getNodeValue()); filterInfo.setShowOnTitle(columNode.getChildNodes().item(0).getNodeValue());
......
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