public BasicResponse <string[]> ShowPointInf(ShowPointInfRequest request) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/Chart/ShowPointInf?token=" + Token, JSONHelper.ToJSONString(request)); return(JSONHelper.ParseJSONString <BasicResponse <string[]> >(responseStr)); }
/// <summary> /// 获取测点的基本信息 /// </summary> /// <param name="showpoint"></param> /// <param name="showdate"></param> public string[] ShowPointInf(string CurrentWzid, string CurrentPointId) { var QueryStr = new string[13]; for (var i = 0; i <= 12; i++) { QueryStr[i] = ""; } try { //QueryStr = ServiceFactory.CreateService<IChartService>().ShowPointInf(CurrentWzid, CurrentDevid); var req = new ShowPointInfRequest { CurrentWzid = CurrentWzid, CurrentPointId = CurrentPointId }; var res = _chartService.ShowPointInf(req); if (!res.IsSuccess) { throw new Exception(res.Message); } QueryStr = res.Data; } catch (Exception Ex) { LogHelper.Error("FiveMiniteLineQueryClass_ShowPointInf" + Ex.Message + Ex.StackTrace); } return(QueryStr); }