要在Acumatica中实现在处理后仍然保留在屏幕上的自定义处理屏幕的功能,可以按照以下步骤进行操作:
创建一个新的处理屏幕。可以使用Acumatica的屏幕设计器来创建一个新的屏幕,并添加所需的字段和控件。
在处理屏幕的Graph类中定义一个新的处理逻辑方法。可以在Graph类的扩展中添加一个新的方法,该方法将处理用户输入并根据需要更新屏幕的字段。
public class MyProcessingGraphExtension : PXGraph
{
// ... other code ...
public virtual void MyProcessingMethod()
{
// Process user input and update screen fields here
// For example:
MyScreenField1 = "Updated Value";
MyScreenField2 = MyScreenField3 + 10;
// ...
}
}
public class MyProcessingScreen : PXGraph
{
// ... other code ...
protected virtual void MyProcessingButton_Click(PXAdapter adapter)
{
// Call custom processing method
Base.MyProcessingMethod();
}
}
通过按照上述步骤操作,实现了自定义处理屏幕后,处理完成后屏幕上的字段将保留其值。