001package org.kuali.ole.deliver.service; 002 003import org.kuali.ole.OLEConstants; 004import org.kuali.ole.deliver.bo.*; 005import org.kuali.rice.core.api.util.type.KualiDecimal; 006import org.kuali.rice.core.web.format.CurrencyFormatter; 007 008import java.math.BigDecimal; 009import java.sql.Date; 010import java.util.*; 011 012/** 013 * Created by pvsubrah on 4/8/15. 014 */ 015public class ReplacementBillNoticeEmailContentFormattter extends NoticeMailContentFormatter { 016 @Override 017 protected String generateCustomHTML(OleLoanDocument oleLoanDocument) { 018 StringBuffer customHTMLForReplacementBill=new StringBuffer(); 019 020 customHTMLForReplacementBill.append("<HTML>"); 021 customHTMLForReplacementBill.append("<TITLE><CENTER><h2>" + OLEConstants.REPLACEMENT_FEE + " Bill </h2></CENTER></TITLE>"); 022 customHTMLForReplacementBill.append("<HEAD><TR><TD><CENTER><h2>" + OLEConstants.REPLACEMENT_FEE + "<h2></CENTER></TD></TR></HEAD>"); 023 customHTMLForReplacementBill.append("<BODY>"); 024 customHTMLForReplacementBill.append("<TABLE width=\"100%\">"); 025 026 customHTMLForReplacementBill.append("<TR><TD>Bill Number</TD><TD>:</TD><TD>" + oleLoanDocument.getRepaymentFeePatronBillId() + "</TD></TR>"); 027 customHTMLForReplacementBill.append("<TR><TD>Fee Type</TD><TD>:</TD><TD>" + OLEConstants.REPLACEMENT_FEE + "</TD></TR>"); 028 customHTMLForReplacementBill.append("<TR><TD>Fee Amount</TD><TD>:</TD><TD>" + CurrencyFormatter 029 .getSymbolForCurrencyPattern() + oleLoanDocument.getReplacementBill() + "</TD></TR>"); 030 031 customHTMLForReplacementBill.append("</TABLE>"); 032 customHTMLForReplacementBill.append("</BODY>"); 033 customHTMLForReplacementBill.append("</HTML>"); 034 035 return customHTMLForReplacementBill.toString(); 036 } 037 038}