在采购订单屏幕中找不到 "Email Purchase Order" 操作的代码定义

Cannot find the code definition for "Email Purchase Order" Action In Purchase Order Screen

我想在采购订单屏幕的操作文件夹中自定义 "Email Purchase Order" 操作。 我找不到它所在的代码。

假设如果它出现在 dll 中,我们可以自定义它吗?

I don't find the code where it is located.

这不是标准动作,它重定向动作的方式涉及一些技巧。

它首先通过 POOrderEntry.Action 事件处理程序,然后路由到 POOrderEntry.Notification 事件处理程序以发送电子邮件。

您可以通过在 POOrderEntry 上创建图形扩展并覆盖 Notification 方法来自定义它。

Notification 方法覆盖中,您可以使用条件 adapter.Menu == "Email Purchase Order" 来确定对 Notification 方法的调用是否源自 Email Purchase Order 操作菜单项。