/// <summary> /// 根据图形名称获取图形DTO对象 /// </summary> /// <param name="GraphName"></param> /// <returns></returns> private GraphicsbaseinfInfo getGraphicDto(string GraphName) { GraphicsbaseinfInfo Rvalue = new GraphicsbaseinfInfo(); try { var getGraphicsbaseinfByNameRequest = new GetGraphicsbaseinfByNameRequest() { GraphName = GraphName }; var getGraphicsbaseinfByNameResponse = graphicsbaseinfService.GetGraphicsbaseinfByName(getGraphicsbaseinfByNameRequest); Rvalue = getGraphicsbaseinfByNameResponse.Data; } catch (Exception ex) { LogHelper.Error("RefPointSsz-getGraphicDto" + ex.Message + ex.StackTrace); } return(Rvalue); }
/// <summary> /// 根据图形名称获取图形信息 /// </summary> /// <param name="graphicsbaseinfrequest"></param> /// <returns></returns> public BasicResponse <GraphicsbaseinfInfo> GetGraphicsbaseinfByName(GetGraphicsbaseinfByNameRequest graphicsbaseinfrequest) { var response = new BasicResponse <GraphicsbaseinfInfo>(); if (string.IsNullOrWhiteSpace(graphicsbaseinfrequest.GraphName)) { response.Code = -100; response.Message = "参数错误!"; return(response); } try { var graphicsbaseinfModel = _Repository.GetGraphicsbaseinfByName(graphicsbaseinfrequest.GraphName); var graphicsbaseinfInfo = ObjectConverter.Copy <GraphicsbaseinfModel, GraphicsbaseinfInfo>(graphicsbaseinfModel); response.Data = graphicsbaseinfInfo; } catch (Exception ex) { response.Code = -100; response.Message = ex.Message; this.ThrowException("GetGraphicsbaseinfByName-根据图形名称获取图形信息发生异常", ex); } return(response); }
public BasicResponse <GraphicsbaseinfInfo> GetGraphicsbaseinfByName(GetGraphicsbaseinfByNameRequest graphicsbaseinfrequest) { var responsestr = HttpClientHelper.Post(Webapi + "/v1/graphicsbaseinf/getbyname?token=" + Token, JSONHelper.ToJSONString(graphicsbaseinfrequest)); return(JSONHelper.ParseJSONString <BasicResponse <GraphicsbaseinfInfo> >(responsestr)); }
public BasicResponse <GraphicsbaseinfInfo> GetGraphicsbaseinfByName(GetGraphicsbaseinfByNameRequest graphicsbaseinfrequest) { return(graphicsbaseinfService.GetGraphicsbaseinfByName(graphicsbaseinfrequest)); }