|
@ -1113,13 +1113,28 @@ namespace EasyBL.WEBAPP.ShowEasy |
|
|
rsBooking.LangType = Booking.LangType ?? "zh-TW"; |
|
|
rsBooking.LangType = Booking.LangType ?? "zh-TW"; |
|
|
rsBooking.OrgID = sORIGID; |
|
|
rsBooking.OrgID = sORIGID; |
|
|
rsBooking.CreateDate = DateTime.Now; |
|
|
rsBooking.CreateDate = DateTime.Now; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var iRel = db.Insertable(rsBooking).ExecuteCommand(); |
|
|
var iRel = db.Insertable(rsBooking).ExecuteCommand(); |
|
|
|
|
|
|
|
|
if (iRel > 0) |
|
|
if (iRel > 0) |
|
|
{ |
|
|
{ |
|
|
//取得聯絡人的Email
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//當時確認訂單后,需要產生一筆賬單資料
|
|
|
|
|
|
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(); |
|
|
|
|
|
|
|
|
var objONSiteBaseInfo = db.Queryable<SETB_PDT_ONSiteBaseInfo>() |
|
|
var objONSiteBaseInfo = db.Queryable<SETB_PDT_ONSiteBaseInfo>() |
|
|
//搜尋條件
|
|
|
//搜尋條件
|
|
|