Subversion Repositories SmartDukaan

Rev

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

Rev 3106 Rev 3206
Line 20... Line 20...
20
    // Basic attributes of activity
20
    // Basic attributes of activity
21
    private long           id;
21
    private long           id;
22
    private String         description;
22
    private String         description;
23
    private ActivityType   type;
23
    private ActivityType   type;
24
    private long           customerId;
24
    private long           customerId;
-
 
25
    private Long           emailId;
25
 
26
 
26
    // time at which the activity happened
27
    // time at which the activity happened
27
    private Date           creationTimestamp;
28
    private Date           creationTimestamp;
28
    private long           creatorId;
29
    private long           creatorId;
29
 
30
 
Line 46... Line 47...
46
            throws ParseException {
47
            throws ParseException {
47
        Activity activity = new Activity();
48
        Activity activity = new Activity();
48
        activity.id = tactivity.getId();
49
        activity.id = tactivity.getId();
49
        activity.customerId = tactivity.getCustomerId();
50
        activity.customerId = tactivity.getCustomerId();
50
        activity.description = tactivity.getDescription();
51
        activity.description = tactivity.getDescription();
-
 
52
 
-
 
53
        if (tactivity.isSetEmailId()) {
-
 
54
            activity.emailId = tactivity.getEmailId();
-
 
55
        }
-
 
56
 
-
 
57
        activity.emailId = tactivity.getEmailId();
51
        activity.creationTimestamp = new Date(tactivity.getCreationTimestamp());
58
        activity.creationTimestamp = new Date(tactivity.getCreationTimestamp());
52
        activity.creatorId = tactivity.getCreatorId();
59
        activity.creatorId = tactivity.getCreatorId();
53
 
60
 
54
        if (tactivity.isSetTicketId() && tactivity.getTicketId() != 0) {
61
        if (tactivity.isSetTicketId() && tactivity.getTicketId() != 0) {
55
            activity.ticketId = tactivity.getTicketId();
62
            activity.ticketId = tactivity.getTicketId();
Line 77... Line 84...
77
        in.shop2020.crm.Activity tactivity = new in.shop2020.crm.Activity();
84
        in.shop2020.crm.Activity tactivity = new in.shop2020.crm.Activity();
78
        tactivity.setId(id);
85
        tactivity.setId(id);
79
        tactivity.setCustomerId(customerId);
86
        tactivity.setCustomerId(customerId);
80
        tactivity.setDescription(description);
87
        tactivity.setDescription(description);
81
        tactivity.setType(type);
88
        tactivity.setType(type);
-
 
89
        
-
 
90
        if (emailId != null) {
-
 
91
            tactivity.setEmailId(emailId);
-
 
92
        }
-
 
93
        else {
-
 
94
            tactivity.setEmailIdIsSet(false);
-
 
95
        }
82
 
96
 
83
        if (ticketId != null) {
97
        if (ticketId != null) {
84
            tactivity.setTicketId(ticketId);
98
            tactivity.setTicketId(ticketId);
85
        }
99
        }
86
        else {
100
        else {
Line 197... Line 211...
197
    }
211
    }
198
 
212
 
199
    public void setType(ActivityType type) {
213
    public void setType(ActivityType type) {
200
        this.type = type;
214
        this.type = type;
201
    }
215
    }
-
 
216
 
-
 
217
    public Long getEmailId() {
-
 
218
        return emailId;
-
 
219
    }
-
 
220
 
-
 
221
    public void setEmailId(Long emailId) {
-
 
222
        this.emailId = emailId;
-
 
223
    }
202
}
224
}