Browse Source

添加服務圖片

Dev
alina 2 years ago
parent
commit
99ee75539b
  1. 40
      EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs
  2. 2
      EuroTran/Entity/ViewModels/View_SAL_BookingOnline.cs

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

@ -1196,9 +1196,45 @@ namespace EasyBL.WEBAPP.ShowEasy
var objBookingOnline = db.Queryable<SETB_SAL_BookingOnline>() var objBookingOnline = db.Queryable<SETB_SAL_BookingOnline>()
//搜尋條件 //搜尋條件
.Where(x => x.OrgID == sORIGID && x.BookingID == strBookingID) .Where(x => x.OrgID == sORIGID && x.BookingID == strBookingID)
.Single();
.Select((t1) => new View_SAL_BookingOnline
{
BookingID = SqlFunc.GetSelfAndAutoFill(t1.BookingID),
//ServiceID = t1.ServiceID,
//ServiceNo = t1.ServiceNo,
//ServiceName = t1.ServiceName,
//ConfirmDays = t2.ArgumentValue,
//ExhibitionID = t1.ExhibitionID,
//CancelPolicy = t1.CancelPolicy,
//Features = t1.Features,
//Details = t1.Details,
//MinPrice = t1.MinPrice,
//CurrencyID = t1.CurrencyID,
//ExpenseDescription = ""
}).Single();
if (objBookingOnline != null) {
//ServicePictrue
var objFiles = db.Queryable<OTB_SYS_Files, SETB_PDT_ONSiteBaseInfo>((t1, t2) =>
new object[] {
JoinType.Inner, t1.OrgID == t2.OrgID && t1.ParentID == t2.PreviewFile && t2.ServiceID==objBookingOnline.ServiceID && t2.LangID==objBookingOnline.LangType
}
)
//搜尋條件
.Where((t1,t2) => t1.OrgID == sORIGID && t2.ServiceID == objBookingOnline.ServiceID && t2.LangID == objBookingOnline.LangType)
.Single();
if (objFiles != null) {
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri");
objBookingOnline.ServicePictrue = requestUrl + "/" + objFiles.FilePath.Replace("\\", "/");
}
}
srm = new SuccessResponseMessage(null, null); srm = new SuccessResponseMessage(null, null);
srm.DATA.Add(BLWording.REL, objBookingOnline); srm.DATA.Add(BLWording.REL, objBookingOnline);

2
EuroTran/Entity/ViewModels/View_SAL_BookingOnline.cs

@ -10,7 +10,7 @@ namespace Entity.ViewModels
public string MemberEmail { get; set; } public string MemberEmail { get; set; }
public string SupplierName { get; set; } public string SupplierName { get; set; }
public string ServiceName { get; set; } public string ServiceName { get; set; }
//public string MemberName { get; set; }
public string ServicePictrue { get; set; }
//public string MemberName { get; set; } //public string MemberName { get; set; }
//public string MemberName { get; set; } //public string MemberName { get; set; }
} }
Loading…
Cancel
Save