如何在Acumatica - Journal Transactions屏幕中启用网格字段,而不管状态如何

时间:2017-10-16 14:45:52

标签: acumatica

下面是我编写的代码,用于在“日记帐事务”屏幕中启用网格级别的字段但不起作用。我尝试过自动化步骤,但它也不起作用。任何人都可以帮助我吗?

protected void Batch_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
{
    Batch row = (Batch)e.Row;

    if (row != null)
    {               
        PXUIFieldAttribute.SetReadOnly<GLTran.branchID>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.accountID>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.subID>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.refNbr>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.qty>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.uOM>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.curyDebitAmt>(Base.GLTranModuleBatNbr.Cache, null, false);
        PXUIFieldAttribute.SetReadOnly<GLTran.curyCreditAmt>(Base.GLTranModuleBatNbr.Cache, null, false);

    }
}

0 个答案:

没有答案