Browse Source

下單添加小計部分

Dev
alina 2 years ago
parent
commit
a386b3ac62
  1. 20
      EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs
  2. 1
      EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs
  3. 8
      EuroTran/Entity/Sugar/SETB_SAL_BookingOnline.cs

20
EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs

@ -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) =>

1
EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs

@ -270,6 +270,7 @@ namespace Entity.ShowEasyDtos
public string PayType { get; set; }
public string ServiceID { get; set; }
public string TotalPrice { get; set; }
public string SubTotal { get; set; }
public List<string> BookingItem { get; set; }
public List<string> OrderQuestion { get; set; }

8
EuroTran/Entity/Sugar/SETB_SAL_BookingOnline.cs

@ -120,6 +120,14 @@ namespace Entity.Sugar
public string TotalPrice { get; set; }
public const string CN_TOTALPRICE = "TotalPrice";
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string SubTotal { get; set; }
public const string CN_SUBTOTAL = "SubTotal";
/// <summary>
/// Desc:
/// Default:

Loading…
Cancel
Save