コード例 #1
0
        public string RenderReportByGUID(string reportGuid)
        {
            Feedback feed;
            try
            {
                ReportManager reportManager = new ReportManager();

                Report reportItem = reportManager.RenderReportByGUID(new Guid(reportGuid));

                feed = new Feedback(Feedback.TypeFeedback.Success, String.Empty, reportItem);
            }
            catch (Exception ex)
            {
                feed = new Feedback(Feedback.TypeFeedback.Error, ex.Message, null);
            }
            string xmlObject = JsonHelper.ConvertToJSON(feed);
            return GZipHelper.Compress(xmlObject);
        }
コード例 #2
0
        public string RenderReports(string serializedReportContainer)
        {
            Feedback feed;
            try
            {
                ReportManager reportManager = new ReportManager();
                ReportsContainer reportContainer = JsonHelper.ConvertToObject<ReportsContainer>(serializedReportContainer);

                reportContainer = reportManager.RenderReports(reportContainer);

                feed = new Feedback(Feedback.TypeFeedback.Success, String.Empty, reportContainer);
            }
            catch (Exception ex)
            {
                feed = new Feedback(Feedback.TypeFeedback.Error, ex.Message, null);
            }
            string xmlObject = JsonHelper.ConvertToJSON(feed);
            return GZipHelper.Compress(xmlObject);
        }