| Line 80... |
Line 80... |
| 80 |
public String getBadAvailability(HttpServletRequest request,
|
80 |
public String getBadAvailability(HttpServletRequest request,
|
| 81 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
81 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 82 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
82 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
| 83 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
83 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
| 84 |
throws ProfitMandiBusinessException {
|
84 |
throws ProfitMandiBusinessException {
|
| - |
|
85 |
if(searchTerm==null) {
|
| - |
|
86 |
searchTerm="";
|
| - |
|
87 |
}
|
| 85 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
88 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 86 |
Map<String, Object> map = inventoryService.getBadInventorySnapshot(loginDetails.getFofoId(), offset, limit,
|
89 |
Map<String, Object> map = inventoryService.getBadInventorySnapshot(loginDetails.getFofoId(), offset, limit,
|
| 87 |
searchTerm);
|
90 |
searchTerm);
|
| 88 |
model.addAllAttributes(map);
|
91 |
model.addAllAttributes(map);
|
| 89 |
return "bad-inventory-snapshot";
|
92 |
return "bad-inventory-snapshot";
|
| Line 93... |
Line 96... |
| 93 |
public String getPaginatedCurrentInventorySnapshot(HttpServletRequest request,
|
96 |
public String getPaginatedCurrentInventorySnapshot(HttpServletRequest request,
|
| 94 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
97 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 95 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
98 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
| 96 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
99 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
| 97 |
throws ProfitMandiBusinessException {
|
100 |
throws ProfitMandiBusinessException {
|
| - |
|
101 |
if(searchTerm==null) {
|
| - |
|
102 |
searchTerm="";
|
| - |
|
103 |
}
|
| 98 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
104 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 99 |
Map<String, Object> map = inventoryService.getPaginatedCurrentInventorySnapshot(loginDetails.getFofoId(),
|
105 |
Map<String, Object> map = inventoryService.getPaginatedCurrentInventorySnapshot(loginDetails.getFofoId(),
|
| 100 |
offset, limit, searchTerm);
|
106 |
offset, limit, searchTerm);
|
| 101 |
model.addAllAttributes(map);
|
107 |
model.addAllAttributes(map);
|
| 102 |
return "inventory-snapshot-paginated";
|
108 |
return "inventory-snapshot-paginated";
|
| Line 106... |
Line 112... |
| 106 |
public String getCatalog(HttpServletRequest request, @RequestParam(name = "offset", defaultValue = "0") int offset,
|
112 |
public String getCatalog(HttpServletRequest request, @RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 107 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
113 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
| 108 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
114 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
| 109 |
throws ProfitMandiBusinessException {
|
115 |
throws ProfitMandiBusinessException {
|
| 110 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
116 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| - |
|
117 |
if(searchTerm==null) {
|
| - |
|
118 |
searchTerm="";
|
| - |
|
119 |
}
|
| 111 |
Map<String, Object> map = inventoryService.getCatalog(loginDetails.getFofoId(), offset, limit, searchTerm);
|
120 |
Map<String, Object> map = inventoryService.getCatalog(loginDetails.getFofoId(), offset, limit, searchTerm);
|
| 112 |
model.addAllAttributes(map);
|
121 |
model.addAllAttributes(map);
|
| 113 |
return "catalog";
|
122 |
return "catalog";
|
| 114 |
}
|
123 |
}
|
| 115 |
|
124 |
|
| Line 118... |
Line 127... |
| 118 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
127 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 119 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
128 |
@RequestParam(name = "limit", defaultValue = "10") int limit,
|
| 120 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
129 |
@RequestParam(name = "searchTerm", required = false, defaultValue = "") String searchTerm, Model model)
|
| 121 |
throws ProfitMandiBusinessException {
|
130 |
throws ProfitMandiBusinessException {
|
| 122 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
131 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| - |
|
132 |
if(searchTerm==null) {
|
| - |
|
133 |
searchTerm="";
|
| - |
|
134 |
}
|
| 123 |
Map<String, Object> map = inventoryService.getPaginatedCatalog(loginDetails.getFofoId(), offset, limit,
|
135 |
Map<String, Object> map = inventoryService.getPaginatedCatalog(loginDetails.getFofoId(), offset, limit,
|
| 124 |
searchTerm);
|
136 |
searchTerm);
|
| 125 |
model.addAllAttributes(map);
|
137 |
model.addAllAttributes(map);
|
| 126 |
return "catalog-paginated";
|
138 |
return "catalog-paginated";
|
| 127 |
}
|
139 |
}
|