public Basic.Framework.Web.BasicResponse <string> GetKzlStateLineDt(GetStateLineDtRequest request) { var res = _chartService.GetKzlStateLineDt(request); return(new BasicResponse <string>() { Data = ObjectConverter.ToBase64String(res.Data) }); }
public BasicResponse <DataTable> GetKzlStateLineDt(GetStateLineDtRequest request) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/Chart/GetKzlStateLineDt?token=" + Token, JSONHelper.ToJSONString(request)); var res = JSONHelper.ParseJSONString <BasicResponse <string> >(responseStr); var resZh = ObjectConverter.FromBase64String <DataTable>(res.Data); return(new BasicResponse <DataTable> { Data = resZh }); }
/// <summary> /// 获取控制量状态变动曲线 /// </summary> /// <param name="SzNameS"></param> /// <param name="SzNameE"></param> /// <param name="CurrentPointID"></param> /// <param name="CurrentDevid"></param> /// <param name="CurrentWzid"></param> /// <returns></returns> public DataTable getKzlStateLineDt(DateTime SzNameT, string CurrentPointID, string CurrentDevid, string CurrentWzid, bool kglztjsfs) { var dtR = new DataTable(); // dtR.Columns.Add("C"); dtR.Columns.Add("D"); dtR.Columns.Add("E"); dtR.Columns.Add("sTimer", typeof(DateTime)); dtR.Columns.Add("eTimer", typeof(DateTime)); dtR.Columns.Add("stateName"); try { //dtR = ServiceFactory.CreateService<IChartService>() // .getStateLineDt(SzNameT, CurrentPointID, CurrentDevid, CurrentWzid, kglztjsfs); var req = new GetStateLineDtRequest { SzNameT = SzNameT, CurrentPointID = CurrentPointID, CurrentDevid = CurrentDevid, CurrentWzid = CurrentWzid, kglztjsfs = kglztjsfs }; var res = _chartService.GetKzlStateLineDt(req); if (!res.IsSuccess) { throw new Exception(res.Message); } dtR = res.Data; } catch (Exception Ex) { LogHelper.Error("getKzlStateLineDt" + Ex.Message + Ex.StackTrace); } return(dtR); }
BasicResponse <DataTable> IChartService.GetKzlStateLineDt(GetStateLineDtRequest request) { throw new NotImplementedException(); }