如何将报告添加到报告的广告资源调储下拉菜单中



我想在"库存转储"屏幕的下拉菜单中添加一份报告。 搜索Stack Overflow后,我找到了以下示例,但是由于它似乎总是发生,因此它似乎不适用于此屏幕(该示例适用于APPaymentEntry BLC(:

public class APPaymentEntry_Extension : PXGraphExtension<APPaymentEntry> 
{
public override void Initialize()
{
Base.action.AddMenuAction(ShowURL);
}
public PXAction<APPayment> ShowURL;
[PXUIField(DisplayName = "Print Remittance")]
[PXButton]
protected virtual void showURL()
{
APPayment doc = Base.Document.Current;
if (doc.RefNbr != null)
{
throw new PXReportRequiredException(doc, "AP991000", null);
}
}
}

INTransferEntry 的图形扩展没有 Base.action.AddMenuAction 方法。

如何将要启动的报告添加到此库存转储菜单中?

根据我的经验,"操作"按钮通常由操作BLC 成员表示,"报告"按钮由报告BLC 成员表示。

以下代码段应将报告添加到报告的库存转移下拉菜单中:

public class INTransferEntryExt : PXGraphExtension<INTransferEntry>
{
public override void Initialize()
{
Base.report.AddMenuAction(ShowCustomReport);
}
public PXAction<INRegister> ShowCustomReport;
[PXButton]
[PXUIField(DisplayName = "Show Custom Report")]
protected void showCustomReport()
{
INRegister doc = Base.transfer.Current;
if (doc != null && doc.RefNbr != null)
{
throw new PXReportRequiredException(...);
}
}
}

最新更新