/// <summary> /// 获取图形上的所有测点信息 /// </summary> /// <returns></returns> public BasicResponse <DataTable> GetAllPointInMap(GetAllPointInMapRequest graphicsbaseinfrequest) { var response = new BasicResponse <DataTable>(); if (string.IsNullOrWhiteSpace(graphicsbaseinfrequest.GraphId)) { response.Code = -100; response.Message = "参数错误!"; return(response); } try { response.Data = _Repository.GetAllPointInMap(graphicsbaseinfrequest.GraphId); } catch (Exception ex) { response.Code = -100; response.Message = ex.Message; this.ThrowException("GetAllPointInMap-获取图形上的所有测点信息", ex); } return(response); }
/// <summary> /// 返回图形测点列表 /// </summary> /// <returns></returns> private DataTable getAllPointInMap() { GraphicsbaseinfInfo GraphicsbaseinfDTO_ = new GraphicsbaseinfInfo(); DataTable pointsdt = new DataTable(); try { GraphicsbaseinfDTO_ = getGraphicDto(Program.main.GraphOpt.GraphNameNow); //先删除图形原有的绑定测点信息 var getAllPointInMapRequest = new GetAllPointInMapRequest() { GraphId = GraphicsbaseinfDTO_.GraphId }; var getAllPointInMapResponse = graphicsbaseinfService.GetAllPointInMap(getAllPointInMapRequest); pointsdt = getAllPointInMapResponse.Data; } catch (Exception ex) { LogHelper.Error("RefPointSsz-getAllPointInMap" + ex.Message + ex.StackTrace); } return(pointsdt); }
public BasicResponse <DataTable> GetAllPointInMap(GetAllPointInMapRequest graphicsbaseinfrequest) { var responsestr = HttpClientHelper.Post(Webapi + "/v1/graphicsbaseinf/getallpointinmap?token=" + Token, JSONHelper.ToJSONString(graphicsbaseinfrequest)); return(JSONHelper.ParseJSONString <BasicResponse <DataTable> >(responsestr)); }
public BasicResponse <DataTable> GetAllPointInMap(GetAllPointInMapRequest graphicsbaseinfrequest) { return(graphicsbaseinfService.GetAllPointInMap(graphicsbaseinfrequest)); }