Package com.gcrm.domain

Examples of com.gcrm.domain.ReminderOption


            meeting = baseService.getEntityById(Meeting.class, this.getId());
            MeetingStatus status = meeting.getStatus();
            if (status != null) {
                statusID = status.getId();
            }
            ReminderOption reminderOptionEmail = meeting
                    .getReminder_option_email();
            if (reminderOptionEmail != null) {
                reminderOptionEmailID = reminderOptionEmail.getId();
            }
            EmailTemplate reminderTemplate = meeting.getReminder_template();
            if (reminderTemplate != null) {
                reminderTemplateID = reminderTemplate.getId();
            }
View Full Code Here


        if (statusID != null) {
            status = meetingStatusService.getEntityById(MeetingStatus.class,
                    statusID);
        }
        meeting.setStatus(status);
        ReminderOption reminderOptionEmail = null;
        if (reminderOptionEmailID != null) {
            reminderOptionEmail = reminderOptionService.getEntityById(
                    ReminderOption.class, reminderOptionEmailID);
        }
        meeting.setReminder_option_email(reminderOptionEmail);
View Full Code Here

                                String.valueOf(meeting.getRelated_record()));
                    }
                    data1.put(header[8],
                            CommonUtil.fromNullToEmpty(meeting.getLocation()));
                    data1.put(header[9], meeting.isReminder_email());
                    ReminderOption reminderOptionEmail = meeting
                            .getReminder_option_email();
                    if (reminderOptionEmail != null) {
                        data1.put(header[10], reminderOptionEmail.getId());
                    } else {
                        data1.put(header[10], "");
                    }
                    data1.put(header[11],
                            CommonUtil.getOptionLabel(reminderOptionEmail));
View Full Code Here

                    String reminderOptionEmailID = row
                            .get(getText("entity.reminder_option_email_id.label"));
                    if (CommonUtil.isNullOrEmpty(reminderOptionEmailID)) {
                        meeting.setReminder_option_email(null);
                    } else {
                        ReminderOption reminderOption = reminderOptionService
                                .getEntityById(ReminderOption.class,
                                        Integer.parseInt(reminderOptionEmailID));
                        meeting.setReminder_option_email(reminderOption);
                    }
                    meeting.setNotes(CommonUtil.fromNullToEmpty(row
View Full Code Here

            }
            CallDirection direction = call.getDirection();
            if (direction != null) {
                directionID = direction.getId();
            }
            ReminderOption reminderOptionEmail = call
                    .getReminder_option_email();
            if (reminderOptionEmail != null) {
                reminderOptionEmailID = reminderOptionEmail.getId();
            }
            EmailTemplate reminderTemplate = call.getReminder_template();
            if (reminderTemplate != null) {
                reminderTemplateID = reminderTemplate.getId();
            }
View Full Code Here

        if (statusID != null) {
            status = callStatusService
                    .getEntityById(CallStatus.class, statusID);
        }
        call.setStatus(status);
        ReminderOption reminderOptionEmail = null;
        if (reminderOptionEmailID != null) {
            reminderOptionEmail = reminderOptionService.getEntityById(
                    ReminderOption.class, reminderOptionEmailID);
        }
        call.setReminder_option_email(reminderOptionEmail);
View Full Code Here

                        data1.put(header[6], dateFormat.format(startDate));
                    } else {
                        data1.put(header[6], "");
                    }
                    data1.put(header[7], call.isReminder_email());
                    ReminderOption reminderOptionEmail = call
                            .getReminder_option_email();
                    if (reminderOptionEmail != null) {
                        data1.put(header[8], reminderOptionEmail.getId());
                    } else {
                        data1.put(header[8], "");
                    }
                    data1.put(header[9],
                            CommonUtil.getOptionLabel(reminderOptionEmail));
View Full Code Here

                    String reminderOptionEmailID = row
                            .get(getText("entity.reminder_option_email_id.label"));
                    if (CommonUtil.isNullOrEmpty(reminderOptionEmailID)) {
                        call.setReminder_option_email(null);
                    } else {
                        ReminderOption reminderOption = reminderOptionService
                                .getEntityById(ReminderOption.class,
                                        Integer.parseInt(reminderOptionEmailID));
                        call.setReminder_option_email(reminderOption);
                    }
                    call.setNotes(CommonUtil.fromNullToEmpty(row
View Full Code Here

        Date dateEnd = calendarEnd.getTime();

        List<Call> calls = callService.findScheduleCalls(new Date());
        for (Call call : calls) {
            Date startDate = call.getStart_date();
            ReminderOption reminderOption = call.getReminder_option_email();
            String value = reminderOption.getValue();
            if (!CommonUtil.isNullOrEmpty(value)) {
                Calendar calendar = Calendar.getInstance();
                calendar.setTime(startDate);
                calendar.add(Calendar.MINUTE, -Integer.parseInt(value));
                Date dueDateTime = calendar.getTime();
                if (dueDateTime.after(now) && dueDateTime.before(dateEnd)) {
                    Timer timer = new Timer();
                    MailTimerTask task = new MailTimerTask();
                    task.setMailService(mailService);
                    task.setEmailTemplateService(emailTemplateService);
                    task.setCall(call);
                    timer.schedule(task, dueDateTime);

                }
            }
        }

        List<Meeting> meetings = meetingService
                .findScheduleMeetings(new Date());
        for (Meeting meeting : meetings) {
            Date startDate = meeting.getStart_date();
            ReminderOption reminderOption = meeting.getReminder_option_email();
            String value = reminderOption.getValue();
            if (!CommonUtil.isNullOrEmpty(value)) {
                Calendar calendar = Calendar.getInstance();
                calendar.setTime(startDate);
                calendar.add(Calendar.MINUTE, -Integer.parseInt(value));
                Date dueDateTime = calendar.getTime();
View Full Code Here

TOP

Related Classes of com.gcrm.domain.ReminderOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.