Subversion Repositories SmartDukaan

Rev

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

Rev 32170 Rev 32171
Line 8... Line 8...
8
import com.spice.profitmandi.dao.entity.auth.Menu;
8
import com.spice.profitmandi.dao.entity.auth.Menu;
9
import com.spice.profitmandi.dao.entity.cs.Position;
9
import com.spice.profitmandi.dao.entity.cs.Position;
10
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
10
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
11
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
11
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
12
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
12
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
13
import com.spice.profitmandi.dao.entity.transaction.Loan;
-
 
14
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
-
 
15
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
13
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
16
import com.spice.profitmandi.dao.model.BrandWiseModel;
14
import com.spice.profitmandi.dao.model.BrandWiseModel;
17
import com.spice.profitmandi.dao.model.PartnerDetailModel;
15
import com.spice.profitmandi.dao.model.PartnerDetailModel;
18
import com.spice.profitmandi.dao.model.WarehouseWiseStockModel;
16
import com.spice.profitmandi.dao.model.WarehouseWiseStockModel;
19
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
17
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
Line 26... Line 24...
26
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
24
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
27
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
25
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
28
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
26
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
29
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
27
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
30
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
28
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
31
import com.spice.profitmandi.dao.repository.transaction.SDCreditRequirementRepository;
-
 
32
import com.spice.profitmandi.service.transaction.SDCreditService;
-
 
33
import com.spice.profitmandi.service.user.RetailerService;
29
import com.spice.profitmandi.service.user.RetailerService;
34
import org.apache.logging.log4j.LogManager;
30
import org.apache.logging.log4j.LogManager;
35
import org.apache.logging.log4j.Logger;
31
import org.apache.logging.log4j.Logger;
36
import org.springframework.beans.factory.annotation.Autowired;
32
import org.springframework.beans.factory.annotation.Autowired;
37
import org.springframework.stereotype.Component;
33
import org.springframework.stereotype.Component;
Line 97... Line 93...
97
	@Autowired
93
	@Autowired
98
	private ActivatedImeiRepository activatedImeiRepository;
94
	private ActivatedImeiRepository activatedImeiRepository;
99
 
95
 
100
	@Autowired
96
	@Autowired
101
	private PartnerStatsService partnerStatsService;
97
	private PartnerStatsService partnerStatsService;
102
	@Autowired
-
 
103
	private SDCreditService sdCreditService;
-
 
104
	List<String> emails = Arrays.asList("kamini.sharma@smartdukaan.com", "neeraj.gupta@smartdukaan.com",
98
	List<String> emails = Arrays.asList("kamini.sharma@smartdukaan.com", "neeraj.gupta@smartdukaan.com",
105
			"tejbeer.kaur@smartdukaan.com", "amit.gupta@smartdukaan.com", "kanan.choudhary@smartdukaan.com");
99
			"tejbeer.kaur@smartdukaan.com", "amit.gupta@smartdukaan.com", "kanan.choudhary@smartdukaan.com");
106
 
100
 
107
	List<String> colorList = Arrays.asList("mediumseagreen", "dodgerblue", "darkblue", "gold", "#eb0029", "coral",
101
	List<String> colorList = Arrays.asList("mediumseagreen", "dodgerblue", "darkblue", "gold", "#eb0029", "coral",
108
			"#63C5DA", "red", "deeppink", "midnightblue", "cornsilk");
102
			"#63C5DA", "red", "deeppink", "midnightblue", "cornsilk");
Line 471... Line 465...
471
 
465
 
472
			Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
466
			Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
473
			Map<Integer, String> wm = new LinkedHashMap<>();
467
			Map<Integer, String> wm = new LinkedHashMap<>();
474
 
468
 
475
			Map<AuthUser, Long> authUserTicketCount = null;
469
			Map<AuthUser, Long> authUserTicketCount = null;
476
			LoanSummary loanSummary= sdCreditService.getLoanSummary();
-
 
477
			model.addAttribute("loanSummary",loanSummary);
-
 
478
 
-
 
479
 
470
 
480
			for (Map.Entry<Integer, String> entry : warehouseMap.entrySet()) {
471
			for (Map.Entry<Integer, String> entry : warehouseMap.entrySet()) {
481
				wm.put(entry.getKey(), entry.getValue());
472
				wm.put(entry.getKey(), entry.getValue());
482
			}
473
			}
483
 
474