本文整理汇总了C#中Report.set_RHDR_ReportId方法的典型用法代码示例。如果您正苦于以下问题:C# Report.set_RHDR_ReportId方法的具体用法?C# Report.set_RHDR_ReportId怎么用?C# Report.set_RHDR_ReportId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Report
的用法示例。
在下文中一共展示了Report.set_RHDR_ReportId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StartOneReport
public void StartOneReport(Report report, string userId, string instanceId, string branch, bool eodRequest)
{
ReportInformation reportInformationByReportName = StaticFunctions.GetReportInformationByReportName(report.ReportName);
ReportHeader reportHeader = StaticFunctions.GetReportHeader(report.Branch, report.Parameters, reportInformationByReportName.ReportId, 0);
if (reportHeader == null)
{
reportHeader = StaticFunctions.CreateReportHeader(report.Branch, report.Parameters, reportInformationByReportName);
report.set_RHDR_ReportId(reportHeader.ReportId);
}
else
{
bool flag = this.ReportInProgress(reportHeader);
report.set_RHDR_ReportId(reportHeader.ReportId);
if (flag == 0)
{
reportHeader.set_Status(1);
reportHeader.set_StatusUpdateDateTime(DateTime.Now);
reportHeader.set_ReportLines(0);
reportHeader.set_CreateDateTime(DateTime.Now);
reportHeader.set_PrintDateTime(DateTime.MinValue);
reportHeader.set_Locator(string.Empty);
reportHeader.set_ErrorCode(0);
StaticFunctions.UpdateReportHeader(reportHeader);
using (MessageManager messageManager = new MessageManager(this.reportManagerSettings.AdapterName))
{
ReportingServiceControlRequest reportingServiceControlRequest = this.BuildControlRequest(reportHeader, reportInformationByReportName, this.reportStartDto, instanceId);
reportingServiceControlRequest.set_UserId(userId);
reportingServiceControlRequest.set_Branch(branch);
this.SendControlRequestToQueue(messageManager, reportingServiceControlRequest);
}
}
}
}