Browse Source

下單后返回訂單信息

Dev
alina 2 years ago
parent
commit
c1e9079b99
  1. 36
      EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs

36
EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs

@ -946,7 +946,6 @@ namespace EasyBL.WEBAPP.ShowEasy
MemberDTO member = new MemberDTO();
var sLang = WebAppGlobalConstWord.DEFAULT_LANGUAGE;
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri");
var saUser = db.Queryable<SETB_CMS_Member>()
//搜尋條件
@ -966,10 +965,12 @@ namespace EasyBL.WEBAPP.ShowEasy
var sCountry = db.Queryable<SETB_SYS_Country>()
.Where(x => x.CountryID == member.CountryID && x.LangType == sLang)
.Single();
if (sCountry != null) {
member.CountryName = sCountry.CountryName;
member.Country_ENCode = sCountry.Country_ENCode;
}
}
//返回user信息
srm = new SuccessResponseMessage(null, null);
srm.DATA.Add(BLWording.REL, member);
@ -1103,7 +1104,7 @@ namespace EasyBL.WEBAPP.ShowEasy
rsBooking.PaymentStatus = "01";//未付清
rsBooking.Account = Account;
rsBooking.ExhibitionID = Booking.ExhibitionID;
rsBooking.TotalPrice = Booking.TotalPrice;
rsBooking.TotalPrice = Booking.TotalPrice;// string.IsNullOrEmpty(Booking.TotalPrice)? 0:int.Parse(Booking.TotalPrice);
rsBooking.ServiceID = Booking.ServiceID;
rsBooking.PayType = Booking.PayType;
rsBooking.CurrencyID = Booking.CurrencyID;
@ -1157,6 +1158,26 @@ namespace EasyBL.WEBAPP.ShowEasy
oEmail.Attachments = null;
oEmail.EmailTo = toEmail;
var bSend = new MailService(sORIGID, true).MailFactory(oEmail, out sError);
//開始寄信 給會員
oEmail = new Emails(); //寄件人
toEmail = new List<EmailTo>(); //收件人
var oEmailTo1 = new EmailTo //收件人資訊
{
ToUserName = "",
ToEmail = Email,
Type = "to"
};
toEmail.Add(oEmailTo1);
oEmail.Title = "訂單預約通知"; //取fonfig
oEmail.EmailBody = "您好,我們成功收到了您的訂單";
oEmail.IsCCSelf = false;
oEmail.Attachments = null;
oEmail.EmailTo = toEmail;
bSend = new MailService(sORIGID, true).MailFactory(oEmail, out sError);
}
catch (Exception)
{
@ -1169,16 +1190,17 @@ namespace EasyBL.WEBAPP.ShowEasy
}
}
var objBookingOnline = db.Queryable<SETB_SAL_BookingOnline>()
//搜尋條件
.Where(x => x.OrgID == sORIGID && x.BookingID == strBookingID)
.Single();
srm = new SuccessResponseMessage(null, null);
srm.DATA.Add(BLWording.REL, iRel);
srm.DATA.Add(BLWording.REL, objBookingOnline);

Loading…
Cancel
Save