Beispiel #1
0
        /// <summary>
        /// 获取指定时间后更新的区域信息
        /// </summary>
        /// <param name="pId">设备ID</param>
        /// <param name="getTime">获取时间</param>
        /// <param name="maxId">当前获取到的区域信息索引</param>
        /// <returns></returns>
        public ResultModel <List <PDA_Model_Region> > GetNewRegions(int pId, DateTime getTime, int maxId)
        {
            ResultModel <List <PDA_Model_Region> > result = new ResultModel <List <PDA_Model_Region> >();

            try
            {
                result.Data = PDA_RangeServer.GetNewRegions(getTime, maxId);
            }
            catch (Exception ex)
            {
                HandleExcepthin(result, ex);
            }
            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// 根据设备ID获取其负责区域 弃用
        /// </summary>
        /// <param name="pId"></param>
        /// <returns></returns>
        public ResultModel <List <PDA_Model_Region> > GetRegions(int pId)
        {
            ResultModel <List <PDA_Model_Region> > result = new ResultModel <List <PDA_Model_Region> >();

            try
            {
                result.Data = PDA_RangeServer.GetRangeByPId(pId);
            }
            catch (Exception ex)
            {
                HandleExcepthin(result, ex);
            }
            return(result);
        }