|
|
@ -1196,9 +1196,45 @@ namespace EasyBL.WEBAPP.ShowEasy |
|
|
|
var objBookingOnline = db.Queryable<SETB_SAL_BookingOnline>() |
|
|
|
//搜尋條件
|
|
|
|
.Where(x => x.OrgID == sORIGID && x.BookingID == strBookingID) |
|
|
|
.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.DATA.Add(BLWording.REL, objBookingOnline); |
|
|
|
|
|
|
|