|
|
@@ -3,46 +3,607 @@ package com.yingpaipay.business.enumeration;
|
|
|
import lombok.AccessLevel;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Getter;
|
|
|
+import org.springframework.context.i18n.LocaleContextHolder;
|
|
|
|
|
|
@Getter
|
|
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
|
|
public enum MailTemplateEnum {
|
|
|
|
|
|
- TO_SUBMIT(
|
|
|
- """
|
|
|
+ TO_SUBMIT("文件递交提醒", "Document Submission Reminder", """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>文档递交提醒</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f9f9f9; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f9f9f9; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eaeaea;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #2c3e50;">文档递交提醒</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 0 40px 30px 40px;">
|
|
|
+ <p style="margin: 20px 0 10px 0; font-size: 16px;">
|
|
|
+ 尊敬的{0}:
|
|
|
+ </p>
|
|
|
+ <p style="margin: 10px 0; font-size: 16px;">
|
|
|
+ 您有一份文档需要递交,相关信息如下:
|
|
|
+ </p>
|
|
|
+ <ul style="margin: 15px 0 20px 0; padding-left: 20px; font-size: 16px;">
|
|
|
+ <li><strong>文档名称:</strong>{1}</li>
|
|
|
+ <li><strong>所属项目:</strong>{2}</li>
|
|
|
+ <li><strong>存储路径:</strong>{3}</li>
|
|
|
+ <li><strong>截止时间:</strong>{4}</li>
|
|
|
+ </ul>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #d35400;">
|
|
|
+ 请您尽快处理,以免影响后续流程。
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ 此邮件由系统自动发送,请勿直接回复。
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """, """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document Submission Reminder</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: #f5f7fa; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f5f7fa; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #e0e0e0;">
|
|
|
+ <!-- Header -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #f8f9fa; border-bottom: 1px solid #eeeeee;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #2c3e50;">Document Submission Reminder</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Body -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px;">
|
|
|
+ <p style="margin: 0 0 16px 0; font-size: 16px;">
|
|
|
+ Dear {0},
|
|
|
+ </p>
|
|
|
+ <p style="margin: 0 0 20px 0; font-size: 16px;">
|
|
|
+ This is a friendly reminder that you have a document pending submission.
|
|
|
+ </p>
|
|
|
+ <table role="presentation" width="100%" style="margin: 20px 0; font-size: 16px; border-collapse: collapse;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; width: 120px; font-weight: bold; color: #555555;">Document:</td>
|
|
|
+ <td style="padding: 6px 0;">{1}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Project:</td>
|
|
|
+ <td style="padding: 6px 0;">{2}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Location:</td>
|
|
|
+ <td style="padding: 6px 0;">{3}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Deadline:</td>
|
|
|
+ <td style="padding: 6px 0; color: #d32f2f;"><strong>{4}</strong></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px;">
|
|
|
+ Please submit the document at your earliest convenience to avoid any delays.
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Footer -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ This is an automated message. Please do not reply directly to this email.
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """), TO_AUDIT("文档待审核提醒", "Document Awaiting Review", """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>文档待审核提醒</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f9f9f9; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f9f9f9; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eaeaea;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #2c3e50;">文档待审核提醒</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 0 40px 30px 40px;">
|
|
|
+ <p style="margin: 20px 0 10px 0; font-size: 16px;">
|
|
|
+ 尊敬的{0}:
|
|
|
+ </p>
|
|
|
+ <p style="margin: 10px 0; font-size: 16px;">
|
|
|
+ 您有一份文档已提交,等待您的审核,相关信息如下:
|
|
|
+ </p>
|
|
|
+ <ul style="margin: 15px 0 20px 0; padding-left: 20px; font-size: 16px;">
|
|
|
+ <li><strong>文档名称:</strong>{1}</li>
|
|
|
+ <li><strong>所属项目:</strong>{2}</li>
|
|
|
+ <li><strong>存储路径:</strong>{3}</li>
|
|
|
+ <li><strong>提交时间:</strong>{4}</li>
|
|
|
+ </ul>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #3498db;">
|
|
|
+ 请您及时登录系统进行审核处理。
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ 此邮件由系统自动发送,请勿直接回复。
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """, """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document Awaiting Review</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: #f5f7fa; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f5f7fa; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #e0e0e0;">
|
|
|
+ <!-- Header -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #f8f9fa; border-bottom: 1px solid #eeeeee;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #2c3e50;">Document Awaiting Review</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Body -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px;">
|
|
|
+ <p style="margin: 0 0 16px 0; font-size: 16px;">
|
|
|
+ Dear {0},
|
|
|
+ </p>
|
|
|
+ <p style="margin: 0 0 20px 0; font-size: 16px;">
|
|
|
+ A document has been submitted and is awaiting your review.
|
|
|
+ </p>
|
|
|
+ <table role="presentation" width="100%" style="margin: 20px 0; font-size: 16px; border-collapse: collapse;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; width: 120px; font-weight: bold; color: #555555;">Document:</td>
|
|
|
+ <td style="padding: 6px 0;">{1}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Project:</td>
|
|
|
+ <td style="padding: 6px 0;">{2}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Location:</td>
|
|
|
+ <td style="padding: 6px 0;">{3}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Submitted At:</td>
|
|
|
+ <td style="padding: 6px 0; color: #1976d2;"><strong>{4}</strong></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px;">
|
|
|
+ Please log in to the system at your earliest convenience to complete the review.
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Footer -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ This is an automated message. Please do not reply directly to this email.
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """), AUDIT_REJECT("文档审核结果通知", "Document Audit Result", """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>文档审核驳回</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f9f9f9; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f9f9f9; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eaeaea;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #ffebee; border-bottom: 1px solid #ffcdd2;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #e74c3c;">❌ 文档审核未通过</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 0 40px 30px 40px;">
|
|
|
+ <p style="margin: 20px 0 10px 0; font-size: 16px;">
|
|
|
+ 尊敬的{0}:
|
|
|
+ </p>
|
|
|
+ <p style="margin: 10px 0; font-size: 16px;">
|
|
|
+ 您提交的文档未通过审核,请根据以下意见修改后重新提交:
|
|
|
+ </p>
|
|
|
+ <ul style="margin: 15px 0 20px 0; padding-left: 20px; font-size: 16px;">
|
|
|
+ <li><strong>文档名称:</strong>{1}</li>
|
|
|
+ <li><strong>所属项目:</strong>{2}</li>
|
|
|
+ <li><strong>存储路径:</strong>{3}</li>
|
|
|
+ <li><strong>驳回时间:</strong>{4}</li>
|
|
|
+ </ul>
|
|
|
+ <div style="margin: 20px 0; padding: 15px; background-color: #fff8f8; border-left: 4px solid #e74c3c; font-size: 16px; color: #c0392b;">
|
|
|
+ <strong>驳回理由:</strong><br>
|
|
|
+ {5}
|
|
|
+ </div>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #e74c3c;">
|
|
|
+ 请尽快处理,以免影响项目进度。
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ 此邮件由系统自动发送,请勿直接回复。
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """, """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document Rejected</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: #f5f7fa; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f5f7fa; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #e0e0e0;">
|
|
|
+ <!-- Header -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #ffebee; border-bottom: 1px solid #ffcdd2;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #c62828;">❌ Document Rejected</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Body -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px;">
|
|
|
+ <p style="margin: 0 0 16px 0; font-size: 16px;">
|
|
|
+ Dear {0},
|
|
|
+ </p>
|
|
|
+ <p style="margin: 0 0 20px 0; font-size: 16px;">
|
|
|
+ Your submitted document was not approved. Please revise and resubmit based on the feedback below.
|
|
|
+ </p>
|
|
|
+ <table role="presentation" width="100%" style="margin: 20px 0; font-size: 16px; border-collapse: collapse;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; width: 120px; font-weight: bold; color: #555555;">Document:</td>
|
|
|
+ <td style="padding: 6px 0;">{1}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Project:</td>
|
|
|
+ <td style="padding: 6px 0;">{2}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Location:</td>
|
|
|
+ <td style="padding: 6px 0;">{3}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Rejected At:</td>
|
|
|
+ <td style="padding: 6px 0; color: #c62828;"><strong>{4}</strong></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div style="margin: 25px 0; padding: 15px; background-color: #fdf6f6; border-left: 4px solid #d32f2f; font-size: 16px; color: #b71c1c;">
|
|
|
+ <strong>Rejection Reason:</strong><br>
|
|
|
+ {5}
|
|
|
+ </div>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #c62828;">
|
|
|
+ Please address this promptly to avoid project delays.
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Footer -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ This is an automated message. Please do not reply directly to this email.
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """), AUDIT_PASS("文档审核结果通知", "Document Audit Result", """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>文档审核通过</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f9f9f9; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f9f9f9; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eaeaea;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #e8f5e9; border-bottom: 1px solid #c8e6c9;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #27ae60;">✅ 文档审核通过</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 0 40px 30px 40px;">
|
|
|
+ <p style="margin: 20px 0 10px 0; font-size: 16px;">
|
|
|
+ 尊敬的{0}:
|
|
|
+ </p>
|
|
|
+ <p style="margin: 10px 0; font-size: 16px;">
|
|
|
+ 您提交的文档已通过审核,相关信息如下:
|
|
|
+ </p>
|
|
|
+ <ul style="margin: 15px 0 20px 0; padding-left: 20px; font-size: 16px;">
|
|
|
+ <li><strong>文档名称:</strong>{1}</li>
|
|
|
+ <li><strong>所属项目:</strong>{2}</li>
|
|
|
+ <li><strong>存储路径:</strong>{3}</li>
|
|
|
+ <li><strong>审核时间:</strong>{4}</li>
|
|
|
+ </ul>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #27ae60;">
|
|
|
+ 感谢您的配合。
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ 此邮件由系统自动发送,请勿直接回复。
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """, """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document Approved</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: #f5f7fa; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f5f7fa; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #e0e0e0;">
|
|
|
+ <!-- Header -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #e8f5e9; border-bottom: 1px solid #c8e6c9;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #2e7d32;">✅ Document Approved</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Body -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px;">
|
|
|
+ <p style="margin: 0 0 16px 0; font-size: 16px;">
|
|
|
+ Dear {0},
|
|
|
+ </p>
|
|
|
+ <p style="margin: 0 0 20px 0; font-size: 16px;">
|
|
|
+ Your submitted document has been approved.
|
|
|
+ </p>
|
|
|
+ <table role="presentation" width="100%" style="margin: 20px 0; font-size: 16px; border-collapse: collapse;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; width: 120px; font-weight: bold; color: #555555;">Document:</td>
|
|
|
+ <td style="padding: 6px 0;">{1}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Project:</td>
|
|
|
+ <td style="padding: 6px 0;">{2}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Location:</td>
|
|
|
+ <td style="padding: 6px 0;">{3}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Approved At:</td>
|
|
|
+ <td style="padding: 6px 0; color: #2e7d32;"><strong>{4}</strong></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #2e7d32;">
|
|
|
+ Thank you for your cooperation.
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Footer -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ This is an automated message. Please do not reply directly to this email.
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """), QC_REJECT("质控驳回通知", "Quality Control Rejected", """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>质控驳回</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f9f9f9; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f9f9f9; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eaeaea;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #ffebee; border-bottom: 1px solid #ffcdd2;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #e74c3c;">❌ 质控未通过</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 0 40px 30px 40px;">
|
|
|
+ <p style="margin: 20px 0 10px 0; font-size: 16px;">
|
|
|
+ 尊敬的{0}:
|
|
|
+ </p>
|
|
|
+ <p style="margin: 10px 0; font-size: 16px;">
|
|
|
+ 您负责的指控任务在质控环节被驳回,请根据以下反馈修改并重新提交:
|
|
|
+ </p>
|
|
|
+ <ul style="margin: 15px 0 20px 0; padding-left: 20px; font-size: 16px;">
|
|
|
+ <li><strong>指控任务名:</strong>{1}</li>
|
|
|
+ <li><strong>所属项目:</strong>{2}</li>
|
|
|
+ <li><strong>文件名称:</strong>{3}</li>
|
|
|
+ <li><strong>问题类型:</strong>{4}</li>
|
|
|
+ <li><strong>截止日期:</strong>{6}</li>
|
|
|
+ </ul>
|
|
|
+ <div style="margin: 20px 0; padding: 15px; background-color: #fff8f8; border-left: 4px solid #e74c3c; font-size: 16px; color: #c0392b;">
|
|
|
+ <strong>质控意见:</strong><br>
|
|
|
+ {5}
|
|
|
+ </div>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #e74c3c;">
|
|
|
+ 请务必在截止日期前完成修正,以免影响整体进度。
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ 此邮件由系统自动发送,请勿直接回复。
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """, """
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Quality Control Rejected</title>
|
|
|
+ </head>
|
|
|
+ <body style="margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background-color: #f5f7fa; color: #333333; line-height: 1.6;">
|
|
|
+ <table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background-color: #f5f7fa; padding: 20px 0;">
|
|
|
+ <tr>
|
|
|
+ <td align="center">
|
|
|
+ <table role="presentation" width="600" cellspacing="0" cellpadding="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #e0e0e0;">
|
|
|
+ <!-- Header -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px 20px 40px; background-color: #ffebee; border-bottom: 1px solid #ffcdd2;">
|
|
|
+ <h2 style="margin: 0; font-size: 22px; color: #c62828;">❌ Quality Control Rejected</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Body -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 30px 40px;">
|
|
|
+ <p style="margin: 0 0 16px 0; font-size: 16px;">
|
|
|
+ Dear {0},
|
|
|
+ </p>
|
|
|
+ <p style="margin: 0 0 20px 0; font-size: 16px;">
|
|
|
+ Your assigned allegation task has failed quality control. Please revise and resubmit based on the feedback below.
|
|
|
+ </p>
|
|
|
+ <table role="presentation" width="100%" style="margin: 20px 0; font-size: 16px; border-collapse: collapse;">
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; width: 140px; font-weight: bold; color: #555555;">Allegation Task:</td>
|
|
|
+ <td style="padding: 6px 0;">{1}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Project:</td>
|
|
|
+ <td style="padding: 6px 0;">{2}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">File Name:</td>
|
|
|
+ <td style="padding: 6px 0;">{3}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Issue Type:</td>
|
|
|
+ <td style="padding: 6px 0; color: #d32f2f;">{4}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 6px 0; font-weight: bold; color: #555555;">Deadline:</td>
|
|
|
+ <td style="padding: 6px 0; color: #d32f2f;"><strong>{6}</strong></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <div style="margin: 25px 0; padding: 15px; background-color: #fdf6f6; border-left: 4/p>
|
|
|
+ <div style="margin: 25px 0; padding: 15px; background-color: #fdf6f6; border-left: 4px solid #d32f2f; font-size: 16px; color: #b71c1c;">
|
|
|
+ <strong>QC Feedback:</strong><br>
|
|
|
+ {5}
|
|
|
+ </div>
|
|
|
+ <p style="margin: 20px 0 0 0; font-size: 16px; color: #c62828;">
|
|
|
+ Please ensure corrections are completed before the deadline to avoid project delays.
|
|
|
+ </p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- Footer -->
|
|
|
+ <tr>
|
|
|
+ <td style="padding: 20px 40px; background-color: #f1f1f1; font-size: 14px; color: #777777; border-top: 1px solid #eeeeee;">
|
|
|
+ This is an automated message. Please do not reply directly to this email.
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+ """), TO_QC("", "", """
|
|
|
|
|
|
- """,
|
|
|
- """
|
|
|
+ """, """
|
|
|
|
|
|
- """
|
|
|
- ),
|
|
|
- TO_AUDIT(
|
|
|
- """
|
|
|
-
|
|
|
- """,
|
|
|
- """
|
|
|
-
|
|
|
- """
|
|
|
- ),
|
|
|
- AUDIT_REJECT(
|
|
|
- """
|
|
|
-
|
|
|
- """,
|
|
|
- """
|
|
|
-
|
|
|
- """
|
|
|
- ),
|
|
|
- AUDIT_PASS(
|
|
|
- """
|
|
|
-
|
|
|
- """,
|
|
|
- """
|
|
|
-
|
|
|
- """
|
|
|
- )
|
|
|
+ """),
|
|
|
;
|
|
|
|
|
|
+ private final String zhTitle;
|
|
|
+ private final String enTitle;
|
|
|
private final String zhContent;
|
|
|
private final String enContent;
|
|
|
|
|
|
+ public String getTitle() {
|
|
|
+ return LocaleContextHolder.getLocale().getLanguage().equals("zh") ? this.zhTitle : this.enTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getContent() {
|
|
|
+ return LocaleContextHolder.getLocale().getLanguage().equals("zh") ? this.zhContent : this.enContent;
|
|
|
+ }
|
|
|
+
|
|
|
}
|