public virtual void RowPersisting(PXCache sender, PXRowPersistingEventArgs e)
        {
            object row           = e.Row;
            Type   conditionType = Condition;

            if (row == null || conditionType == null)
            {
                return;
            }

            PXPersistingCheck  persistingCheck  = GetConditionResult(sender, row, conditionType) ? PXPersistingCheck.NullOrBlank : PXPersistingCheck.Nothing;
            PXDefaultAttribute defaultAttribute = sender.GetAttributesReadonly(_FieldName).OfType <PXDefaultAttribute>().FirstOrDefault();

            if (defaultAttribute != null)
            {
                defaultAttribute.PersistingCheck = persistingCheck;
                defaultAttribute.RowPersisting(sender, e);
                defaultAttribute.PersistingCheck = PXPersistingCheck.Nothing;
            }
        }
        public virtual void RowPersisting(PXCache sender, PXRowPersistingEventArgs e)
        {
            object row           = e.Row;
            Type   conditionType = Condition;

            if (row == null || conditionType == null)
            {
                return;
            }

            PXDefaultAttribute defaultAttribute = GetDefaultAttribute(sender);

            if (defaultAttribute != null)
            {
                PXPersistingCheck persistingCheck = GetConditionResult(sender, row, conditionType) ? PXPersistingCheck.NullOrBlank : PXPersistingCheck.Nothing;
                defaultAttribute.PersistingCheck = persistingCheck;
                defaultAttribute.RowPersisting(sender, e);
                defaultAttribute.PersistingCheck = PXPersistingCheck.Nothing;
            }
        }