Subversion Repositories SmartDukaan

Rev

Rev 29445 | Rev 29450 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29445 Rev 29448
Line 457... Line 457...
457
 
457
 
458
		HashSet<String> hotLeadKeys = new HashSet<String>();
458
		HashSet<String> hotLeadKeys = new HashSet<String>();
459
 
459
 
460
		hotLeadKeys.add("HotLead");
460
		hotLeadKeys.add("HotLead");
461
		List<String> hotLeadGreen = new ArrayList<>(hotLeadKeys);
461
		List<String> hotLeadGreen = new ArrayList<>(hotLeadKeys);
-
 
462
		
-
 
463
		LOGGER.info("hotLeads" + hotLeads);
462
 
464
 
463
		List<LeadStatus> labelList = new ArrayList<>(labels);
465
		List<LeadStatus> labelList = new ArrayList<>(labels);
464
		List<String> backgroundColor = new ArrayList<>();
466
		List<String> backgroundColor = new ArrayList<>();
465
		LOGGER.info("hotLeadKeys" + hotLeadKeys);
467
		LOGGER.info("hotLeadKeys" + hotLeadKeys);
466
		List<Long> values = new ArrayList<>();
468
		List<Long> values = new ArrayList<>();
467
 
469
 
468
		for (LeadStatus label : labelList) {
470
		for (String hotLead : hotLeads) {
469
			values.add(leadStatusMap.get(label));
-
 
-
 
471
		
470
 
472
 
471
			if (label.equals(LeadStatus.pending)) {
473
			if (hotLead.equals("pending")) {
472
				backgroundColor.add("pink");
474
				backgroundColor.add("pink");
-
 
475
				values.add(leadStatusMap.get(LeadStatus.pending));
473
			}
476
			}
474
			if (label.equals(LeadStatus.notInterested)) {
477
			if (hotLead.equals("notInterested")) {
475
				backgroundColor.add("red");
478
				backgroundColor.add("red");
-
 
479
				values.add(leadStatusMap.get(LeadStatus.notInterested));
476
			}
480
			}
477
			if (label.equals(LeadStatus.followUp)) {
481
			if (hotLead.equals("followUp")) {
478
				backgroundColor.add("#9ACD32");
482
				backgroundColor.add("#9ACD32");
-
 
483
				values.add(leadStatusMap.get(LeadStatus.followUp));
479
			}
484
			}
480
			if (label.equals(LeadStatus.finalized)) {
485
			if (hotLead.equals("finalized")) {
481
				backgroundColor.add("blue");
486
				backgroundColor.add("blue");
-
 
487
				values.add(leadStatusMap.get(LeadStatus.finalized));
482
			}
488
			}
483
		}
489
		
484
 
-
 
485
		for (String hotLeadList : hotLeadGreen) {
-
 
486
 
-
 
487
			if (hotLeadList.equals("HotLead")) {
490
			if (hotLead.equals("HotLead")) {
488
				backgroundColor.add("green");
491
				backgroundColor.add("green");
489
				values.add(hotLeadsMap.get("Green"));
492
				values.add(hotLeadsMap.get("Green"));
490
 
493
 
491
			}
494
			}
492
 
495