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);