package com.goafanti.common.bo;

import com.goafanti.common.constant.AFTConstants;
import com.goafanti.common.utils.DateUtils;

import java.util.Date;

public class EmailBo {

	//收件地址
	//收件人
	//部门
	//发起人
	//通知类型
	//内容
	//结束语
	/**
	 * 收件地址
	 */
	private String subject;
	/**
	 * 收件人
	 */
	private String address;
	/**
	 * 部门
	 */
	private String addressee;
	/**
	 * 发起人
	 */
	private String deptname;
	/**
	 * 收件地址
	 */
	private String sender;
	/**
	 * 内容
	 */
	private String content;
	private String end = "详情请登录科德业务管理系统查看,谢谢!";




	public EmailBo() {
	}


	/**
	 * 专利提醒模版接口
	 * @param subject
	 * @param address
	 * @param addressee
	 * @param deptname
	 * @param sender
	 * @param patentName
	 * @param patentNo
	 * @param amount
	 * @param date
	 */
	public  EmailBo(String subject, String address, String addressee,
			String deptname, String sender,String patentName,String patentNo,String amount,Date date) {
		this.subject = subject;
		this.address = address;
		this.addressee = addressee;
		this.deptname = deptname;
		this.sender = sender;
		long now = new Date().getTime();
		long end = date.getTime();
		String endStr=DateUtils.formatDate(date, AFTConstants.YYYYMMDD);
		Integer days = (int)((end - now) / (1000 * 60 * 60 *24));
		this.content=setPatentFormat( addressee, sender, patentName, patentNo, amount, endStr,days);
	}

	/**
	 *		催款模版
	 * @param subject	标题
	 * @param address	收件地址
	 * @param deptname		发起人部门
	 * @param sender		发起人
	 * @param content		内容
	 * @param orderNo		订单编号
	 * @param contractNo	合同编号
	 * @param date			时间
	 * @param adminName		接收人名字
	 * @param userName		用户名称
	 * @param type		类型 0订单提醒 1催款 2付款催款
	 * @param approval   null 非特批
	 * @return
	 */
	public  EmailBo(String subject, String address, String deptname, String sender,
			String content , String orderNo,String contractNo,String date ,String dunStatusName,String adminName,String userName,Integer type,Integer approval) {
		if(approval !=null&&approval!=0)this.subject = "[特批]"+subject;
		else this.subject = subject;
		this.address = address;
		this.addressee = "";
		this.deptname = deptname;
		this.sender = sender;
		if(type==0)this.content = setGeneralFormat();
		if(type==1)this.content=setDunFormat(  sender, deptname,orderNo,contractNo, date , dunStatusName,adminName,userName,0);
		if(type==2)this.content=setDunFormat(  sender, deptname,orderNo,contractNo, date , dunStatusName,adminName,userName,1);
	}

	/**
	 * 旧通用模版
	 * @param subject
	 * @param address
	 * @param deptname
	 * @param sender
	 * @param end
	 */
	public  EmailBo(String subject, String address, String deptname, String sender,String end) {
		this.subject = subject;
		this.address = address;
		this.addressee = "";
		this.deptname = deptname;
		this.sender = sender;
		if (end!=null) this.end=end;
		this.content = setGeneralFormat();
	}

	/**
	 *
	 * @param subject
	 * @param address
	 * @param deptname
	 * @param sender
	 */
	public  EmailBo(String subject, String address, String deptname, String sender) {
		this.subject = subject;
		this.address = address;
		this.addressee = "";
		this.deptname = deptname;
		this.sender = sender;
		this.content = setGeneralFormat();

	}

	/**
	 * 标准模版
	 * 最新通用模版
	 * @param subject 标题
	 * @param address 邮件地址
	 * @param content 内容
	 */
	public EmailBo(String subject, String address, String content) {
		this.subject = subject;
		this.address = address;
		this.addressee = "";
		this.content=setNewGeneral(content);
	}

	private String setNewGeneral(String content) {
		String str="<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"    	<tbody><tr>\r\n" +
				"		        <td>\r\n" +
				"		             <table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" height=\"40\"></table>\r\n" +
				"		        </td>\r\n" +
				"		    </tr>\r\n" +
				"			\r\n" +
				"    		<tr>\r\n" +
				"        		<td>\r\n" +
				"            		\r\n" +
				"            		<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#1C5299\" height=\"48\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"              			<tbody><tr>\r\n" +
				"                			<td height=\"48\" border=\"0\" align=\"center\" valign=\"middle\" style=\"padding-left:20px; color: white; font-size: 20px;\">\r\n" +
				"                			"+this.subject +
				"        					</td>\r\n" +
				"              			</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"		    \r\n" +
				"   		<tr>\r\n" +
				"        		<td>\r\n" +
				"		            \r\n" +
				"		        	<table width=\"800\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" style=\" border:1px solid #edecec; border-top:none; padding:0 20px;font-size:14px;color:#333333;\">\r\n" +
				"	               		<tbody><tr>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"760\" height=\"30\" border=\"0\" align=\"left\" colspan=\"2\" style=\"text-indent: 2em\">您好!</td>\r\n" +
				"              </tr>\r\n" +
				"                      <tr>\r\n" +
				"                <td width=\"40\" height=\"32\" border=\"0\" align=\"left\" valign=\"middle\" style=\" width:40px; text-align:left;vertical-align:middle; line-height:32px; float:left;\">&nbsp;</td>\r\n" +
				"                <td width=\"720\" height=\"32\" border=\"0\" align=\"left\" style=\" width:720px; text-align:left;vertical-align:middle;line-height:32px;\"><span style=\"font-weight: 900\">"+content+"</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span>"+end+"</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"></td>\r\n" +
				"              </tr>\r\n" +
				"              \r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding-bottom:16px; border-bottom:1px dashed #e5e5e5;font-family:'Microsoft YaHei';\"><a href=\"http://www.kedexinxi.com/\">湖南科德信息咨询集团有限公司</a></td>\r\n" +
				"		              	</tr>\r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding:8px 0 28px;color:#999999; font-size:12px;font-family:'Microsoft YaHei';\">此为系统邮件请勿回复</td>\r\n" +
				"		              	</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"    </tbody>\r\n" +
				"  </table>";
		return str;
	}


	public String setDunFormat(String sender,String deptname,String orderNo,String contractNo,String date ,String dunStatusName,String adminName,
			String userName,int i) {
		String str1 = "",str2= "",str3= "";
		if (i==0) str1="催收时间";str2="催收科目";str3="催收状态";
		if (i==1) str1="付款时间";str2="付款科目";str3="催收状态";

		String str="<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"    		<tbody><tr>\r\n" +
				"		        <td>\r\n" +
				"		             <table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" height=\"40\"></table>\r\n" +
				"		        </td>\r\n" +
				"		    </tr>\r\n" +
				"			\r\n" +
				"    		<tr>\r\n" +
				"        		<td>\r\n" +
				"            		\r\n" +
				"            		<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#1C5299\" height=\"48\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"              			<tbody><tr>\r\n" +
				"                			<td height=\"48\" border=\"0\" align=\"center\" valign=\"middle\" style=\"padding-left:20px; color: white; font-size: 20px;\">\r\n" +
				"                				"+subject+"\r\n" +
				"        					</td>\r\n" +
				"              			</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"		    \r\n" +
				"   			<tr>\r\n" +
				"        		<td>\r\n" +
				"		            \r\n" +
				"		        <table width=\"800\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" style=\" border:1px solid #edecec; border-top:none; padding:0 20px;font-size:14px;color:#333333;\">\r\n" +
				"	               		<tbody><tr>\r\n" +
				"                <td width=\"760\" height=\"56\" border=\"0\" align=\"left\" colspan=\"2\" style=\" font-size:16px;vertical-align:bottom;\">亲爱的"+adminName+":</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"760\" height=\"30\" border=\"0\" align=\"left\" colspan=\"2\" style=\"text-indent: 2em\">您好!</td>\r\n" +
				"              </tr>\r\n" +
				"                      <tr>\r\n" +
				"                <td width=\"40\" height=\"32\" border=\"0\" align=\"left\" valign=\"middle\" style=\" width:40px; text-align:left;vertical-align:middle; line-height:32px; float:left;\">&nbsp;</td>\r\n" +
				"                <td width=\"720\" height=\"32\" border=\"0\" align=\"left\" style=\" width:720px; text-align:left;vertical-align:middle;line-height:32px;\"><span style=\"font-weight: 900\">您收到一条由["+deptname+"] 的 ["+sender+"] 发起的 ["+subject+"] ！</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px; font-size: 12px;\"><span style=\"color: red;\">如已缴费，请您忽略此短信！</span></td>\r\n" +
				"              </tr>\r\n" +
				"              \r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px; font-weight: 900; padding-top: 10px;\">催收信息：</td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">客户名称："+userName+"</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">订单编号："+orderNo+"</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">合同编号："+contractNo+"</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">"+str1+"："+date+"</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">"+str2+"："+dunStatusName+"</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">"+str3+"：已启动</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">&nbsp;</td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span style=\"font-weight: 900\">温馨提示：</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span>详情请登录<a href=\"http://bm.jishutao.com/admin/login\">科德业务管理系统</a>查看,谢谢!</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"></td>\r\n" +
				"              </tr>\r\n" +
				"              \r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding-bottom:16px; border-bottom:1px dashed #e5e5e5;font-family:'Microsoft YaHei';\"><a href=\"http://www.kedexinxi.com/\">湖南科德信息咨询集团有限公司</a></td>\r\n" +
				"		              	</tr>\r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding:8px 0 28px;color:#999999; font-size:12px;font-family:'Microsoft YaHei';\">此为系统邮件请勿回复</td>\r\n" +
				"		              	</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"		</tbody></table>";
		return str;
	}

	public String setGeneralFormat() {

		String str="<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"    	<tbody><tr>\r\n" +
				"		        <td>\r\n" +
				"		             <table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" height=\"40\"></table>\r\n" +
				"		        </td>\r\n" +
				"		    </tr>\r\n" +
				"			\r\n" +
				"    		<tr>\r\n" +
				"        		<td>\r\n" +
				"            		\r\n" +
				"            		<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#1C5299\" height=\"48\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"              			<tbody><tr>\r\n" +
				"                			<td height=\"48\" border=\"0\" align=\"center\" valign=\"middle\" style=\"padding-left:20px; color: white; font-size: 20px;\">\r\n" +
				"                			"+this.subject +
				"        					</td>\r\n" +
				"              			</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"		    \r\n" +
				"   		<tr>\r\n" +
				"        		<td>\r\n" +
				"		            \r\n" +
				"		        	<table width=\"800\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" style=\" border:1px solid #edecec; border-top:none; padding:0 20px;font-size:14px;color:#333333;\">\r\n" +
				"	               		<tbody><tr>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"760\" height=\"30\" border=\"0\" align=\"left\" colspan=\"2\" style=\"text-indent: 2em\">您好!</td>\r\n" +
				"              </tr>\r\n" +
				"                      <tr>\r\n" +
				"                <td width=\"40\" height=\"32\" border=\"0\" align=\"left\" valign=\"middle\" style=\" width:40px; text-align:left;vertical-align:middle; line-height:32px; float:left;\">&nbsp;</td>\r\n" +
				"                <td width=\"720\" height=\"32\" border=\"0\" align=\"left\" style=\" width:720px; text-align:left;vertical-align:middle;line-height:32px;\"><span style=\"font-weight: 900\">您收到一条由["+this.deptname+"] 的 ["+this.sender+"] 发起的 ["+this.subject+"] 通知</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span>"+end+"</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"></td>\r\n" +
				"              </tr>\r\n" +
				"              \r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding-bottom:16px; border-bottom:1px dashed #e5e5e5;font-family:'Microsoft YaHei';\"><a href=\"http://www.kedexinxi.com/\">湖南科德信息咨询集团有限公司</a></td>\r\n" +
				"		              	</tr>\r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding:8px 0 28px;color:#999999; font-size:12px;font-family:'Microsoft YaHei';\">此为系统邮件请勿回复</td>\r\n" +
				"		              	</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"    </tbody>\r\n" +
				"  </table>";
		return str;
	}



	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAddressee() {
		return addressee;
	}
	public void setAddressee(String addressee) {
		this.addressee = addressee;
	}
	public String getDeptname() {
		return deptname;
	}
	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public String format(){
        return  "<div>" + this.content + "</div>";
    }




	public String setPatentFormat(String userName,String adminName,String patentName,String patentNo,String amount,String date,Integer days ){
		String str="<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"    		<tbody><tr>\r\n" +
				"		        <td>\r\n" +
				"		             <table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" height=\"40\"></table>\r\n" +
				"		        </td>\r\n" +
				"		    </tr>\r\n" +
				"			\r\n" +
				"    		<tr>\r\n" +
				"        		<td>\r\n" +
				"            		\r\n" +
				"            		<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#1C5299\" height=\"48\" style=\"font-family:'Microsoft YaHei';\">\r\n" +
				"              			<tbody><tr>\r\n" +
				"                			<td height=\"48\" border=\"0\" align=\"center\" valign=\"middle\" style=\"padding-left:20px; color: white; font-size: 20px;\">\r\n" +
				"                				专利提醒\r\n" +
				"        					</td>\r\n" +
				"              			</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"		    \r\n" +
				"   			<tr>\r\n" +
				"        		<td>\r\n" +
				"		            \r\n" +
				"		        <table width=\"800\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" style=\" border:1px solid #edecec; border-top:none; padding:0 20px;font-size:14px;color:#333333;\">\r\n" +
				"	               		<tbody><tr>\r\n" +
				"                <td width=\"760\" height=\"56\" border=\"0\" align=\"left\" colspan=\"2\" style=\" font-size:16px;vertical-align:bottom;\">尊敬的客户 [" + userName + "]:</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"760\" height=\"30\" border=\"0\" align=\"left\" colspan=\"2\" style=\"text-indent: 2em\">您好!</td>\r\n" +
				"              </tr>\r\n" +
				"                      <tr>\r\n" +
				"                <td width=\"40\" height=\"32\" border=\"0\" align=\"left\" valign=\"middle\" style=\" width:40px; text-align:left;vertical-align:middle; line-height:32px; float:left;\">&nbsp;</td>\r\n" +
				"                <td width=\"720\" height=\"32\" border=\"0\" align=\"left\" style=\" width:720px; text-align:left;vertical-align:middle;line-height:32px;\"><span style=\"font-weight: 900\">科德集团</span>【" + adminName + "】向您发起了专利缴费提醒！<span style=\"color: red\">如已缴费，请您忽略此邮件！</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span style=\"font-weight: 900\">专利信息</span></td>\r\n" +
				"              </tr>\r\n" +
				"              \r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">专利名称：" + patentName + "</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">专利编号：" + patentNo + "</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">金额：" + amount + " <span style=\"color: red\">（本缴费金额仅供参考，实际缴费金额，请登录国知局官方网址<a href=\"http://cpquery.cnipa.gov.cn/\">cpquery.sipo.gov.cn</a>查询）</span></td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">剩余天数：" + days + "</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">到期时间：" + date + "</td>\r\n" +
				"              </tr>\r\n" +
				"               <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\">&nbsp;</td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span style=\"font-weight: 900\">温馨提示</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span style=\"color: red;\">依据【专利管理办法】规定：如未及时续费，您的专利将会失效！</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span style=\"color: black; font-weight: 900;\">请您尽快核实专利到期时间及缴费信息！</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"><span>如果您对此有更多疑问，请联系<span style=\"font-weight: 900\">科德集团</span>【" + adminName + "】，以获得方便快捷的服务</span></td>\r\n" +
				"              </tr>\r\n" +
				"              <tr>\r\n" +
				"                <td width=\"720\" height=\"24\" colspan=\"2\" style=\"padding-left:40px;\"></td>\r\n" +
				"              </tr>\r\n" +
				"              \r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding-bottom:16px; border-bottom:1px dashed #e5e5e5;font-family:'Microsoft YaHei';\"><a href=\"http://www.kedexinxi.com/\">湖南科德信息咨询集团有限公司</a></td>\r\n" +
				"		              	</tr>\r\n" +
				"		               	<tr>\r\n" +
				"		                	<td width=\"720\" height=\"14\" colspan=\"2\" style=\"padding:8px 0 28px;color:#999999; font-size:12px;font-family:'Microsoft YaHei';\">此为系统邮件请勿回复</td>\r\n" +
				"		              	</tr>\r\n" +
				"		            </tbody></table>\r\n" +
				"		            \r\n" +
				"        		</td>\r\n" +
				"		    </tr>\r\n" +
				"		</tbody></table>";
        return  str;
    }

	public void SetEnd(String end) {
		this.end = end;
	}

	@Override
	public String toString() {
		return "EmailBo{" +
				"subject='" + subject + '\'' +
				", address='" + address + '\'' +
				", addressee='" + addressee + '\'' +
				", deptname='" + deptname + '\'' +
				", sender='" + sender + '\'' +
				", content='" + content + '\'' +
				", end='" + end + '\'' +
				'}';
	}
}
