|
|
@ -1115,28 +1115,12 @@ namespace EasyBL.WEBAPP.ShowEasy |
|
|
|
rsBooking.LangType = Booking.LangType ?? "zh-TW"; |
|
|
|
rsBooking.OrgID = sORIGID; |
|
|
|
rsBooking.CreateDate = DateTime.Now; |
|
|
|
rsBooking.SubTotal = Booking.SubTotal; |
|
|
|
|
|
|
|
var iRel = db.Insertable(rsBooking).ExecuteCommand(); |
|
|
|
var objBookingOnline = new View_SAL_BookingOnline(); |
|
|
|
if (iRel > 0) |
|
|
|
{ |
|
|
|
//#region 一筆賬單
|
|
|
|
////當時確認訂單后,需要產生一筆賬單資料
|
|
|
|
//var PayPayment = new SETB_SAL_Payment();
|
|
|
|
//PayPayment.PaymentID = Guid.NewGuid().ToString();
|
|
|
|
//PayPayment.BookingID = rsBooking.BookingID;
|
|
|
|
//PayPayment.PaymentNo = rsBooking.BookingNo + "-01";
|
|
|
|
//PayPayment.PaymentMethod = rsBooking.PayType;
|
|
|
|
//PayPayment.PaymentTerms = "1";
|
|
|
|
////if (rsBooking.PayType=="3") {
|
|
|
|
//// //現場付款
|
|
|
|
//// PayPayment.PaymentDate = DateTime.Now;
|
|
|
|
////}
|
|
|
|
//PayPayment.Amount = float.Parse(rsBooking.TotalPrice);
|
|
|
|
//PayPayment.CreateDate = DateTime.Now;
|
|
|
|
//PayPayment.ModifyDate = DateTime.Now;
|
|
|
|
//iRel = db.Insertable(PayPayment).ExecuteCommand();
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
#region 下單后返回前臺的訂單内容
|
|
|
|
objBookingOnline = db.Queryable<SETB_SAL_BookingOnline, SETB_PDT_ONSiteBaseInfo, SETB_CMS_Exhibition> |
|
|
|
((t1, t2, t3) => |
|
|
|