Exemplo n.º 1
0
        protected override InputTable GetNewInputTable()
        {
            Kernel.Domain.Report report = new Kernel.Domain.Report();
            report.name              = getNewPageName("Report");
            report.active            = true;
            report.visibleInShortcut = true;
            report.group             = GetInputTableService().GroupService.getDefaultGroup();

            return(report);
        }
Exemplo n.º 2
0
        public void updateReportList(int?reportOid)
        {
            if (reportOid == null)
            {
                return;
            }
            PresentationEditorItem page = (PresentationEditorItem)getPresentationEditor().getActivePage();

            if (page == null)
            {
                return;
            }
            Kernel.Domain.Report report = (Kernel.Domain.Report)GetPresentationService().ReportService.getByOid(reportOid.Value);
            page.getPresentationForm().PresentationPropertiesPanel.updateReportList((Kernel.Domain.Report)report);
        }
Exemplo n.º 3
0
        public override InputTable getByOid(int oid)
        {
            try
            {
                var          request1    = new RestRequest(ResourcePath + "/" + oid, Method.GET);
                RestResponse queryResult = (RestResponse)RestClient.Execute(request1);

                JavaScriptSerializer Serializer = new JavaScriptSerializer();
                Serializer.MaxJsonLength = int.MaxValue;
                Kernel.Domain.Report value = Serializer.Deserialize <Kernel.Domain.Report>(queryResult.Content);
                return(value);
            }
            catch (Exception e)
            {
                logger.Error("Unable to retrieve Report from server.", e);
                throw new ServiceExecption("Unable to retrieve Report from server.", e);
            }
        }
Exemplo n.º 4
0
 public void updateReportList(Kernel.Domain.Report Report)
 {
     this.InputTableGroup.InputTableTreeview.AddInputTable(Report);
 }