Browse Source

訂單 - 上傳水單API

Dev
Janie 2 years ago
parent
commit
eef3df25a4
  1. 13
      EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs

13
EuroTran/EasyBL.WEBAPP/ShowEasy/BookingOnlineService.cs

@ -187,21 +187,24 @@ namespace EasyBL.WEBAPP.SYS
.Where(x => x.Account == Account)
.Single();
var sUploadTime = db.Updateable<SETB_SAL_Payment>() //更新付款時間 + 付款狀態
.UpdateColumns(x => new SETB_SAL_Payment { PaymentDate = DateTime.Now })
.UpdateColumns(x => new SETB_SAL_Payment { PaymentStatus = "02" })
.Where(x => x.BookingID == BookingID)
.ExecuteCommand();
//var sBookingStatus = db.Updateable<SETB_SAL_BookingOnline>() //更新訂單狀態
// .UpdateColumns(x => new SETB_SAL_BookingOnline { BookingStatus = "02" })
// .Where(x => x.BookingID == BookingID)
// .ExecuteCommand();
var sBookingStatus = db.Updateable<SETB_SAL_BookingOnline>() //更新訂單狀態
.UpdateColumns(x => new SETB_SAL_BookingOnline { PaymentStatus = "02" })
.Where(x => x.BookingID == BookingID)
.ExecuteCommand();
var sUser = db.Queryable<SETB_SAL_Payment>() //取付款資料
.Where(x => x.BookingID == BookingID)
.Single();
sUser.PaymentStatus = "01";
db.Insertable(sUser).ExecuteCommand();
var sFilePath = db.Queryable<OTB_SYS_Files>() //從file表中取圖
.Where(x => x.ParentID == sUser.Remittance)
.Single();

Loading…
Cancel
Save