当前位置: 首页>>代码示例>>C#>>正文


C# TRptCalculator.GenerateResultRemoteClient方法代码示例

本文整理汇总了C#中Ict.Petra.Client.MReporting.Logic.TRptCalculator.GenerateResultRemoteClient方法的典型用法代码示例。如果您正苦于以下问题:C# TRptCalculator.GenerateResultRemoteClient方法的具体用法?C# TRptCalculator.GenerateResultRemoteClient怎么用?C# TRptCalculator.GenerateResultRemoteClient使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ict.Petra.Client.MReporting.Logic.TRptCalculator的用法示例。


在下文中一共展示了TRptCalculator.GenerateResultRemoteClient方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GenerateReport

        /// <summary>
        /// This can be used directly by external functions that need to generate
        /// a report without first showing the UI for it. See method CreateReportNoGui in AP_PaymentReport.ManualCode.cs
        /// </summary>
        /// <param name="ACalculator">This must be set up already</param>
        /// <param name="ACallerForm">Parent Form</param>
        /// <param name="AReportName"></param>
        /// <param name="AWrapColumn"></param>
        public static void GenerateReport(TRptCalculator ACalculator, Form ACallerForm, String AReportName, bool AWrapColumn)
        {
            try
            {
                if (ACalculator.GenerateResultRemoteClient())
                {
                    TMyUpdateDelegate myDelegate = @ReportCalculationSuccess;

                    if (ACallerForm.IsHandleCreated)
                    {
                        ACallerForm.Invoke((System.Delegate) new TMyUpdateDelegate(
                                myDelegate), new object[] { ACalculator, ACallerForm, AReportName, AWrapColumn });
                        TLogging.Log("", TLoggingType.ToStatusBar);
                    }
                    else
                    {
                        MessageBox.Show(
                            Catalog.GetString("Results cannot be shown because form was closed."),
                            Catalog.GetString("Generate Report"),
                            MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }
            }
            catch (Exception e)
            {
                {
                    MessageBox.Show(e.ToString());
                }
            }
        }
开发者ID:js1987,项目名称:openpetragit,代码行数:38,代码来源:ReportingForm.cs

示例2: GenerateReport

        private void GenerateReport()
        {
            try
            {
                FPreviewForm.Cursor = Cursors.WaitCursor;
                TLogging.SetStatusBarProcedure(FPetraUtilsObject.WriteToStatusBar);

                // calculate the report
                FCalculator = new TRptCalculator();
                FCalculator.GetParameters().LoadFromDataTable(FDetailParameters.ToDataTable());

                if (FCalculator.GenerateResultRemoteClient())
                {
                    if (TClientSettings.DebugLevel >= TClientSettings.DEBUGLEVEL_REPORTINGDATA)
                    {
                        FCalculator.GetParameters().Save(TClientSettings.PathLog + Path.DirectorySeparatorChar + "debugParameterReturn.xml", true);
                        FCalculator.GetResults().WriteCSV(
                            FCalculator.GetParameters(), TClientSettings.PathLog + Path.DirectorySeparatorChar + "debugResultReturn.csv");
                    }

                    FPreviewForm.Cursor = Cursors.Default;
                    object[] Args = new object[1];
                    Args[0] = FCalculator;
                    FPreviewForm.Invoke((System.Delegate) new TPreviewDelegate(FPreviewDelegate), Args);
                    TLogging.Log("", TLoggingType.ToStatusBar);
                }
                else
                {
                    // if generateResult failed
                    FPreviewForm.Cursor = Cursors.Default;

                    // EnableDisableToolbar(true);
                }
            }
            catch (Exception e)
            {
                TLogging.Log("Exception in GenerateReport: " + e.ToString());
                // EnableDisableToolbar(true);
            }
        }
开发者ID:Davincier,项目名称:openpetra,代码行数:40,代码来源:GridPreview.cs


注:本文中的Ict.Petra.Client.MReporting.Logic.TRptCalculator.GenerateResultRemoteClient方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。