Beispiel #1
0
 public static void ProcessReport(ISCDReportClientDocument report, Utf8JsonWriter jsonw, string reportDoc = "ReportClientDocument")
 {
     jsonw.WritePropertyName(reportDoc);
     jsonw.WriteStartObject();
     jsonw.WriteString("DisplayName", report.DisplayName);
     jsonw.WriteString("IsModified", report.IsModified.ToStringSafe());
     jsonw.WriteString("IsOpen", report.IsOpen.ToStringSafe());
     jsonw.WriteString("IsReadOnly", report.IsReadOnly.ToStringSafe());
     jsonw.WriteString("LocaleID", report.LocaleID.ToStringSafe());
     jsonw.WriteString("MajorVersion", report.MajorVersion.ToStringSafe());
     jsonw.WriteString("MinorVersion", report.MinorVersion.ToStringSafe());
     jsonw.WriteString("Path", report.Path);
     jsonw.WriteString("PreferredViewingLocaleID", report.PreferredViewingLocaleID.ToStringSafe());
     jsonw.WriteString("ProductLocaleID", report.ProductLocaleID.ToStringSafe());
     jsonw.WriteString("ReportAppServer", report.ReportAppServer);
     Controllers.ProcessCustomFunctionController(report.CustomFunctionController, jsonw);
     Controllers.ProcessDatabaseController(report.DatabaseController, jsonw);
     Controllers.ProcessDataDefController(report.DataDefController, jsonw);
     Controllers.ProcessPrintOutputController(report.PrintOutputController, jsonw);
     Controllers.ProcessReportDefController(report.ReportDefController, jsonw);
     ReportDefModel.ProcessReportOptions(report.ReportOptions, jsonw);
     Controllers.ProcessSubreportController(report.SubreportController, jsonw);
     DataDefModel.ProcessSummaryInfo(report.SummaryInfo, jsonw);
     jsonw.WriteEndObject();
 }
Beispiel #2
0
 private static void ProcessSubreportClientDocument(SubreportClientDocument scd, XmlWriter xmlw)
 {
     xmlw.WriteAttributeString("EnableOnDemand", scd.EnableOnDemand.ToStringSafe());
     xmlw.WriteAttributeString("EnableReimport", scd.EnableReimport.ToStringSafe());
     xmlw.WriteAttributeString("IsImported", scd.IsImported.ToStringSafe());
     xmlw.WriteAttributeString("Name", scd.Name);
     xmlw.WriteAttributeString("SubreportLocation", scd.SubreportLocation);
     ProcessDatabaseController(scd.DatabaseController, xmlw);
     ProcessDataDefController(scd.DataDefController, xmlw);
     ProcessReportDefController(scd.ReportDefController, xmlw);
     ReportDefModel.ProcessReportOptions(scd.ReportOptions, xmlw);
 }