From c1e9079b9970720fff77c2dcef8a9ecf78066dba Mon Sep 17 00:00:00 2001 From: alina <1449359159@qq.com> Date: Fri, 24 Feb 2023 14:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=96=AE=E5=90=8E=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E8=A8=82=E5=96=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EasyBL.WEBAPP/ShowEasy/OnsiteService.cs | 40 ++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs index 57aae3f..418ac13 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs +++ b/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() //搜尋條件 @@ -966,9 +965,11 @@ namespace EasyBL.WEBAPP.ShowEasy var sCountry = db.Queryable() .Where(x => x.CountryID == member.CountryID && x.LangType == sLang) .Single(); - member.CountryName = sCountry.CountryName; - member.Country_ENCode = sCountry.Country_ENCode; + if (sCountry != null) { + member.CountryName = sCountry.CountryName; + member.Country_ENCode = sCountry.Country_ENCode; + } } //返回user信息 srm = new SuccessResponseMessage(null, null); @@ -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(); //收件人 + 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() + //搜尋條件 + .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);