Examples of reformat()


Examples of com.iisigroup.cap.formatter.ADDateTimeFormatter.reformat()

    for (Reminds remind : reminds) {
      Remind content = reminderService.findRemind(remind.getPid());
      try {
        NotifyObject data = new NotifyObject();
        data.setTargetId(remind.getScopePid());
        data.setStartTime(formatter.reformat(content.getStartDate()));
        data.setEndTime(formatter.reformat(content.getEndDate()));
        data.setContent(content.getContent());

        CapUserDetails userDetail = allPrincipal
            .get(data.getTargetId());
View Full Code Here

Examples of com.iisigroup.cap.formatter.ADDateTimeFormatter.reformat()

      Remind content = reminderService.findRemind(remind.getPid());
      try {
        NotifyObject data = new NotifyObject();
        data.setTargetId(remind.getScopePid());
        data.setStartTime(formatter.reformat(content.getStartDate()));
        data.setEndTime(formatter.reformat(content.getEndDate()));
        data.setContent(content.getContent());

        CapUserDetails userDetail = allPrincipal
            .get(data.getTargetId());
        if (userDetail != null) {
View Full Code Here

Examples of com.iisigroup.cap.formatter.ADDateTimeFormatter.reformat()

    for (Reminds remind : reminds) {
      Remind content = reminderService.findRemind(remind.getPid());
      // 主旨
      StringBuffer subject = new StringBuffer();
      subject.append(CapAppContext.getMessage("remind.subject1"));
      subject.append(formatter.reformat(content.getStartDate()));
      subject.append(" ");
      subject.append(CapAppContext.getMessage("remind.subject2"));
      subject.append(CapString.isEmpty(content.getContent()) ? ""
          : content.getContent().substring(
              0,
View Full Code Here

Examples of com.iisigroup.cap.formatter.ADDateTimeFormatter.reformat()

              content.getContent().length() > 40 ? 40 : content
                  .getContent().length()));
      // 內文
      StringBuffer sendContext = new StringBuffer();
      sendContext.append(CapAppContext.getMessage("remind.startDate"));
      sendContext.append(formatter.reformat(content.getStartDate()));
      sendContext.append("<br/>");
      sendContext.append(CapAppContext.getMessage("remind.endDate"));
      sendContext.append(formatter.reformat(content.getEndDate()));
      sendContext.append("<br/>");
      sendContext.append(CapAppContext.getMessage("remind.subject2"));
View Full Code Here

Examples of com.iisigroup.cap.formatter.ADDateTimeFormatter.reformat()

      StringBuffer sendContext = new StringBuffer();
      sendContext.append(CapAppContext.getMessage("remind.startDate"));
      sendContext.append(formatter.reformat(content.getStartDate()));
      sendContext.append("<br/>");
      sendContext.append(CapAppContext.getMessage("remind.endDate"));
      sendContext.append(formatter.reformat(content.getEndDate()));
      sendContext.append("<br/>");
      sendContext.append(CapAppContext.getMessage("remind.subject2"));
      sendContext.append(formatter.reformat(content.getContent()));

      String email = reminderService.getUsrEmail(remind.getScopePid());
View Full Code Here

Examples of com.iisigroup.cap.formatter.ADDateTimeFormatter.reformat()

      sendContext.append("<br/>");
      sendContext.append(CapAppContext.getMessage("remind.endDate"));
      sendContext.append(formatter.reformat(content.getEndDate()));
      sendContext.append("<br/>");
      sendContext.append(CapAppContext.getMessage("remind.subject2"));
      sendContext.append(formatter.reformat(content.getContent()));

      String email = reminderService.getUsrEmail(remind.getScopePid());
      if (email != null) {
        emailService.sendEmail(new String[] { email },
            subject.toString(), sendContext.toString());
View Full Code Here

Examples of com.iisigroup.cap.formatter.IFormatter.reformat()

          val = "";
        }
        if (dataReformatter != null && dataReformatter.containsKey(str)) {
          IFormatter callback = dataReformatter.get(str);
          if (callback instanceof IBeanFormatter) {
            val = callback.reformat(data);
          } else {
            val = callback.reformat(val);
          }
        } else if (val instanceof Timestamp) {
          val = new ADDateTimeFormatter().reformat(val);
View Full Code Here

Examples of com.iisigroup.cap.formatter.IFormatter.reformat()

        if (dataReformatter != null && dataReformatter.containsKey(str)) {
          IFormatter callback = dataReformatter.get(str);
          if (callback instanceof IBeanFormatter) {
            val = callback.reformat(data);
          } else {
            val = callback.reformat(val);
          }
        } else if (val instanceof Timestamp) {
          val = new ADDateTimeFormatter().reformat(val);
        } else if (val instanceof Date || val instanceof Calendar) {
          val = new ADDateFormatter().reformat(val);
View Full Code Here

Examples of com.iisigroup.cap.formatter.IFormatter.reformat()

          val = "";
        }
        if (reformat != null && reformat.containsKey(str)) {
          IFormatter callback = reformat.get(str);
          if (callback instanceof IBeanFormatter) {
            val = callback.reformat(this);
          } else {
            val = callback.reformat(val);
          }
        } else if (val instanceof Timestamp) {
          val = new ADDateTimeFormatter().reformat(val);
View Full Code Here

Examples of com.iisigroup.cap.formatter.IFormatter.reformat()

        if (reformat != null && reformat.containsKey(str)) {
          IFormatter callback = reformat.get(str);
          if (callback instanceof IBeanFormatter) {
            val = callback.reformat(this);
          } else {
            val = callback.reformat(val);
          }
        } else if (val instanceof Timestamp) {
          val = new ADDateTimeFormatter().reformat(val);
        } else if (val instanceof Date || val instanceof Calendar) {
          val = new ADDateFormatter().reformat(val);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.