コード例 #1
0
        /// <summary>
        /// 获取图形对应的线路信息
        /// </summary>
        /// <param name="graphicsbaseinfrequest"></param>
        /// <returns></returns>
        public BasicResponse <DataTable> GetMapRoutesInfo(GetMapRoutesInfoRequest graphicsbaseinfrequest)
        {
            var response = new BasicResponse <DataTable>();

            if (string.IsNullOrWhiteSpace(graphicsbaseinfrequest.GraphId))
            {
                response.Code    = -100;
                response.Message = "参数错误!";
                return(response);
            }
            try
            {
                var graphicsrouteinfData = _Repository.GetMapRoutesInfo(graphicsbaseinfrequest.GraphId);
                response.Data = graphicsrouteinfData;
            }
            catch (Exception ex)
            {
                response.Code    = -100;
                response.Message = ex.Message;
                this.ThrowException("GetMapRoutesInfo-获取图形对应的线路信息", ex);
            }

            return(response);
        }
コード例 #2
0
        public BasicResponse <DataTable> GetMapRoutesInfo(GetMapRoutesInfoRequest graphicsbaseinfrequest)
        {
            var responsestr = HttpClientHelper.Post(Webapi + "/v1/graphicsbaseinf/getmaproutesinfo?token=" + Token, JSONHelper.ToJSONString(graphicsbaseinfrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <DataTable> >(responsestr));
        }
コード例 #3
0
 public BasicResponse <DataTable> GetMapRoutesInfo(GetMapRoutesInfoRequest graphicsbaseinfrequest)
 {
     return(graphicsbaseinfService.GetMapRoutesInfo(graphicsbaseinfrequest));
 }