Browse Source

無會員取消訂單流程信件樣式開發(細節待修正)

Dev
Janie 2 years ago
parent
commit
5314d39946
  1. 448
      EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMail.cs

448
EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMail.cs

@ -1309,11 +1309,7 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 15px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #f48800;margin: 0 0 0 0;\">");
sb.Append("$" + int.Parse(BookingOnlineModel.TotalPrice.ToString()).ToString("#,###") + " " + BookingOnlineModel.CurrencyName);
sb.Append("</h1>");
sb.Append("<a class=\"s-btn s-btn__primary\" href=\"");
sb.Append(GetOrderUrl(BookingOnlineModel.BookingNo));
sb.Append("\" target=\"_parent\" style=\"width: 88px;background: #f48800;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("查看訂單");
sb.Append("</a>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
@ -1323,6 +1319,16 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
//按鈕
sb.Append("<tr align=\"center\">");
sb.Append("<td bgcolor=\"#FEFEFE\" width=\"340\" width=\"340px\" style=\"display: block;padding-top: 40px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;\">");
sb.Append("<a class=\"s-btn s-btn__primary\" href=\"");
sb.Append(GetOrderUrl(BookingOnlineModel.BookingNo));
sb.Append("\" target=\"_parent\" style=\"width: 88px;background: #f48800;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("查看訂單");
sb.Append("</a>");
sb.Append("</td>");
sb.Append("</tr>");
//如果按鈕無法點擊 (連結記得改成要打的API)
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" width = \"340px\" style = \"display: block;padding-bottom: 30px;padding-top: 30px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: center;\">");
@ -1462,11 +1468,7 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 15px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #f48800;margin: 0 0 0 0;\">");
sb.Append("$" + int.Parse(BookingOnlineModel.TotalPrice.ToString()).ToString("#,###") + " " + BookingOnlineModel.CurrencyName);
sb.Append("</h1>");
sb.Append("<a class=\"s-btn s-btn__primary\" href=\"");
sb.Append(GetOrderUrl(BookingOnlineModel.BookingNo));
sb.Append("\" target=\"_parent\" style=\"width: 88px;background: #f48800;border: 1px solid #ee9546;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("查看訂單");
sb.Append("</a>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
@ -1476,6 +1478,16 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
//按鈕
sb.Append("<tr align=\"center\">");
sb.Append("<td bgcolor=\"#FEFEFE\" width=\"340\" width=\"340px\" style=\"display: block;padding-top: 40px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;\">");
sb.Append("<a class=\"s-btn s-btn__primary\" href=\"");
sb.Append(GetOrderUrl(BookingOnlineModel.BookingNo));
sb.Append("\" target=\"_parent\" style=\"width: 88px;background: #f48800;border: 1px solid #ee9546;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("查看訂單");
sb.Append("</a>");
sb.Append("</td>");
sb.Append("</tr>");
//如果按鈕無法點擊 (連結記得改成要打的API)
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" width = \"340px\" style = \"display: block;padding-bottom: 30px;padding-top: 30px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: center;\">");
@ -1835,11 +1847,7 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("$" + int.Parse(BookingOnlineModel.TotalPrice.ToString()).ToString("#,###") + " "+ BookingOnlineModel.CurrencyName);
sb.Append("</h1>");
//sb.Append("<a class=\"s-btn s-btn__primary\" href=\"https://www.showeasy.com\" target=\"_parent\" style=\"width: 88px;background: #f48800;border: 1px solid #ee9546;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("<a class=\"s-btn s-btn__primary\" href=\"");
sb.Append(GetOrderUrl(BookingOnlineModel.BookingNo));
sb.Append("\" target=\"_parent\" style=\"background: #f48800;border: 1px solid #ee9546;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("查看訂單");
sb.Append("</a>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
@ -1849,9 +1857,19 @@ namespace EasyBL.WEBAPP.SYS
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
//按鈕
sb.Append("<tr align=\"center\">");
sb.Append("<td bgcolor=\"#FEFEFE\" width=\"340\" width=\"440px\" style=\"display: block;padding-top: 40px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;\">");
sb.Append("<a class=\"s-btn s-btn__primary\" href=\"");
sb.Append(GetOrderUrl(BookingOnlineModel.BookingNo));
sb.Append("\" target=\"_parent\" style=\"background: #f48800;border: 1px solid #ee9546;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("查看訂單");
sb.Append("</a>");
sb.Append("</td>");
sb.Append("</tr>");
//如果按鈕無法點擊 (連結記得改成要打的API)
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"440\" width = \"340px\" style = \"display: block;padding-bottom: 30px;padding-top: 30px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: center;\">");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"440\" width = \"440px\" style = \"display: block;padding-bottom: 30px;padding-top: 30px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: center;\">");
sb.Append("如果按鈕無法點擊,你可以直接點擊");
sb.Append("<p style = \"font-weight: 400;font-size: 12px;line-height: 14px;letter-spacing: 0.02em;font-family: 'arial', 'sans-serif';margin: 0 0 0px;\" class=\"has-markdown\">");
sb.Append("<a href =\"");
@ -2083,6 +2101,404 @@ namespace EasyBL.WEBAPP.SYS
}
//未登入 退款中
public string Refunding_NoLogin(View_SAL_BookingOnline BookingOnlineModel)
{
StringBuilder sb = new StringBuilder();
EmailTemplate_CH mailTemplate = new EmailTemplate_CH();
//var Server = Common.ConfigGetValue("", "ida:RedirectUri");
sb.Append(mailTemplate.MailHeader());
sb.Append(mailTemplate.MailCSS());
sb.Append(mailTemplate.MailShowEasyLogo());
//Email Body
sb.Append("<tr>");
sb.Append("<td style = \"padding: 0 50px 0 50px; background-color: #f8f8f8\" class=\"sm-p bar\">");
sb.Append("<table border=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"width: 100%\">");
sb.Append("<tr>");
sb.Append("<td>");
sb.Append("<table border = \"0\" cellpadding = \"0\" cellspacing = \"0\" role = \"presentation\" align = \"left\"> ");
//Text:你好 xxx,
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" style = \"display: block;padding-top: 30px;padding-left: 30px;padding-right: 30px;padding-bottom: 10px;font-family: arial, sans-serif;color: #000000;text-align: left\";>");
sb.Append("<h1 style = \"font-size: 16px;font-family: 'arial', 'sans-serif'; font-weight: 700;line-height: 18px; color: #000000; margin: 0 0 0 0;\">");
sb.Append("你好," + BookingOnlineModel.MemberName + ",");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
//Text:我們正在處理您的退款
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" style = \"display: block;padding-left: 30px;padding-right: 30px;padding-bottom: 40px;font-family: arial, sans-serif;color: #000000;text-align: left;\">");
sb.Append("<h1 style=\"font-size: 14px;font-family: 'arial', 'sans-serif'; font-weight: 700; line-height: 18px; color: #9c9c9c;margin: 0 0 0 0;\">");
sb.Append("我們正在處理您的退款,退款金額會依據各商品的退款規則退款。<br />");
sb.Append("<br />");
sb.Append("若有任何問題,您可以下兩種方式與我們聯繫:<br />");
sb.Append("撥打 +886-2 27255000 <br />");
sb.Append("發送 Email: info@showeasy.com 。<br />");
sb.Append("<br />");
sb.Append("ShowEasy 客服時間:");
sb.Append("週一至週五:9:00~18:00 (台灣時區)");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
//Text:訂單資訊
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" width = \"340px\" style = \"display: block;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\">");
sb.Append("<p style = \"font-weight: 400;font-size: 12px;line-height: 14px;letter-spacing: 0.02em;font-family: 'arial', 'sans-serif';margin: 0 0 0px;\" class=\"has-markdown\">");
sb.Append("訂單資訊:");
sb.Append("</p>");
sb.Append("</td>");
sb.Append("</tr>");
//Button:service card start ----------------------------------------------------
sb.Append("<tr style=\"padding: 0 50px 0 50px; background-color: #f8f8f8;border: #f1f1f1; border-radius: 20px;border-width: 1px;\">");
sb.Append("<td bgcolor = \"#FEFEFE\" width=\"340px\" style = \"display: block;padding-top: 25px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\"> ");
sb.Append("<table style=\"border: solid #f1f1f1;\">");
sb.Append("<tbody>");
sb.Append("<tr>");
//service img
sb.Append("<td valign=\"top\" style=\"padding: 10px;margin-top: 25px;\">");
//sb.Append("<img style =\"display: block;padding-right: 10px;\" src = \"https://d3kpqi6h465b7i.cloudfront.net/email/icon-facebook.png\" width = '30' height = '30'/>");
sb.Append("<img style =\"display: block;padding-right: 10px;\" src = \"");
sb.Append(BookingOnlineModel.ServicePictrue);
sb.Append("\" width = '30' height = '30'/>");
sb.Append("</td>");
//booking status
sb.Append("<td style=\"padding-bottom: 30px;\">");
sb.Append("<table>");
sb.Append("<tbody>");
sb.Append("<tr>");
sb.Append("<td style=\"padding-top: 30px;\">");
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #ef5a5a;margin: 0 0 0 0;\">");
sb.Append("取消訂單,");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("<td style=\"padding-top: 25px;\">");
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #7997ff;margin: 0 0 0 0;\">");
sb.Append(" 退款中");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
sb.Append("</table>");
//service name
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #232323;margin: 0 0 0 0;\">");
sb.Append(BookingOnlineModel.ServiceName);
sb.Append("</h1>");
//booking number
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(BookingOnlineModel.BookingNo);
sb.Append("</h1>");
//sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
//sb.Append("接送服務, 台北市, 四人座車型 x 1");
//sb.Append("</h1>");
var lstT = new List<string>();
var objval = BookingOnlineModel.BookingItem.ToString();
if (!string.IsNullOrEmpty(objval) && objval != "[]")
{
lstT = JsonConvert.DeserializeObject<List<string>>(objval.ToString());
}
foreach (var item in lstT)
{
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(item);
sb.Append("</h1>");
}
//service time
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append("服務時間: " + BookingOnlineModel.ServiceDateSFormat + " (當地時間)");
sb.Append("</h1>");
//booking time
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append("訂購時間: " + BookingOnlineModel.BookingDateFormat);
sb.Append("</h1>");
//cost
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 15px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #f48800;margin: 0 0 0 0;\">");
sb.Append("$" + int.Parse(BookingOnlineModel.TotalPrice.ToString()).ToString("#,###") + " " + BookingOnlineModel.CurrencyName);
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</table>");
//sb.Append(mailTemplate.MailButtom());
sb.Append(mailTemplate.MailFooter());
return sb.ToString();
}
//未登入 已退款
public string Refunded_NoLogin(View_SAL_BookingOnline BookingOnlineModel)
{
StringBuilder sb = new StringBuilder();
EmailTemplate_CH mailTemplate = new EmailTemplate_CH();
//var Server = Common.ConfigGetValue("", "ida:RedirectUri");
sb.Append(mailTemplate.MailHeader());
sb.Append(mailTemplate.MailCSS());
sb.Append(mailTemplate.MailShowEasyLogo());
//Email Body
sb.Append("<tr>");
sb.Append("<td style = \"padding: 0 50px 0 50px; background-color: #f8f8f8\" class=\"sm-p bar\">");
sb.Append("<table border=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"width: 100%\">");
sb.Append("<tr>");
sb.Append("<td>");
sb.Append("<table border = \"0\" cellpadding = \"0\" cellspacing = \"0\" role = \"presentation\" align = \"left\"> ");
//Text:你好 xxx,
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" style = \"display: block;padding-top: 30px;padding-left: 30px;padding-right: 30px;padding-bottom: 10px;font-family: arial, sans-serif;color: #000000;text-align: left\";>");
sb.Append("<h1 style = \"font-size: 16px;font-family: 'arial', 'sans-serif'; font-weight: 700;line-height: 18px; color: #000000; margin: 0 0 0 0;\">");
sb.Append("你好," + BookingOnlineModel.MemberName + ",");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
//Text:我們正在處理您的退款
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" style = \"display: block;padding-left: 30px;padding-right: 30px;padding-bottom: 40px;font-family: arial, sans-serif;color: #000000;text-align: left;\">");
sb.Append("<h1 style=\"font-size: 14px;font-family: 'arial', 'sans-serif'; font-weight: 700; line-height: 18px; color: #9c9c9c;margin: 0 0 0 0;\">");
sb.Append("我們已成功退款。<br />");
sb.Append("<br />");
sb.Append("若有任何問題,您可以下兩種方式與我們聯繫:<br />");
sb.Append("撥打 +886-2 27255000 <br />");
sb.Append("發送 Email: info@showeasy.com 。<br />");
sb.Append("<br />");
sb.Append("ShowEasy 客服時間:");
sb.Append("週一至週五:9:00~18:00 (台灣時區)");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
//Text:訂單資訊
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"340\" width = \"340px\" style = \"display: block;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\">");
sb.Append("<p style = \"font-weight: 400;font-size: 12px;line-height: 14px;letter-spacing: 0.02em;font-family: 'arial', 'sans-serif';margin: 0 0 0px;\" class=\"has-markdown\">");
sb.Append("訂單資訊:");
sb.Append("</p>");
sb.Append("</td>");
sb.Append("</tr>");
//Button:service card start ----------------------------------------------------
sb.Append("<tr style=\"padding: 0 50px 0 50px; background-color: #f8f8f8;border: #f1f1f1; border-radius: 20px;border-width: 1px;\">");
sb.Append("<td bgcolor = \"#FEFEFE\" width=\"340px\" style = \"display: block;padding-top: 25px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\"> ");
sb.Append("<table style=\"border: solid #f1f1f1;\">");
sb.Append("<tbody>");
sb.Append("<tr>");
//service img
sb.Append("<td valign=\"top\" style=\"padding: 10px;\">");
//sb.Append("<img style =\"display: block;padding-right: 10px;\" src = \"https://d3kpqi6h465b7i.cloudfront.net/email/icon-facebook.png\" width = '30' height = '30'/>");
sb.Append("<img style =\"display: block;padding-right: 10px;margin-top: 25px;\" src = \"");
sb.Append(BookingOnlineModel.ServicePictrue);
sb.Append("\" width = '30' height = '30'/>");
sb.Append("</td>");
//booking status
sb.Append("<td style=\"padding-bottom: 30px;\">");
sb.Append("<table>");
sb.Append("<tbody>");
sb.Append("<tr>");
sb.Append("<td style=\"padding-top: 30px;\">");
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #ef5a5a;margin: 0 0 0 0;\">");
sb.Append("取消訂單,");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("<td style=\"padding-top: 25px;\">");
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #757575;margin: 0 0 0 0;\">");
sb.Append(" 已退款");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
sb.Append("</table>");
//service name
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #232323;margin: 0 0 0 0;\">");
sb.Append(BookingOnlineModel.ServiceName);
sb.Append("</h1>");
//booking number
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(BookingOnlineModel.BookingNo);
sb.Append("</h1>");
//sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
//sb.Append("接送服務, 台北市, 四人座車型 x 1");
//sb.Append("</h1>");
var lstT = new List<string>();
var objval = BookingOnlineModel.BookingItem.ToString();
if (!string.IsNullOrEmpty(objval) && objval != "[]")
{
lstT = JsonConvert.DeserializeObject<List<string>>(objval.ToString());
}
foreach (var item in lstT)
{
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(item);
sb.Append("</h1>");
}
//service time
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append("服務時間: " + BookingOnlineModel.ServiceDateSFormat + " (當地時間)");
sb.Append("</h1>");
//booking time
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append("訂購時間: " + BookingOnlineModel.BookingDateFormat);
sb.Append("</h1>");
//cost
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 15px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #f48800;margin: 0 0 0 0;\">");
sb.Append("$" + int.Parse(BookingOnlineModel.TotalPrice.ToString()).ToString("#,###") + " " + BookingOnlineModel.CurrencyName);
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</table>");
//sb.Append(mailTemplate.MailButtom());
sb.Append(mailTemplate.MailFooter());
return sb.ToString();
}
//SE Cancel Order Notify To User 未登入
public string SECancelOrderNotifyToUser_NoLogin(View_SAL_BookingOnline BookingOnlineModel)
{
StringBuilder sb = new StringBuilder();
EmailTemplate_CH mailTemplate = new EmailTemplate_CH();
var Server = Common.ConfigGetValue("", "ida:RedirectUri");
sb.Append(mailTemplate.MailHeader());
sb.Append(mailTemplate.MailCSS());
sb.Append(mailTemplate.MailShowEasyLogo());
//Email Body
sb.Append("<tr>");
sb.Append("<td style = \"padding: 0 50px 0 50px; background-color: #f8f8f8\" class=\"sm-p bar\">");
sb.Append("<table border=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"width: 100%\">");
sb.Append("<tr>");
sb.Append("<td>");
sb.Append("<table border = \"0\" cellpadding = \"0\" cellspacing = \"0\" role = \"presentation\" align = \"left\"> ");
//Text:你好 xxx,
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"440\" style = \"display: block;padding-top: 30px;padding-left: 30px;padding-right: 30px;padding-bottom: 10px;font-family: arial, sans-serif;color: #000000;text-align: left\";>");
sb.Append("<h1 style = \"font-size: 20px;font-family: 'arial', 'sans-serif'; font-weight: 700;line-height: 20px; color: #000000; margin: 0 0 0 0;\">");
//sb.Append("你好," + "Janie" + ",");
sb.Append("你好," + BookingOnlineModel.MemberName + ",");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
//Text:我們正在處理您的退款
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"440\" style = \"display: block;padding-left: 30px;padding-right: 30px;padding-bottom: 40px;font-family: arial, sans-serif;color: #000000;text-align: left;\">");
sb.Append("<h1 style=\"font-size: 16px;font-family: 'arial', 'sans-serif'; font-weight: 700; line-height: 18px; color: #9c9c9c;margin: 0 0 0 0;\">");
sb.Append("ShowEasy 已取消您的訂單申請,若您已付款將為您進行退款流程。<br />");
sb.Append("<br />");
sb.Append("若有任何問題,您可以");
sb.Append("<br />");
sb.Append("撥打 +886-2 27255000");
sb.Append("<br />");
sb.Append("發送 Email: info@showeasy.com。");
sb.Append("<br />");
sb.Append("<br />");
sb.Append("ShowEasy 客服時間:");
sb.Append("週一至週五:9:00~18:00 (台灣時區)");
sb.Append("</h1>");
sb.Append("</td>");
sb.Append("</tr>");
//Text:訂單資訊
sb.Append("<tr>");
sb.Append("<td bgcolor = \"#FEFEFE\" width = \"440\" width = \"440px\" style = \"display: block;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\">");
sb.Append("<p style = \"font-weight: 400;font-size: 12px;line-height: 14px;letter-spacing: 0.02em;font-family: 'arial', 'sans-serif';margin: 0 0 0px;\" class=\"has-markdown\">");
sb.Append("訂單資訊:");
sb.Append("</p>");
sb.Append("</td>");
sb.Append("</tr>");
//Button:service card start ----------------------------------------------------
sb.Append("<tr style=\"padding: 0 50px 0 50px; background-color: #f8f8f8;border: #f1f1f1; border-radius: 20px;border-width: 1px;\">");
sb.Append("<td bgcolor = \"#FEFEFE\" width=\"440px\" style = \"display: block;padding-top: 25px;padding-left: 30px;padding-right: 30px;color: #9c9c9c;text-align: left;\"> ");
sb.Append("<table style=\"border: solid #f1f1f1;\">");
sb.Append("<tbody>");
sb.Append("<tr>");
//service img
sb.Append("<td valign=\"top\" style=\"padding: 10px;\">");
sb.Append("<img style =\"display: block;padding-right: 10px;margin-top: 25px;\" src = \"/>");
//sb.Append(Img);
sb.Append(BookingOnlineModel.ServicePictrue);
sb.Append("\" width = '30' height = '30'");
sb.Append("</td>");
//booking status
sb.Append("<td style=\"padding-top: 25px;\">");
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 12px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #7997ff;margin: 0 0 0 0;\">");
sb.Append("取消訂單, " + (BookingOnlineModel.PaymentStatus == "01" ? "未付款" : "已付款"));
sb.Append("</h1>");
//service name
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 700;line-height: 18px;color: #232323;margin: 0 0 0 0;\">");
sb.Append(BookingOnlineModel.ServiceName);
sb.Append("</h1>");
//booking number
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(BookingOnlineModel.BookingNo);
sb.Append("</h1>");
//BookingItem
//sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
//sb.Append("接送服務, 台北市, 四人座車型 x 1");
//sb.Append("</h1>");
var lstT = new List<string>();
var objval = BookingOnlineModel.BookingItem.ToString();
if (!string.IsNullOrEmpty(objval) && objval != "[]")
{
lstT = JsonConvert.DeserializeObject<List<string>>(objval.ToString());
}
foreach (var item in lstT)
{
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append(item);
sb.Append("</h1>");
}
//service time
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 4px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append("服務時間: " + BookingOnlineModel.ServiceDateSFormat + " (當地時間)");
sb.Append("</h1>");
//booking time
sb.Append("<h1 style =\"font-size: 12px;padding-bottom: 8px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #504f4f;margin: 0 0 0 0;\">");
sb.Append("訂購時間: " + BookingOnlineModel.BookingDateFormat);
sb.Append("</h1>");
//cost
sb.Append("<h1 style =\"font-size: 14px;padding-bottom: 15px;font-family: 'arial','sans-serif';font-weight: 500;line-height: 18px;color: #f48800;margin: 0 0 0 0;\">");
sb.Append("$" + int.Parse(BookingOnlineModel.TotalPrice.ToString()).ToString("#,###") + " " + BookingOnlineModel.CurrencyName);
sb.Append("</h1>");
//sb.Append("<a class=\"s-btn s-btn__primary\" href=\"https://www.showeasy.com\" target=\"_parent\" style=\"width: 88px;background: #f48800;border: 1px solid #ee9546;font-family: arial, sans-serif;font-size: 14px;line-height: 16px;color: #ffffff;text-align: center;text-decoration: none;padding: 12px 20px;display: block;border-radius: 16px;white-space: nowrap;\">");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</tbody>");
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</table>");
sb.Append("</td>");
sb.Append("</tr>");
sb.Append("</table>");
//sb.Append(mailTemplate.MailButtom());
sb.Append(mailTemplate.MailFooter());
return sb.ToString();
}
}
}
Loading…
Cancel
Save