我正在发票屏幕(SO303000)中进行自定义。
我希望在发票状态从Balanced更改为Open时捕获事件。你能建议我为此使用的事件吗?
答案 0 :(得分:3)
此屏幕具有图形类:PX.Objects.SO.SOInvoiceEntry。你需要像这样进行扩展:
public class SOInvoiceEntryExt : PXGraphExtension<SOInvoiceEntry>
{
protected virtual void ARInvoice_Status_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
{
//Here goes reaction on changing field status.
//you can get ARInvoice in the following way:
ARInvoice invoice = (ARInvoice) e.Row;
}
}