public IHttpActionResult GetReadings(string itemKey) { QalGraph graphModule = ModuleHub.Instance.GetModule <QalGraph>(); List <Reading> readings = graphModule.GetReadings(itemKey); return(Ok(new { readings = readings })); }
public IHttpActionResult GetResumeNewDatabase(int ItemId) { QalGraph graphModule = ModuleHub.Instance.GetModule <QalGraph>(); var resume = graphModule.GetSummary(ItemId); return(Ok(new { resume = resume })); }
public IHttpActionResult GetResumeOldDatabase(int mID) { QalGraph graphModule = ModuleHub.Instance.GetModule <QalGraph>(); var resume = graphModule.GetResumeOldDatabase(mID); return(Ok(new { resume = resume })); }
public HttpResponseMessage TestWithNewDatabaseZero(string itemKey, DateTime?fromdate, DateTime?todate) { try { QalGraph graphModule = ModuleHub.Instance.GetModule <QalGraph>(); QalGraphDataContainer container = graphModule.GetZeroGraphData(itemKey); return(Request.CreateResponse(HttpStatusCode.OK, container)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }
public HttpResponseMessage TestWithDatabaseZero(int objectId, int?scale, DateTime?fromdate, DateTime?todate) { try { QalGraph graphModule = ModuleHub.Instance.GetModule <QalGraph>(); List <Trace <DateTime, decimal> > traceListTest = graphModule.TestWithDatabaseZero(1080, fromdate, todate); return(Request.CreateResponse(HttpStatusCode.OK, traceListTest)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }
public HttpResponseMessage TestWithHardCode(int objectId, int?scale, DateTime?fromdate, DateTime?todate) { try { QalGraph graphModule = ModuleHub.Instance.GetModule <QalGraph>(); Guid id = Guid.NewGuid(); DateTime?inspectionDateFrom = null; DateTime?inspectionDateTo = null; List <Trace <string, decimal> > traceListTest = graphModule.TestWithHardCode(objectId, inspectionDateFrom, inspectionDateTo); return(Request.CreateResponse(HttpStatusCode.OK, traceListTest)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }