protected virtual void CashAccountFilter_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
        {
            CashAccountFilter reconCreateFilter = (CashAccountFilter)e.Row;

            cache.AllowUpdate = true;
            PXUIFieldAttribute.SetEnabled(cache, reconCreateFilter, false);
            PXUIFieldAttribute.SetEnabled <CashAccountFilter.cashAccountID>(cache, reconCreateFilter, true);
        }
        protected virtual void CashAccountFilter_CashAccountID_FieldUpdating(PXCache cache, PXFieldUpdatingEventArgs e)
        {
            CashAccountFilter createReconFilter = (CashAccountFilter)e.Row;

            if (createReconFilter == null)
            {
                return;
            }
            CashAccount acct = PXSelect <CashAccount, Where <CashAccount.cashAccountCD, Equal <Required <CashAccount.cashAccountCD> > > > .Select(this, (string)e.NewValue);

            if (acct != null && acct.Reconcile != true)
            {
                throw new PXSetPropertyException(Messages.CashAccounNotReconcile);
            }
        }
        public virtual IEnumerable CreateRecon(PXAdapter adapter)
        {
            if (this.Views.ContainsKey("cashAccountFilter"))
            {
                CashAccountFilter createReconFilter = cashAccountFilter.Current;
                WebDialogResult   result            = this.Views["cashAccountFilter"].AskExt();
                if (result == WebDialogResult.OK)
                {
                    CashAccount acct = PXSelect <CashAccount, Where <CashAccount.cashAccountID, Equal <Required <AddTrxFilter.cashAccountID> > > > .Select(this, createReconFilter.CashAccountID);

                    CAReconEntry.ReconCreate(acct);
                    CAReconRecords.View.RequestRefresh();
                }
            }

            return(adapter.Get());
        }
        protected virtual void CAEnqFilter_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
        {
            CAEnqFilter filter = (CAEnqFilter)e.Row;

            if (filter == null)
            {
                return;
            }
            PXCache reconCache = CAReconRecords.Cache;

            reconCache.AllowInsert = false;
            reconCache.AllowUpdate = false;
            reconCache.AllowDelete = false;
            CashAccountFilter reconCreateFilter = cashAccountFilter.Current;

            cashAccountFilter.Cache.RaiseRowSelected(reconCreateFilter);
        }