protected virtual void CCProcessingCenterDetail_Value_FieldVerifying(PXCache sender, PXFieldVerifyingEventArgs e)
        {
            if (e.NewValue == null)
            {
                return;
            }
            CCProcessingCenter       processingCenter = ProcessingCenter.Current;
            CCProcessingCenterDetail procCenterDetail = (CCProcessingCenterDetail)e.Row;
            CCPaymentProcessing      processingGraph  = PXGraph.CreateInstance <CCPaymentProcessing>();
            ISettingsDetail          idetail          = new procDetail()
            {
                DetailID = procCenterDetail.DetailID, Value = (string)e.NewValue
            };

            processingGraph.ValidateSettings(this, processingCenter.ProcessingCenterID, idetail);
        }
Exemplo n.º 2
0
        protected virtual void CCProcessingCenterDetail_Value_FieldVerifying(PXCache sender, PXFieldVerifyingEventArgs e)
        {
            if (e.NewValue == null)
            {
                return;
            }

            CCProcessingCenter       processingCenter = ProcessingCenter.Current;
            CCProcessingCenterDetail procCenterDetail = (CCProcessingCenterDetail)e.Row;

            //skip validation for special values - plugins don't know about this detail ids
            if (!InterfaceConstants.SpecialDetailIDs.Contains(procCenterDetail.DetailID))
            {
                CCPaymentProcessing processingGraph = PXGraph.CreateInstance <CCPaymentProcessing>();
                ISettingsDetail     idetail         = new procDetail()
                {
                    DetailID = procCenterDetail.DetailID, Value = (string)e.NewValue
                };
                processingGraph.ValidateSettings(this, processingCenter.ProcessingCenterID, idetail);
            }
        }