|
|
@ -187,12 +187,40 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
.Where(x => x.BookingID == BookingID) |
|
|
|
.Single(); |
|
|
|
|
|
|
|
var sBookingStatus = db.Updateable<SETB_SAL_BookingOnline>() |
|
|
|
.UpdateColumns(x => new SETB_SAL_BookingOnline { BookingStatus = "02" }) |
|
|
|
.Where(x => x.BookingID == BookingID) |
|
|
|
.ExecuteCommand(); |
|
|
|
|
|
|
|
var sFilePath = db.Queryable<OTB_SYS_Files>() |
|
|
|
.Where(x => x.ParentID == sUser.Remittance) |
|
|
|
.Single(); |
|
|
|
|
|
|
|
var sbookingID = db.Queryable<SETB_SAL_BookingOnline>() |
|
|
|
.Where(x => x.BookingID == BookingID) |
|
|
|
.Single(); |
|
|
|
|
|
|
|
sUser.Remittance = requestUrl + "/" + sFilePath.FilePath.Replace("\\", "/"); |
|
|
|
|
|
|
|
//開始寄信
|
|
|
|
var oEmail = new Emails(); //寄件人
|
|
|
|
var toEmail = new List<EmailTo>(); //收件人
|
|
|
|
var oEmailTo = new EmailTo //收件人資訊
|
|
|
|
{ |
|
|
|
ToUserID = "", |
|
|
|
ToUserName = "ShowEasy", |
|
|
|
ToEmail = "info@showeasy.com", |
|
|
|
Type = "to" |
|
|
|
}; |
|
|
|
toEmail.Add(oEmailTo); |
|
|
|
oEmail.FromUserName = "訂單匯款通知"; //取fonfig
|
|
|
|
oEmail.Title = "訂單匯款通知"; //取fonfig
|
|
|
|
oEmail.EmailBody = "請您在系統中確認訂單付款狀態,訂單編號為:" + sbookingID.BookingNo; |
|
|
|
oEmail.IsCCSelf = false; |
|
|
|
oEmail.Attachments = null; |
|
|
|
oEmail.EmailTo = toEmail; |
|
|
|
var bSend = new MailService(OrgID, true).MailFactory(oEmail, out sError); |
|
|
|
|
|
|
|
srm = new SuccessResponseMessage(null, null); |
|
|
|
srm.DATA.Add(BLWording.REL, sUser.Remittance); |
|
|
|
} |
|
|
|