Пример #1
0
        public BurnReport GetBurnDetails(string tfsUrlPath, string projectName, BurnRetrievalOptions filter, string Query)
        {
            this.Connect(tfsUrlPath, projectName);

            this.PopulateFilterData(filter);
            QueryResult result     = server.Execute(QueryStore.GetBurnQuery(filter, Query), filter.DateRange, true);
            BurnReport  burnReport = reportEngine.CompileBurnData(result, filter, tfsUrlPath, projectName);

            //Naresh Code
            ViewType currentViewType = ViewType.Resource;

            if (burnReport != null)
            {
                burnReport.SetView(currentViewType, filter.Team.Members);
            }

            foreach (Item item in burnReport.AllItems)
            {
                ResourceBurnDetails resBurnDetails = new DataModel.ResourceBurnDetails();
                item.GetResourceBDTString(resBurnDetails);
                burnReport.ResourceBurnDetails.Add(resBurnDetails);
            }

            return(burnReport);

            //End of Naresh Code
        }
Пример #2
0
        public BurnReport GetBurnDetails(BurnRetrievalOptions filter)
        {
            QueryResult result = server.Execute(QueryStore.GetBurnQueryOLD(filter), filter.DateRange, true);

            return(reportEngine.CompileBurnData(result, filter, "", ""));
        }