diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs index bb8a551..bb263e1 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs @@ -1590,7 +1590,8 @@ namespace EasyBL.WEBAPP.ShowEasy CurrencyName=t3.ArgumentValue, ExpenseDescription ="", SupplierName=t4.CompanyName, - SupplierLogo=t4.LogoFile + SupplierLogo=t4.LogoFile, + PreviewFile=t1.PreviewFile }).Single(); //常見問題 @@ -1703,10 +1704,10 @@ namespace EasyBL.WEBAPP.ShowEasy } objONSiteBaseInfo.ReceivinPlaces = sReceivinPlaces; } - + string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri"); if (!string.IsNullOrEmpty(objONSiteBaseInfo.SupplierLogo)) { - string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri"); + var oFilePath = db.Queryable() .Where(x => x.ParentID == objONSiteBaseInfo.SupplierLogo && x.OrgID == sORIGID) .Select(x => new FileDTO @@ -1725,9 +1726,25 @@ namespace EasyBL.WEBAPP.ShowEasy } } - + if (!string.IsNullOrEmpty(objONSiteBaseInfo.PreviewFile)) + { + var oFilePath = db.Queryable() + .Where(x => x.ParentID == objONSiteBaseInfo.PreviewFile && x.OrgID == sORIGID) + .Select(x => new FileDTO + { + FileID = x.FileID, + FileName = x.FileName, + FilePath = x.FilePath + }) + .Single(); + + if (oFilePath != null) + { + objONSiteBaseInfo.PreviewFile = requestUrl + "/" + oFilePath.FilePath.Replace("\\", "/"); + } + } return objONSiteBaseInfo; diff --git a/EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs b/EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs index 9209534..e7666e7 100644 --- a/EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs +++ b/EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs @@ -38,13 +38,18 @@ namespace Entity.ShowEasyDtos public string Details { get; set; } //取消政策 public string CancelPolicy { get; set; } + //最小金額 public int? MinPrice { get; set; } - + //幣別 public string CurrencyID { get; set; } + //幣別名稱 public string CurrencyName { get; set; } + //供應商名稱 public string SupplierName { get; set; } + //供應商Logo public string SupplierLogo { get; set; } - + //服務封面圖片 + public string PreviewFile { get; set; } //public string CurrencyID { get; set; } //public DateTime? LaunchDateS { get; set; }