protected virtual void SplitExceptionHandling(PXCache splitCache, PXExceptionHandlingEventArgs args)
        {
            var notDecimalException = args.Exception as PXNotDecimalUnitException;

            if (notDecimalException != null)
            {
                RedirectedSplits[args.Row] = notDecimalException;
            }
        }
示例#2
0
        public virtual void APHistoryFilter_Period_ExceptionHandling(PXCache cache, PXExceptionHandlingEventArgs e)
        {
            APHistoryFilter header = e.Row as APHistoryFilter;

            if (header != null)
            {
                e.Cancel      = true;
                header.Period = null;
            }
        }
        protected virtual void CCProcessingCenterPmntMethod_ProcessingCenterID_ExceptionHandling(PXCache cache, PXExceptionHandlingEventArgs e)
        {
            CCProcessingCenterPmntMethod row = e.Row as CCProcessingCenterPmntMethod;

            if (row.ProcessingCenterID != null)
            {
                errorKey = true;
            }
        }
        protected virtual void PaymentMethodDetail_DetailID_ExceptionHandling(PXCache cache, PXExceptionHandlingEventArgs e)
        {
            PaymentMethodDetail a = e.Row as PaymentMethodDetail;

            if (a.DetailID != null)
            {
                errorKey = true;
            }
        }
示例#5
0
 protected void RSSVRepairService_WalkInService_ExceptionHandling(PXCache cache, PXExceptionHandlingEventArgs e)
 {
     var row = (RSSVRepairService)e.Row;
 }
        protected virtual void CCProcessingCenterDetail_DetailID_ExceptionHandling(PXCache cache, PXExceptionHandlingEventArgs e)
        {
            CCProcessingCenterDetail a = e.Row as CCProcessingCenterDetail;

            if (a.DetailID != null)
            {
                errorKey = true;
            }
        }
 // Check expressions thrown as throw expression here
 public void SOInvoice_RefNbr_ExceptionHandling(PXCache sender, PXExceptionHandlingEventArgs e) =>
 throw new PXSetupNotEnteredException("Setup is not entered", typeof(SOInvoice));
示例#8
0
 protected virtual void INSite_ShipLocationID_ExceptionHandling(PXCache sender, PXExceptionHandlingEventArgs e)
 {
     if (e.Cancel = IsImport)
     {
         _WrongLocations[3] = e.NewValue as string;
     }
 }
 protected virtual void INSite_ReturnLocationID_ExceptionHandling(PXCache sender, PXExceptionHandlingEventArgs e)
 {
     if (IsImport)
     {
         _WrongLocations[1] = e.NewValue as string;
         e.Cancel           = true;
     }
 }
 protected virtual void FSSrvOrdType_CombineSubFrom_ExceptionHandling(PXCache cache, PXExceptionHandlingEventArgs e)
 {
     if (e.Exception != null)
     {
         if (CurrentSrvOrdTypeRecord.Current.PostTo == ID.SrvOrdType_PostTo.NONE)
         {
             e.Cancel = true;
         }
     }
 }
示例#11
0
 protected virtual void BAccount_AcctCD_ExceptionHandling(PXCache sender, PXExceptionHandlingEventArgs e)
 {
     e.Cancel = CompanyHeader.Cache.RaiseExceptionHandling <CompanyBAccount.acctCD>(CompanyHeader.Current, e.NewValue, e.Exception);
 }