Пример #1
0
 protected internal virtual void OnFormReportDataAfter(ref PrintEventInfo pVal)
 {
     if (this.ReportDataAfter != null)
     {
         this.ReportDataAfter(ref pVal);
     }
 }
Пример #2
0
 protected internal virtual void OnFormPrintAfter(ref PrintEventInfo pVal)
 {
     if (this.PrintAfter != null)
     {
         this.PrintAfter(ref pVal);
     }
 }
Пример #3
0
 protected internal virtual void OnFormReportDataBefore(ref PrintEventInfo pVal, out bool BubbleEvent)
 {
     BubbleEvent = true;
     if (this.ReportDataBefore != null)
     {
         this.ReportDataBefore(ref pVal, out BubbleEvent);
     }
 }
Пример #4
0
        protected virtual void OnFormPrintAfter(ref PrintEventInfo pVal)
        {
            DoverFormBase addOneForm;

            if (events.TryGetValue(pVal.FormUID, out addOneForm))
            {
                addOneForm.OnFormPrintAfter(ref pVal);
            }
        }
Пример #5
0
        protected virtual void OnFormPrintBefore(ref PrintEventInfo pVal, out bool BubbleEvent)
        {
            BubbleEvent = true;
            DoverFormBase addOneForm;

            if (events.TryGetValue(pVal.FormUID, out addOneForm))
            {
                addOneForm.OnFormPrintBefore(ref pVal, out BubbleEvent);
            }
        }
Пример #6
0
 internal void sapApp_PrintEvent(ref PrintEventInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
     foreach (var e in printEvents)
     {
         ((_IApplicationEvents_PrintEventEventHandler)e)(ref eventInfo, out BubbleEvent);
         if (!BubbleEvent)
         {
             break;
         }
     }
 }
Пример #7
0
        public static void CatchPrintEvent(ref PrintEventInfo pVal, out bool bubbleEvent)
        {
            bubbleEvent = true;

            try
            {
                if (pVal != null)
                {
                    switch (pVal.EventType)
                    {
                    case BoEventTypes.et_PRINT:
                        if (pVal.BeforeAction)
                        {
                            if (Print_Before != null)
                            {
                                Print_Before(ref pVal, ref bubbleEvent);
                            }
                        }
                        else
                        {
                            if (Print_After != null)
                            {
                                Print_After(ref pVal, ref bubbleEvent);
                            }
                        }
                        break;



                    case BoEventTypes.et_PRINT_LAYOUT_KEY:
                        if (pVal.BeforeAction)
                        {
                            if (Print_Layout_Before != null)
                            {
                                Print_Layout_Before(ref pVal, ref bubbleEvent);
                            }
                        }
                        else
                        {
                            if (Print_Layout_After != null)
                            {
                                Print_Layout_After(ref pVal, ref bubbleEvent);
                            }
                        }
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                B1Exception.throwException("Erro evento Print: ", ex);
            }
        }
Пример #8
0
 public virtual void Print_Layout_After(ref PrintEventInfo pVal, ref bool bubbleEvent)
 {
 }
Пример #9
0
 private void PrintLayoutFilterAfter(ref PrintEventInfo pVal, ref bool bubbleEvent)
 {
     Print_Layout_After(ref pVal, ref bubbleEvent);
 }
Пример #10
0
 private void PrintLayoutFilterBefore(ref PrintEventInfo pVal, ref bool bubbleEvent)
 {
     Print_Layout_Before(ref pVal, ref bubbleEvent);
 }
Пример #11
0
 public virtual void Print_Before(ref PrintEventInfo pVal, ref bool bubbleEvent)
 {
 }
Пример #12
0
 protected virtual void OnFormPrintBefore(ref PrintEventInfo pVal, out bool BubbleEvent)
 {
     BubbleEvent = true;
     DoverFormBase addOneForm;
     if (events.TryGetValue(pVal.FormUID, out addOneForm))
     {
         addOneForm.OnFormPrintBefore(ref pVal, out BubbleEvent);
     }
 }
Пример #13
0
 protected virtual void OnFormPrintAfter(ref PrintEventInfo pVal)
 {
     DoverFormBase addOneForm;
     if (events.TryGetValue(pVal.FormUID, out addOneForm))
     {
         addOneForm.OnFormPrintAfter(ref pVal);
     }
 }
Пример #14
0
 public void SBO_Application_PrintEvent(ref PrintEventInfo printeventInfo, SAPbobsCOM.Company sbo_company, ref Application sbo_application, out bool bBubbleEvent)
 {
     bBubbleEvent = true;
 }
 public static void PrintEvent(ref PrintEventInfo eventInfo, out Boolean BubbleEvent)
 {
     BubbleEvent = true;
 }
Пример #16
0
 internal void sapApp_PrintEvent(ref PrintEventInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
     foreach (var e in printEvents)
     {
         ((_IApplicationEvents_PrintEventEventHandler)e)(ref eventInfo, out BubbleEvent);
         if (!BubbleEvent)
             break;
     }
 }