Subversion Repositories SmartDukaan

Rev

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

Rev 25369 Rev 25505
Line 29... Line 29...
29
import org.springframework.web.bind.annotation.RequestMethod;
29
import org.springframework.web.bind.annotation.RequestMethod;
30
import org.springframework.web.bind.annotation.RequestParam;
30
import org.springframework.web.bind.annotation.RequestParam;
31
 
31
 
32
import com.spice.profitmandi.common.enumuration.DateTimePattern;
32
import com.spice.profitmandi.common.enumuration.DateTimePattern;
33
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
33
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
34
import com.spice.profitmandi.common.model.CreateSchemeRequest;
-
 
35
import com.spice.profitmandi.common.model.MapWrapper;
34
import com.spice.profitmandi.common.model.MapWrapper;
36
import com.spice.profitmandi.common.model.ProfitMandiConstants;
35
import com.spice.profitmandi.common.model.ProfitMandiConstants;
37
import com.spice.profitmandi.common.model.SchemeItems;
36
import com.spice.profitmandi.common.model.SchemeItems;
38
import com.spice.profitmandi.common.model.SchemeModel;
37
import com.spice.profitmandi.common.model.SchemeModel;
39
import com.spice.profitmandi.common.util.ExcelUtils;
38
import com.spice.profitmandi.common.util.ExcelUtils;
40
import com.spice.profitmandi.common.util.StringUtils;
39
import com.spice.profitmandi.common.util.StringUtils;
41
import com.spice.profitmandi.common.web.util.ResponseSender;
40
import com.spice.profitmandi.common.web.util.ResponseSender;
42
import com.spice.profitmandi.dao.entity.catalog.Scheme;
41
import com.spice.profitmandi.dao.entity.catalog.Scheme;
-
 
42
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
43
import com.spice.profitmandi.dao.entity.fofo.SchemeItem;
43
import com.spice.profitmandi.dao.entity.fofo.SchemeItem;
-
 
44
import com.spice.profitmandi.dao.model.CreateSchemeRequest;
44
import com.spice.profitmandi.dao.repository.catalog.SchemeRepository;
45
import com.spice.profitmandi.dao.repository.catalog.SchemeRepository;
45
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
46
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
46
import com.spice.profitmandi.dao.repository.dtr.RoleRepository;
47
import com.spice.profitmandi.dao.repository.dtr.RoleRepository;
47
import com.spice.profitmandi.dao.repository.fofo.PurchaseRepository;
48
import com.spice.profitmandi.dao.repository.fofo.PurchaseRepository;
48
import com.spice.profitmandi.dao.repository.fofo.SchemeItemRepository;
49
import com.spice.profitmandi.dao.repository.fofo.SchemeItemRepository;
Line 99... Line 100...
99
		// inventoryService.getAllItemIdItemDescriptionMap();
100
		// inventoryService.getAllItemIdItemDescriptionMap();
100
		// model.addAttribute("itemIdItemDescriptionMap", itemIdItemDescriptionMap);
101
		// model.addAttribute("itemIdItemDescriptionMap", itemIdItemDescriptionMap);
101
		Set<String> brands = inventoryService.getAllTagListingBrands(ProfitMandiConstants.MOBILE_CATEGORY_ID);
102
		Set<String> brands = inventoryService.getAllTagListingBrands(ProfitMandiConstants.MOBILE_CATEGORY_ID);
102
		brands.addAll(inventoryService.getAllTagListingBrands(14206));
103
		brands.addAll(inventoryService.getAllTagListingBrands(14206));
103
		model.addAttribute("brands", brands);
104
		model.addAttribute("brands", brands);
-
 
105
		model.addAttribute("retailerTypes", PartnerType.values());
104
		return "create-scheme";
106
		return "create-scheme";
105
	}
107
	}
106
 
108
 
107
	@RequestMapping(value = "/getTagListingItemsByBrand", method = RequestMethod.POST)
109
	@RequestMapping(value = "/getTagListingItemsByBrand", method = RequestMethod.POST)
108
	public String getTagListingItemsByBrand(HttpServletRequest request, @RequestBody List<String> brands, Model model) {
110
	public String getTagListingItemsByBrand(HttpServletRequest request, @RequestBody List<String> brands, Model model) {