Package com.gcrm.domain

Examples of com.gcrm.domain.EmailTemplate


        UserUtil.permissionCheck("create_system");
        if (this.getSeleteIDs() != null) {
            String[] ids = seleteIDs.split(",");
            for (int i = 0; i < ids.length; i++) {
                String copyid = ids[i];
                EmailTemplate oriRecord = baseService.getEntityById(
                        EmailTemplate.class, Integer.valueOf(copyid));
                EmailTemplate targetRecord = oriRecord.clone();
                targetRecord.setId(null);
                this.baseService.makePersistent(targetRecord);
            }
        }
        return SUCCESS;
    }
View Full Code Here


                }
                targetEmails.append(email);
            }
        }
        if (targetEmails.length() > 0) {
            EmailTemplate remindEmailTemplte = call.getReminder_template();
            String targetEmail = targetEmails.toString();
            String[] to = targetEmail.split(",");
            String mailSubject = remindEmailTemplte.getSubject();
            String content = "";
            if (remindEmailTemplte.isText_only()) {
                content = remindEmailTemplte.getText_body();
            } else {
                content = remindEmailTemplte.getHtml_body();
            }
            // Replaces the variable in the body
            if (content != null) {
                content = content.replaceAll("\\$call.subject",
                        CommonUtil.fromNullToEmpty(call.getSubject()));
View Full Code Here

                targetEmails.append(email);
            }
        }

        if (targetEmails.length() > 0) {
            EmailTemplate remindEmailTemplte = meeting.getReminder_template();
            String targetEmail = targetEmails.toString();
            String[] to = targetEmail.split(",");
            String mailSubject = remindEmailTemplte.getSubject();

            String content = "";
            if (remindEmailTemplte.isText_only()) {
                content = remindEmailTemplte.getText_body();
            } else {
                content = remindEmailTemplte.getHtml_body();
            }
            // Replaces the variable in the body
            if (content != null) {
                content = content.replaceAll("\\$meeting.subject",
                        CommonUtil.fromNullToEmpty(meeting.getSubject()));
View Full Code Here

TOP

Related Classes of com.gcrm.domain.EmailTemplate

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.