Subversion Repositories SmartDukaan

Rev

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

Rev 7595 Rev 14898
Line 44... Line 44...
44
    private String            startTimestamp;
44
    private String            startTimestamp;
45
    private String            endTimestamp;
45
    private String            endTimestamp;
46
    private String            customerEmailId;
46
    private String            customerEmailId;
47
    private String            customerName;
47
    private String            customerName;
48
    private String            userId;
48
    private String            userId;
-
 
49
    private String			  notShowPmTickets;
49
 
50
 
50
    public String index() {
51
    public String index() {
51
        try {
52
        try {
52
            SearchFilter searchFilter = new SearchFilter();
53
            SearchFilter searchFilter = new SearchFilter();
53
 
54
            
-
 
55
            if(notShowPmTickets!=null && !notShowPmTickets.isEmpty()){
-
 
56
            	searchFilter.setNotShowPmTickets(Boolean.parseBoolean(notShowPmTickets));
-
 
57
            }
54
            if (activityId != null && !activityId.isEmpty()) {
58
            if (activityId != null && !activityId.isEmpty()) {
55
                searchFilter.setActivityId(Long.parseLong(activityId));
59
                searchFilter.setActivityId(Long.parseLong(activityId));
56
            } else if (userId != null && !userId.isEmpty()) {
60
            } else if (userId != null && !userId.isEmpty()) {
57
                searchFilter.setCustomerId(Long.parseLong(userId));
61
                searchFilter.setCustomerId(Long.parseLong(userId));
58
            } else if (creatorId != null && !creatorId.isEmpty()) {
62
            } else if (creatorId != null && !creatorId.isEmpty()) {
Line 164... Line 168...
164
 
168
 
165
            if (user != null && user.getUserId() != -1) {
169
            if (user != null && user.getUserId() != -1) {
166
                activity.setCustomerId(user.getUserId());
170
                activity.setCustomerId(user.getUserId());
167
            }
171
            }
168
        }
172
        }
-
 
173
        
169
 
174
 
170
        crmServiceClient = new CRMClient().getClient();
175
        crmServiceClient = new CRMClient().getClient();
171
        activityId = String.valueOf(crmServiceClient.insertActivity(activity));
176
        activityId = String.valueOf(crmServiceClient.insertActivity(activity));
172
 
177
 
173
        return index();
178
        return index();
Line 347... Line 352...
347
    }
352
    }
348
 
353
 
349
    public void setCategory(String category) {
354
    public void setCategory(String category) {
350
        this.category = category;
355
        this.category = category;
351
    }
356
    }
-
 
357
 
-
 
358
	public String getNotShowPmTickets() {
-
 
359
		return notShowPmTickets;
-
 
360
	}
-
 
361
 
-
 
362
	public void setShowPmTickets(String notShowPmTickets) {
-
 
363
		this.notShowPmTickets = notShowPmTickets;
-
 
364
	}
352
}
365
}