C# 如何通过预加载字段更改Enabled=属性

C# 如何通过预加载字段更改Enabled=属性,c#,C#,我想使用现有的布尔字段修改pxuifieldenabled=false/true public abstract class lastBatNbr : PX.Data.IBqlField { } protected String _LastBatNbr; [PXDBString(10, IsFixed = true)] [PXUIField(DisplayName = "Last Batch Nbr")] public virtual String LastBatNbr { get

我想使用现有的布尔字段修改
pxuifieldenabled=false/true

public abstract class lastBatNbr : PX.Data.IBqlField
{
}

protected String _LastBatNbr;
[PXDBString(10, IsFixed = true)]
[PXUIField(DisplayName = "Last Batch Nbr")] 

public virtual String LastBatNbr
{
    get
    {
    return this._LastBatNbr;
    }
    set
    {
    this._LastBatNbr = value;
    }
}