Exemple #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();
 }
Exemple #2
0
 public static void ProcessSubreportController(SubreportController sc, XmlWriter xmlw)
 {
     foreach (string Subreport in sc.GetSubreportNames())
     {
         xmlw.WriteStartElement("Subreport");
         ProcessSubreportClientDocument(sc.GetSubreport(Subreport), xmlw);
         ReportDefModel.ProcessSubreportLinks(sc.GetSubreportLinks(Subreport), xmlw);
         xmlw.WriteEndElement();
     }
 }
Exemple #3
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);
 }
Exemple #4
0
 public static void ProcessSubreportController(SubreportController sc, Utf8JsonWriter jsonw)
 {
     jsonw.WritePropertyName("Subreports");
     jsonw.WriteStartArray();
     foreach (string Subreport in sc.GetSubreportNames())
     {
         jsonw.WriteStartObject();
         ProcessSubreportClientDocument(sc.GetSubreport(Subreport), jsonw);
         ReportDefModel.ProcessSubreportLinks(sc.GetSubreportLinks(Subreport), jsonw);
         jsonw.WriteEndObject();
     }
     jsonw.WriteEndArray();
 }
Exemple #5
0
 public static void ProcessReportDefController(ReportDefController2 rdc, XmlWriter xmlw)
 {
     ReportDefModel.ProcessReportDefinition(rdc.ReportDefinition, xmlw);
 }
Exemple #6
0
 public static void ProcessPrintOutputController(PrintOutputController poc, XmlWriter xmlw)
 {
     ReportDefModel.ProcessPrintOptions(poc.GetPrintOptions(), xmlw);
     ReportDefModel.ProcessSavedXMLExportFormats(poc.GetSavedXMLExportFormats(), xmlw);
 }
Exemple #7
0
 public static void ProcessReportDefController(ReportDefController2 rdc, Utf8JsonWriter jsonw)
 {
     ReportDefModel.ProcessReportDefinition(rdc.ReportDefinition, jsonw);
 }
Exemple #8
0
 public static void ProcessPrintOutputController(PrintOutputController poc, Utf8JsonWriter jsonw)
 {
     ReportDefModel.ProcessPrintOptions(poc.GetPrintOptions(), jsonw);
     ReportDefModel.ProcessSavedXMLExportFormats(poc.GetSavedXMLExportFormats(), jsonw);
 }