|
@ -232,10 +232,11 @@ namespace EasyBL.WEBAPP.ShowEasy |
|
|
}; |
|
|
}; |
|
|
var iPageCount = 0; |
|
|
var iPageCount = 0; |
|
|
var sORIGID = WebAppGlobalConstWord.TG_ORGID; |
|
|
var sORIGID = WebAppGlobalConstWord.TG_ORGID; |
|
|
pml.DataList = db.Queryable<SETB_PDT_ONSiteBaseInfo, SETB_SCM_Supplier> |
|
|
pml.DataList = db.Queryable<SETB_PDT_ONSiteBaseInfo, SETB_SCM_Supplier,OTB_SYS_Arguments> |
|
|
((t1, t2) => |
|
|
((t1, t2,t3) => |
|
|
new object[] { |
|
|
new object[] { |
|
|
JoinType.Left, t1.OrgID == t2.OrgID && t1.SupplierID == t2.SupplierID && t1.LangID == t2.LangType |
|
|
JoinType.Left, t1.OrgID == t2.OrgID && t1.SupplierID == t2.SupplierID && t1.LangID == t2.LangType, |
|
|
|
|
|
JoinType.Left, t1.OrgID == t3.OrgID && t1.CurrencyID == t3.ArgumentID && t3.ArgumentClassID=="Currency" , |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
.Where((t1) => t1.LangID == sLangID && t1.Effective == "Y" && t1.OrgID == sORIGID) |
|
|
.Where((t1) => t1.LangID == sLangID && t1.Effective == "Y" && t1.OrgID == sORIGID) |
|
@ -245,7 +246,7 @@ namespace EasyBL.WEBAPP.ShowEasy |
|
|
.WhereIF(!string.IsNullOrEmpty(sLocations), (t1) => t1.SuitPlace.Contains(sLocations)) |
|
|
.WhereIF(!string.IsNullOrEmpty(sLocations), (t1) => t1.SuitPlace.Contains(sLocations)) |
|
|
.WhereIF(iMinPrice != 0 && iMaxPrice != 0, (t1) => t1.MinPrice >= iMinPrice) |
|
|
.WhereIF(iMinPrice != 0 && iMaxPrice != 0, (t1) => t1.MinPrice >= iMinPrice) |
|
|
.WhereIF(iMinPrice != 0 && iMaxPrice != 0, (t1) => t1.MinPrice <= iMaxPrice) |
|
|
.WhereIF(iMinPrice != 0 && iMaxPrice != 0, (t1) => t1.MinPrice <= iMaxPrice) |
|
|
.Select((t1, t2) => new ONSiteBaseListDTO |
|
|
.Select((t1, t2,t3) => new ONSiteBaseListDTO |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
ServiceID = t1.ServiceID, |
|
|
ServiceID = t1.ServiceID, |
|
@ -256,7 +257,8 @@ namespace EasyBL.WEBAPP.ShowEasy |
|
|
PlaceName = "", |
|
|
PlaceName = "", |
|
|
ServiceCategoryName = t1.SubCategoryID, |
|
|
ServiceCategoryName = t1.SubCategoryID, |
|
|
ServiceNo = t1.ServiceNo, |
|
|
ServiceNo = t1.ServiceNo, |
|
|
CurrencyID = t1.CurrencyID |
|
|
CurrencyID = t1.CurrencyID, |
|
|
|
|
|
CurrencyName=t3.ArgumentValue |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
.OrderBy(sSortField, sSortOrder) |
|
|
.OrderBy(sSortField, sSortOrder) |
|
|
xxxxxxxxxx