public static void CatchReportDataEvent(ref ReportDataInfo pVal, out bool bubbleEvent) { bubbleEvent = true; try { if (pVal != null) { switch (pVal.EventType) { case BoEventTypes.et_PRINT_DATA: if (pVal.BeforeAction) { if (Print_Data_Before != null) { Print_Data_Before(ref pVal, ref bubbleEvent); } } else { if (Print_Data_After != null) { Print_Data_After(ref pVal, ref bubbleEvent); } } break; } } } catch (Exception ex) { B1Exception.throwException("Erro evento Report: ", ex); } }
internal void sapApp_ReportDataEvent(ref ReportDataInfo eventInfo, out bool BubbleEvent) { BubbleEvent = true; foreach (var e in reportDataEvents) { ((_IApplicationEvents_ReportDataEventEventHandler)e)(ref eventInfo, out BubbleEvent); if (!BubbleEvent) { break; } } }
private static string RepositoryFunctionsSnippet(ReportDataInfo info) { return string.Format( @"public object[][] GetReportData({0}.{1} parameter) {{ var reportData = new Dictionary<string, object[]>(); {2} return reportData.OrderBy(i => i.Key).Select(i => i.Value).ToArray(); }} public IList<string> DataSourcesNames {{ get {{ return _dataSourcesNames; }} }} private readonly static string[] _dataSourcesNames = new string[] {{ {3} }}; ", info.Module.Name, info.Name, GetReportDataTag.Evaluate(info), DataSourceNameTag.Evaluate(info)); }
private static string RepositoryFunctionsSnippet(ReportDataInfo info) { return(string.Format( @"public object[][] GetReportData({0}.{1} parameter) {{ var reportData = new Dictionary<string, object[]>(); {2} return reportData.OrderBy(i => i.Key).Select(i => i.Value).ToArray(); }} public IList<string> DataSourcesNames {{ get {{ return _dataSourcesNames; }} }} private readonly static string[] _dataSourcesNames = new string[] {{ {3} }}; ", info.Module.Name, info.Name, GetReportDataTag.Evaluate(info), DataSourceNameTag.Evaluate(info))); }
public virtual void Print_Data_After(ref ReportDataInfo pVal, ref bool bubbleEvent) { }
private void PrintDataFilterAfter(ref ReportDataInfo pVal, ref bool bubbleEvent) { Print_Data_After(ref pVal, ref bubbleEvent); }
public void SBO_Application_ReportDataEvent(ref ReportDataInfo reportDataInfo, SAPbobsCOM.Company sbo_company, ref Application sbo_application, out bool bBubbleEvent) { bBubbleEvent = true; }
public static void ReportDataEvent(ref ReportDataInfo reportDataInfo, out Boolean BubbleEvent) { BubbleEvent = true; }
internal void sapApp_ReportDataEvent(ref ReportDataInfo eventInfo, out bool BubbleEvent) { BubbleEvent = true; foreach (var e in reportDataEvents) { ((_IApplicationEvents_ReportDataEventEventHandler)e)(ref eventInfo, out BubbleEvent); if (!BubbleEvent) break; } }