Subversion Repositories SmartDukaan

Rev

Rev 3269 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3269 Rev 3339
Line 39... Line 39...
39
    private User                user;
39
    private User                user;
40
    private String              type;
40
    private String              type;
41
    private String              subject;
41
    private String              subject;
42
    private String              body;
42
    private String              body;
43
    private String              userEmailId;
43
    private String              userEmailId;
44
    private String              customerMobileNumber;
-
 
45
 
44
 
46
    public String index() throws TException, UserContextException {
45
    public String index() throws TException, UserContextException {
47
        createServiceClients();
46
        createServiceClients();
48
        List<Activity> activityList = crmServiceClient.getActivities(Long.parseLong(userId));
47
        List<Activity> activityList = crmServiceClient.getActivities(Long.parseLong(userId));
49
        if (activityList != null) {
48
        if (activityList != null) {
Line 123... Line 122...
123
 
122
 
124
        if (userId != null && !userId.isEmpty()) {
123
        if (userId != null && !userId.isEmpty()) {
125
            activity.setCustomerId(Long.parseLong(userId));
124
            activity.setCustomerId(Long.parseLong(userId));
126
        }
125
        }
127
 
126
 
128
        if (customerMobileNumber != null && !customerMobileNumber.isEmpty()) {
-
 
129
            activity.setCustomerMobileNumber(customerMobileNumber);
-
 
130
        }
-
 
131
 
-
 
132
        if (ActivityType.SEND_EMAIL_TO_CUSTOMER.equals(activity.getType())) {
127
        if (ActivityType.SEND_EMAIL_TO_CUSTOMER.equals(activity.getType())) {
133
            log.info("Sending mail");
128
            log.info("Sending mail");
134
            Client helperClient = new HelperClient().getClient();
129
            Client helperClient = new HelperClient().getClient();
135
            activity.setEmailId(helperClient.saveUserEmailForSending(
130
            activity.setEmailId(helperClient.saveUserEmailForSending(
136
                    userEmailId, CRMConstants.CRM_EMAIL_SENDOR, subject,
131
                    userEmailId, CRMConstants.CRM_EMAIL_SENDOR, subject,
Line 210... Line 205...
210
    }
205
    }
211
 
206
 
212
    public void setUserEmailId(String userEmailId) {
207
    public void setUserEmailId(String userEmailId) {
213
        this.userEmailId = userEmailId;
208
        this.userEmailId = userEmailId;
214
    }
209
    }
215
 
-
 
216
    public String getCustomerMobileNumber() {
-
 
217
        return customerMobileNumber;
-
 
218
    }
-
 
219
 
-
 
220
    public void setCustomerMobileNumber(String customerMobileNumber) {
-
 
221
        this.customerMobileNumber = customerMobileNumber;
-
 
222
    }
-
 
223
}
210
}