|
@ -439,6 +439,10 @@ namespace EasyBL.WEBAPP.SYS |
|
|
.Where(x => x.Account == sAccount && x.BookingID == BookingID) |
|
|
.Where(x => x.Account == sAccount && x.BookingID == BookingID) |
|
|
.Single(); |
|
|
.Single(); |
|
|
|
|
|
|
|
|
|
|
|
var sSubscriber = db.Queryable<SETB_SAL_Subscriber>() //get Subscriber info
|
|
|
|
|
|
.Where(x => x.BookingID == booking.BookingID) |
|
|
|
|
|
.Single(); |
|
|
|
|
|
|
|
|
var service = db.Queryable<SETB_PDT_ONSiteBaseInfo>() //get Service info
|
|
|
var service = db.Queryable<SETB_PDT_ONSiteBaseInfo>() //get Service info
|
|
|
.Where(x => x.ServiceID == booking.ServiceID && x.LangID == Lang) |
|
|
.Where(x => x.ServiceID == booking.ServiceID && x.LangID == Lang) |
|
|
.Single(); |
|
|
.Single(); |
|
@ -512,9 +516,9 @@ namespace EasyBL.WEBAPP.SYS |
|
|
toEmail = new List<EmailTo>(); //收件人
|
|
|
toEmail = new List<EmailTo>(); //收件人
|
|
|
oEmailTo = new EmailTo //收件人資訊
|
|
|
oEmailTo = new EmailTo //收件人資訊
|
|
|
{ |
|
|
{ |
|
|
ToUserID = sUser.MemberID, |
|
|
|
|
|
ToUserName = sUser.LastName, |
|
|
|
|
|
ToEmail = sUser.Email, |
|
|
|
|
|
|
|
|
ToUserID = sSubscriber.MemberID, |
|
|
|
|
|
ToUserName = sSubscriber.LastName, |
|
|
|
|
|
ToEmail = sSubscriber.Email, |
|
|
Type = "to" |
|
|
Type = "to" |
|
|
}; |
|
|
}; |
|
|
toEmail.Add(oEmailTo); |
|
|
toEmail.Add(oEmailTo); |
|
|