Beispiel #1
0
        public virtual HttpResponseMessage GetModellingReportData(string reportid, string projectid)
        {
            DataSet dsModellingReportData = new DataSet();

            try
            {
                ASD.BW.Models.Modelling.Modelling bw = new ASD.BW.Models.Modelling.Modelling();
                dsModellingReportData = bw.GetModellingReportData(reportid, projectid);
            }
            catch (Exception ex)
            {
                errlog.Log("BW", "Error", ex.Message, "ApiControllerClass", "GetModellingReportData");
            }
            return(Request.CreateResponse(HttpStatusCode.OK, dsModellingReportData));
        }
Beispiel #2
0
        public HttpResponseMessage GetCioDetailsData(string cioinfoobject, string cioreportid, string ciotransferid, string projectid)
        {
            DataTable dtCIODetailsData = new DataTable();

            try
            {
                ASD.BW.Models.Modelling.Modelling bw = new ASD.BW.Models.Modelling.Modelling();
                dtCIODetailsData = bw.GetCioDetailsData(cioinfoobject, cioreportid, ciotransferid, projectid);
            }
            catch (Exception ex)
            {
                errlog.Log("BW", "Error", ex.Message, "ApiControllerClass", "GetCioDetailsData");
            }

            return(Request.CreateResponse(HttpStatusCode.OK, dtCIODetailsData));
        }
Beispiel #3
0
        public HttpResponseMessage GetInfosetDetails(string isInfocube, string isInfoobject, string isDso, string projectid)
        {
            DataTable dtInfosetDetails = new DataTable();

            try
            {
                ASD.BW.Models.Modelling.Modelling bw = new ASD.BW.Models.Modelling.Modelling();
                dtInfosetDetails = bw.GetInfosetDetails(isInfocube, isInfoobject, isDso, projectid);
            }
            catch (Exception ex)
            {
                errlog.Log("BW", "Error", ex.Message, "ApiControllerClass", "GetCioDetailsData");
            }

            return(Request.CreateResponse(HttpStatusCode.OK, dtInfosetDetails));
        }
Beispiel #4
0
        public HttpResponseMessage GetCioAnalysisData(string projectId)
        {
            var lstCioAnalysisData = new List <List <CIOAnalysis> >();

            try
            {
                ASD.BW.Models.Modelling.Modelling bw = new ASD.BW.Models.Modelling.Modelling();
                lstCioAnalysisData = bw.GetCioAnalysisData(projectId);
                if (!lstCioAnalysisData.Any())
                {
                    string message = string.Format("No Record found with ID = {0}", projectId);
                    return(Request.CreateErrorResponse(HttpStatusCode.NotFound, message));
                }
            }
            catch (Exception ex)
            {
                errlog.Log("BW", "Error", ex.Message, "ApiControllerClass", "GetCioAnalysisData");
            }
            return(Request.CreateResponse(HttpStatusCode.OK, lstCioAnalysisData));
        }