【发布时间】:2021-11-15 11:35:08
【问题描述】:
我正在尝试自定义 GL501000 发布交易屏幕,但在处理时它没有输入我的代码,它可能指示我应该使用什么事件来实现这一点。
提前致谢
using System;
using System.Text;
using PX.Data;
using System.Collections;
using System.Collections.Generic;
using PX.Objects.BQLConstants;
using PX.Objects.CS;
using PX.Objects.CM;
using PX.SM;
using System.Linq;
using PX.Objects;
using PX.Objects.GL;
namespace PX.Objects.GL
{
public class BatchRelease_Extension : PXGraphExtension<BatchRelease>
{
public override void Initialize()
{
base.Initialize();
PXGraph.InstanceCreated.AddHandler<JournalEntry>((JournalEntry graphGL) =>
{
graphGL.GetExtension<JournalEntry_Extension>().ModifyBatchFrom = true;
});
}
}
}
【问题讨论】: