本文整理汇总了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());
}
}
}
示例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);
}
}