Subversion Repositories SmartDukaan

Rev

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

Rev 27876 Rev 27882
Line 610... Line 610...
610
		}
610
		}
611
		model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
611
		model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
612
 
612
 
613
		model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
613
		model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
614
		model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
614
		model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
615
		if (loginDetails.isReadOnly()) {
615
		/*if (loginDetails.isReadOnly()) {
616
			return "dashboard-readonly";
616
			return "dashboard-readonly";
617
		} else {
617
		} else {
-
 
618
		}*/
618
			return "dashboard1";
619
		return "dashboard1";
619
		}
-
 
620
	}
620
	}
621
 
621
 
622
	private ChartModel getBrandChart(int fofoId) {
622
	private ChartModel getBrandChart(int fofoId) {
623
 
623
 
624
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
624
		LocalDateTime curDate = LocalDate.now().atStartOfDay();