【问题标题】:change Sql statement to Bql将 Sql 语句更改为 Bql
【发布时间】:2020-06-15 12:41:28
【问题描述】:

如何将此 SQL 语句更改为 BQL,提前谢谢

select InventoryID ,TranDesc
from dbo.ARTran
order by case when TranDesc = 'Rounding Adjustments' then 2 else 1 end

【问题讨论】:

标签: c# sql acumatica


【解决方案1】:

像这样:

class RoundingAdjustment : PX.Data.Constant<String> { public RoundingAdjustment() : base("Rounding Adjustments") { } }

PXSelectReadonly3<ARTran,
OrderBy<Asc<Switch<Case<Where<ARTran.tranDesc, Equal<RoundingAdjustment>>, PX.Objects.CS.int2>, PX.Objects.CS.int1>>>>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-08
    • 1970-01-01
    相关资源
    最近更新 更多