コード例 #1
0
    protected void APAdjust_RowInserting(PXCache sender, PXRowInsertingEventArgs e)
    {
        APAdjust row = e.Row as APAdjust;

        if (row != null)
        {
            row.GetExtension <APAdjustExt>().InvoiceNbr = GetInvoiceNbr(row);
        }
    }
コード例 #2
0
    protected void APAdjust_RowSelecting(PXCache sender, PXRowSelectingEventArgs e)
    {
        APAdjust row = e.Row as APAdjust;

        if (row == null)
        {
            return;
        }
        using (var connScope = new PXConnectionScope())
        {
            row.GetExtension <APAdjustExt>().InvoiceNbr = GetInvoiceNbr(row);
        }
    }