Browse Source

内容頁添加供應商名稱和Logo

Dev
alina 2 years ago
parent
commit
ea7425126b
  1. 36
      EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs
  2. 3
      EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs

36
EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs

@ -1565,16 +1565,17 @@ namespace EasyBL.WEBAPP.ShowEasy
do do
{ {
var sORIGID = WebAppGlobalConstWord.TG_ORGID; var sORIGID = WebAppGlobalConstWord.TG_ORGID;
objONSiteBaseInfo = db.Queryable<SETB_PDT_ONSiteBaseInfo,OTB_SYS_Arguments, OTB_SYS_Arguments>((t1, t2,t3) =>
objONSiteBaseInfo = db.Queryable<SETB_PDT_ONSiteBaseInfo,OTB_SYS_Arguments, OTB_SYS_Arguments,SETB_SCM_Supplier>((t1, t2,t3, t4) =>
new object[] { new object[] {
JoinType.Left, t1.OrgID == t2.OrgID && t1.ConfirmDays == t2.ArgumentID && t2.ArgumentClassID=="OrderConfirmDays", JoinType.Left, t1.OrgID == t2.OrgID && t1.ConfirmDays == t2.ArgumentID && t2.ArgumentClassID=="OrderConfirmDays",
JoinType.Left, t1.OrgID == t3.OrgID && t1.CurrencyID == t3.ArgumentID && t3.ArgumentClassID=="Currency"
JoinType.Left, t1.OrgID == t3.OrgID && t1.CurrencyID == t3.ArgumentID && t3.ArgumentClassID=="Currency",
JoinType.Left, t1.OrgID == t4.OrgID && t1.SupplierID == t4.SupplierID && t1.LangID == t4.LangType
} }
) )
//搜尋條件 //搜尋條件
.Where((t1) => t1.OrgID == sORIGID && t1.ServiceID == sServiceID && t1.LangID == sLanguageID) .Where((t1) => t1.OrgID == sORIGID && t1.ServiceID == sServiceID && t1.LangID == sLanguageID)
.Select((t1, t2, t3) => new ONSiteBaseInfoDTO
.Select((t1, t2, t3,t4) => new ONSiteBaseInfoDTO
{ {
ServiceID = t1.ServiceID, ServiceID = t1.ServiceID,
ServiceNo=t1.ServiceNo, ServiceNo=t1.ServiceNo,
@ -1587,7 +1588,9 @@ namespace EasyBL.WEBAPP.ShowEasy
MinPrice=t1.MinPrice, MinPrice=t1.MinPrice,
CurrencyID=t1.CurrencyID, CurrencyID=t1.CurrencyID,
CurrencyName=t3.ArgumentValue, CurrencyName=t3.ArgumentValue,
ExpenseDescription =""
ExpenseDescription ="",
SupplierName=t4.CompanyName,
SupplierLogo=t4.LogoFile
}).Single(); }).Single();
//常見問題 //常見問題
@ -1700,6 +1703,31 @@ namespace EasyBL.WEBAPP.ShowEasy
} }
objONSiteBaseInfo.ReceivinPlaces = sReceivinPlaces; objONSiteBaseInfo.ReceivinPlaces = sReceivinPlaces;
} }
if (!string.IsNullOrEmpty(objONSiteBaseInfo.SupplierLogo)) {
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri");
var oFilePath = db.Queryable<OTB_SYS_Files>()
.Where(x => x.ParentID == objONSiteBaseInfo.SupplierLogo && x.OrgID == sORIGID)
.Select(x => new FileDTO
{
FileID = x.FileID,
FileName = x.FileName,
FilePath = x.FilePath
})
.Single();
if (oFilePath != null)
{
objONSiteBaseInfo.SupplierLogo = requestUrl + "/" + oFilePath.FilePath.Replace("\\", "/");
}
}
return objONSiteBaseInfo; return objONSiteBaseInfo;

3
EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs

@ -42,7 +42,8 @@ namespace Entity.ShowEasyDtos
public string CurrencyID { get; set; } public string CurrencyID { get; set; }
public string CurrencyName { get; set; } public string CurrencyName { get; set; }
//public string SupplierID { get; set; }
public string SupplierName { get; set; }
public string SupplierLogo { get; set; }
//public string CurrencyID { get; set; } //public string CurrencyID { get; set; }

Loading…
Cancel
Save