Subversion Repositories SmartDukaan

Rev

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

Rev 4008 Rev 4142
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
3
import in.shop2020.crm.Activity;
3
import in.shop2020.crm.Activity;
-
 
4
import in.shop2020.crm.ActivityType;
4
import in.shop2020.crm.Agent;
5
import in.shop2020.crm.Agent;
5
import in.shop2020.crm.SearchFilter;
6
import in.shop2020.crm.SearchFilter;
6
import in.shop2020.crm.Ticket;
7
import in.shop2020.crm.Ticket;
7
import in.shop2020.crm.TicketCategory;
8
import in.shop2020.crm.TicketCategory;
8
import in.shop2020.crm.TicketStatus;
9
import in.shop2020.crm.TicketStatus;
Line 238... Line 239...
238
 
239
 
239
    private void loadCartDetails() throws UserContextException, TException {
240
    private void loadCartDetails() throws UserContextException, TException {
240
        userContextServiceClient = new UserClient().getClient();
241
        userContextServiceClient = new UserClient().getClient();
241
        UserState userState = userContextServiceClient.getUserState(user
242
        UserState userState = userContextServiceClient.getUserState(user
242
                .getUserId());
243
                .getUserId());
243
        lastLogin = SDF.format(new Date(userState.getLastLogin()));
244
        lastLogin = new Date(userState.getLastLogin()).toString();
244
        Cart cart = null;
245
        Cart cart = null;
245
 
246
 
246
        try {
247
        try {
247
            cart = userContextServiceClient.getCurrentCart(user.getUserId());
248
            cart = userContextServiceClient.getCurrentCart(user.getUserId());
248
            if (cart.getCouponCode() != null) {
249
            if (cart.getCouponCode() != null) {
Line 292... Line 293...
292
 
293
 
293
    public List<Agent> getAllAgents() {
294
    public List<Agent> getAllAgents() {
294
        return CRMAuthorizingRealm.getAgents();
295
        return CRMAuthorizingRealm.getAgents();
295
    }
296
    }
296
 
297
 
-
 
298
    public ActivityType[] getActivityTypes() {
-
 
299
        return ActivityType.values();
-
 
300
    }
-
 
301
 
-
 
302
    public TicketCategory[] getTicketCategories() {
-
 
303
        return TicketCategory.values();
-
 
304
    }
-
 
305
 
297
    public void setEmail(String email) {
306
    public void setEmail(String email) {
298
        this.email = email;
307
        this.email = email;
299
    }
308
    }
300
 
309
 
301
    public String getEmail() {
310
    public String getEmail() {