Exemple #1
0
        public MainWindow()
        {
            this.DataContext = this;

            InitializeComponent();

            this.Services = BackstopRestReportUri.SupportedMethods().Select(u => u.Service).Distinct().ToList();
        }
Exemple #2
0
        /// <summary>
        ///     Get the list of supported reporting methods supported via the REST API.
        /// </summary>
        /// <returns></returns>
        public static List <BackstopRestReportUri> SupportedMethods()
        {
            var methods = new BackstopRestReportUri[]
            {
                new BackstopRestReportUri("crm", "runPeopleOrgsReport"),
                new BackstopRestReportUri("crm", "runActivityReport"),
                new BackstopRestReportUri("crm", "runOpportunityReport"),
                new BackstopRestReportUri("crm", "runTaskReport"),
                new BackstopRestReportUri("assetGroup", "getAllAssetGroupIds"),
                new BackstopRestReportUri("assetGroup", "getAllAssetTypes"),
                new BackstopRestReportUri("assetGroup", "getAllAssetTypesById"),
                new BackstopRestReportUri("assetGroup", "getPerformanceForAllAssetTypeLevelsByAssetGroup"),
                new BackstopRestReportUri("assetGroup", "getAssetGroupTransactions"),
                new BackstopRestReportUri("assetGroup", "getCumAndAnnBenchmarkValuesAsset"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupReport"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupParticipantTransactionsReport"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupParticipantReport"),
                new BackstopRestReportUri("assetGroup", "runAssetTypeLevelAssetGroupReport"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupWeightedBenchmarkReport"),
                new BackstopRestReportUri("assetGroup", "getAssetGroupWeightedBenchmarkVAMIvalues"),
                new BackstopRestReportUri("assetGroup", "getAssetGroupParticipantBalanceCarryForwardInfo"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupBenchmarksReport"),
                new BackstopRestReportUri("assetGroup", "getAllAssetGroupSubGroupIds"),
                new BackstopRestReportUri("investor", "runAccountsQuery"),
                new BackstopRestReportUri("investor", "runInvestorTransactionsQuery"),
                new BackstopRestReportUri("investor", "runAssetGroupQuery"),
                new BackstopRestReportUri("investor", "runTrancheQuery"),
                new BackstopRestReportUri("investor", "runShareSeriesQuery"),
                new BackstopRestReportUri("portfolio", "runHoldingsReport"),
                new BackstopRestReportUri("portfolio", "runFundsReport"),
                new BackstopRestReportUri("portfolio", "runPortfolioTransactionsReport"),
                new BackstopRestReportUri("portfolio", "runProductsReport"),
                new BackstopRestReportUri("portfolio", "runPortfolioPlansReport"),
                new BackstopRestReportUri("portfolio", "runPortfolioPlanInvestmentsReport"),
                new BackstopRestReportUri("portfolio", "runBenchmarksReport"),
                new BackstopRestReportUri("portfolio", "runGeneralLedgerEntriesReport"),
                new BackstopRestReportUri("portfolio", "runGeneralLedgerSourceAccountReport"),
                new BackstopRestReportUri("portfolio", "runSwapsReport"),
                new BackstopRestReportUri("relationship", "runFundRelationshipReport"),
                new BackstopRestReportUri("relationship", "runGeneralRelationshipReport"),
                new BackstopRestReportUri("relationship", "runRelationshipDeliveryMethodReport"),
            };

            var list = methods.ToList();

            list.Sort((lhs, rhs) => {
                int i = lhs.Service.CompareTo(rhs.Service);
                if (i == 0)
                {
                    return(lhs.Method.CompareTo(rhs.Method));
                }
                return(i);
            });
            return(list);
        }
Exemple #3
0
        static void SelectedServiceChanged(DependencyObject source, DependencyPropertyChangedEventArgs args)
        {
            var this_ = (MainWindow)source;

            this_.SelectedMethod = null;

            string value = (string)args.NewValue;

            if (string.IsNullOrEmpty(value))
            {
                this_.Methods = new List <BackstopRestReportUri>();
            }
            else
            {
                this_.Methods = BackstopRestReportUri.SupportedMethods().Where(u => u.Service == value).ToList();
            }
        }
        /// <summary>
        ///     Get the list of supported reporting methods supported via the REST API.
        /// </summary>
        /// <returns></returns>
        public static List<BackstopRestReportUri> SupportedMethods()
        {
            var methods = new BackstopRestReportUri[]
            {
                new BackstopRestReportUri("crm", "runPeopleOrgsReport"),
                new BackstopRestReportUri("crm", "runActivityReport"),
                new BackstopRestReportUri("crm", "runOpportunityReport"),
                new BackstopRestReportUri("crm", "runTaskReport"),
                new BackstopRestReportUri("assetGroup", "getAllAssetGroupIds"),
                new BackstopRestReportUri("assetGroup", "getAllAssetTypes"),
                new BackstopRestReportUri("assetGroup", "getAllAssetTypesById"),
                new BackstopRestReportUri("assetGroup", "getPerformanceForAllAssetTypeLevelsByAssetGroup"),
                new BackstopRestReportUri("assetGroup", "getAssetGroupTransactions"),
                new BackstopRestReportUri("assetGroup", "getCumAndAnnBenchmarkValuesAsset"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupReport"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupParticipantTransactionsReport"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupParticipantReport"),
                new BackstopRestReportUri("assetGroup", "runAssetTypeLevelAssetGroupReport"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupWeightedBenchmarkReport"),
                new BackstopRestReportUri("assetGroup", "getAssetGroupWeightedBenchmarkVAMIvalues"),
                new BackstopRestReportUri("assetGroup", "getAssetGroupParticipantBalanceCarryForwardInfo"),
                new BackstopRestReportUri("assetGroup", "runAssetGroupBenchmarksReport"),
                new BackstopRestReportUri("assetGroup", "getAllAssetGroupSubGroupIds"),
                new BackstopRestReportUri("investor", "runAccountsQuery"),
                new BackstopRestReportUri("investor", "runInvestorTransactionsQuery"),
                new BackstopRestReportUri("investor", "runAssetGroupQuery"),
                new BackstopRestReportUri("investor", "runTrancheQuery"),
                new BackstopRestReportUri("investor", "runShareSeriesQuery"),
                new BackstopRestReportUri("portfolio", "runHoldingsReport"),
                new BackstopRestReportUri("portfolio", "runFundsReport"),
                new BackstopRestReportUri("portfolio", "runPortfolioTransactionsReport"),
                new BackstopRestReportUri("portfolio", "runProductsReport"),
                new BackstopRestReportUri("portfolio", "runPortfolioPlansReport"),
                new BackstopRestReportUri("portfolio", "runPortfolioPlanInvestmentsReport"),
                new BackstopRestReportUri("portfolio", "runBenchmarksReport"),
                new BackstopRestReportUri("portfolio", "runGeneralLedgerEntriesReport"),
                new BackstopRestReportUri("portfolio", "runGeneralLedgerSourceAccountReport"),
                new BackstopRestReportUri("portfolio", "runSwapsReport"),
                new BackstopRestReportUri("relationship", "runFundRelationshipReport"),
                new BackstopRestReportUri("relationship", "runGeneralRelationshipReport"),
                new BackstopRestReportUri("relationship", "runRelationshipDeliveryMethodReport"),
            };

            var list = methods.ToList();
            list.Sort((lhs, rhs) => {
                int i = lhs.Service.CompareTo(rhs.Service);
                if (i == 0)
                    return lhs.Method.CompareTo(rhs.Method);
                return i;
            });
            return list;
        }