/*
         * public List<FolderItem> GetFolderList(string token,int type)
         * {
         *  ReportDesignerFacade rdf = new ReportDesignerFacade(token);
         *
         *  return rdf.GetFolderList(type);
         * }
         */

        public List <KendoTreeItem> GetFileTree(string token, int type)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            return(rdf.GetFileTree(type));
        }
        public void SaveFavoriteReport(string token, string reportId, int docType)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            rdf.SaveFavoriteReport(reportId, docType);
        }
        /*
         * [HttpGet]
         * public void SaveFavoriteMetro(string userId, string reportId)
         * {
         *  ReportDesignerFacade rdf = new ReportDesignerFacade();
         *
         *  rdf.SaveFavoriteMetro(userId,reportId);
         * }
         *
         * [HttpGet]
         * public void SaveFavoriteReport(string userId, string reportId)
         * {
         *  ReportDesignerFacade rdf = new ReportDesignerFacade();
         *
         *  rdf.SaveFavoriteReport(userId,reportId);
         * }
         *
         * [HttpGet]
         * public void SaveFavoriteAdhocQuery(string userId, string reportId)
         * {
         *  ReportDesignerFacade rdf = new ReportDesignerFacade();
         *
         *  rdf.SaveFavoriteAdhocQuery(userId,reportId);
         * }*/



        public List <ReportEngine.Designtime.ReportBusinessItem> GetReportList(string token, string folderId)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            return(rdf.GetReportList(folderId));
        }
        public string GetReportName(string token, string reportId)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            return(rdf.GetReportName(reportId));
        }
        public void DeleteFolder(string folderId, string token)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            rdf.DeleteFolder(folderId);
        }
        public void DeleteUserReport(string reportId, string token, int documentType)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            rdf.DeleteUserReport(reportId, documentType);
        }
        /* 此接口针对UPCloud Report*/
        public ReportFilterContext GetReportFilterContext(string reportId)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(string.Empty);

            return(rdf.GetReportFilterContext(reportId));
        }
        public List <ReportBusinessItem> GetHistoryReportList(string token)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            return(rdf.GetHistoryReportList());
        }
        public List <ReportBusinessItem> GetFavoriteQueryList(string token)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            return(rdf.GetFavoriteReportList(1));
        }
        public H5ReportMenu GetH5MenuItemList(string reportId, string token)
        {
            ReportDesignerFacade rdf = new ReportDesignerFacade(token);

            return(rdf.GetH5MenuItemList());
        }