コード例 #1
0
        /// <summary>
        /// 获取所有活动点
        /// </summary>
        /// <param name="SzNameS"></param>
        /// <param name="SzNameE"></param>
        /// <param name="Type"></param>
        /// <param name="PointIDList"></param>
        /// <param name="DevList"></param>
        /// <param name="WzList"></param>
        /// <returns></returns>
        public List <string> GetActivePointList(int Type, ref List <string> PointIDList,
                                                ref List <string> DevList, ref List <string> WzList)
        {
            var ReturnStr = new List <string>();
            var dt        = new DataTable();

            try
            {
                PointIDList.Clear();
                DevList.Clear();
                WzList.Clear();
                GetPointCacheByDevpropertIDRequest request = new GetPointCacheByDevpropertIDRequest();
                request.DevpropertID = Type;
                var res = _chartService.QueryPointCacheByDevpropertID(request);
                if (!res.IsSuccess)
                {
                    throw new Exception(res.Message);
                }
                res.Data = res.Data.OrderBy(a => a.Point).ToList();
                if (res.Data != null)
                {
                    foreach (Jc_DefInfo point in res.Data)
                    {
                        ReturnStr.Add(point.Point + "." + point.Wz + "[" + point.DevName + "]");
                        PointIDList.Add(point.PointID);
                        DevList.Add(point.Devid);
                        WzList.Add(point.Wzid);
                    }
                }
            }
            catch (Exception Ex)
            {
                LogHelper.Error("QueryConditions_GetPointList" + Ex.Message + Ex.StackTrace);
            }
            return(ReturnStr);
        }
コード例 #2
0
 public Basic.Framework.Web.BasicResponse <List <Sys.Safety.DataContract.Jc_DefInfo> > QueryPointCacheByDevpropertID(GetPointCacheByDevpropertIDRequest request)
 {
     return(_chartService.QueryPointCacheByDevpropertID(request));
 }
コード例 #3
0
        public BasicResponse <List <Jc_DefInfo> > QueryPointCacheByDevpropertID(GetPointCacheByDevpropertIDRequest request)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Chart/QueryPointCacheByDevpropertID?token=" + Token, JSONHelper.ToJSONString(request));

            return(JSONHelper.ParseJSONString <BasicResponse <List <Jc_DefInfo> > >(responseStr));
        }