| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| - |
|
3 |
import in.shop2020.crm.TicketCategory;
|
| 3 |
import in.shop2020.model.v1.order.LineItem;
|
4 |
import in.shop2020.model.v1.order.LineItem;
|
| 4 |
import in.shop2020.model.v1.order.RechargeType;
|
5 |
import in.shop2020.model.v1.order.RechargeType;
|
| 5 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
6 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
| 6 |
import in.shop2020.thrift.clients.TransactionClient;
|
7 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 7 |
import in.shop2020.util.CRMConstants;
|
8 |
import in.shop2020.util.CRMConstants;
|
| 8 |
import in.shop2020.util.CRMConstants.CODCancelMatrix;
|
9 |
import in.shop2020.util.CRMConstants.CODCancelMatrix;
|
| 9 |
import in.shop2020.utils.ModelUtils;
|
10 |
import in.shop2020.utils.ModelUtils;
|
| 10 |
|
11 |
|
| 11 |
import java.text.SimpleDateFormat;
|
12 |
import java.text.SimpleDateFormat;
|
| - |
|
13 |
import java.util.ArrayList;
|
| 12 |
import java.util.Date;
|
14 |
import java.util.Date;
|
| - |
|
15 |
import java.util.List;
|
| 13 |
import java.util.Map;
|
16 |
import java.util.Map;
|
| 14 |
|
17 |
|
| 15 |
import javax.servlet.http.HttpServletRequest;
|
18 |
import javax.servlet.http.HttpServletRequest;
|
| 16 |
import javax.servlet.http.HttpServletResponse;
|
19 |
import javax.servlet.http.HttpServletResponse;
|
| 17 |
import javax.servlet.http.HttpSession;
|
20 |
import javax.servlet.http.HttpSession;
|
| Line 50... |
Line 53... |
| 50 |
|
53 |
|
| 51 |
protected HttpServletResponse response;
|
54 |
protected HttpServletResponse response;
|
| 52 |
protected HttpServletRequest request;
|
55 |
protected HttpServletRequest request;
|
| 53 |
protected HttpSession session;
|
56 |
protected HttpSession session;
|
| 54 |
protected Map<String, Object> sessionMap;
|
57 |
protected Map<String, Object> sessionMap;
|
| - |
|
58 |
public static List<TicketCategory> profitMandiTicketCategoryList;
|
| - |
|
59 |
|
| - |
|
60 |
static{
|
| - |
|
61 |
profitMandiTicketCategoryList = new ArrayList<TicketCategory>();
|
| - |
|
62 |
profitMandiTicketCategoryList.add(TicketCategory.PROFITMANDI_CASHBACK);
|
| - |
|
63 |
profitMandiTicketCategoryList.add(TicketCategory.PROFITMANDI_FEEDBACK);
|
| - |
|
64 |
profitMandiTicketCategoryList.add(TicketCategory.PROFITMANDI_ORDER_NOT_SEEN);
|
| - |
|
65 |
profitMandiTicketCategoryList.add(TicketCategory.PROFITMANDI_OTHER);
|
| - |
|
66 |
profitMandiTicketCategoryList.add(TicketCategory.PROFITMANDI_RECHARGE_ISSUE);
|
| - |
|
67 |
}
|
| 55 |
|
68 |
|
| 56 |
// Clients used at many places
|
69 |
// Clients used at many places
|
| 57 |
protected in.shop2020.model.v1.user.UserContextService.Client userContextServiceClient;
|
70 |
protected in.shop2020.model.v1.user.UserContextService.Client userContextServiceClient;
|
| 58 |
protected in.shop2020.model.v1.order.TransactionService.Client transactionServiceClient;
|
71 |
protected in.shop2020.model.v1.order.TransactionService.Client transactionServiceClient;
|
| 59 |
protected in.shop2020.crm.CRMService.Client crmServiceClient;
|
72 |
protected in.shop2020.crm.CRMService.Client crmServiceClient;
|
| Line 174... |
Line 187... |
| 174 |
|
187 |
|
| 175 |
public boolean isProfitMandiAgent(){
|
188 |
public boolean isProfitMandiAgent(){
|
| 176 |
return SecurityUtils.getSubject().hasRole("PMAgent");
|
189 |
return SecurityUtils.getSubject().hasRole("PMAgent");
|
| 177 |
}
|
190 |
}
|
| 178 |
|
191 |
|
| - |
|
192 |
public boolean isSaholicAndProfitMandiAllowed(){
|
| - |
|
193 |
return (SecurityUtils.getSubject().hasRole("Outbound")||SecurityUtils.getSubject().hasRole("TeamLead"));
|
| - |
|
194 |
}
|
| - |
|
195 |
|
| 179 |
public String editNew() {
|
196 |
public String editNew() {
|
| 180 |
return EDIT_NEW;
|
197 |
return EDIT_NEW;
|
| 181 |
}
|
198 |
}
|
| 182 |
|
199 |
|
| 183 |
public String edit() {
|
200 |
public String edit() {
|