Ejemplo n.º 1
0
        /// <summary> 通过分站号、通道号 地址号查找设备
        /// </summary>
        /// <param name="fzh"></param>
        /// <param name="kh"></param>
        /// <param name="DevPropertID"></param>
        /// <returns></returns>
        public static Jc_DefInfo QueryPointByChannelInfs(int fzh, int kh, int dzh, int DevPropertID)
        {
            PointDefineGetByStationIDChannelIDAddressIDDevPropertIDRequest PointDefineRequest = new PointDefineGetByStationIDChannelIDAddressIDDevPropertIDRequest();

            PointDefineRequest.StationID    = fzh;
            PointDefineRequest.ChannelID    = kh;
            PointDefineRequest.AddressID    = dzh;
            PointDefineRequest.DevPropertID = DevPropertID;
            var result = _PointDefineService.GetPointDefineCacheByStationIDChannelIDAddressIDDevPropertID(PointDefineRequest);

            if (result.IsSuccess == true)
            {
                if (result.Data.Count > 0)
                {
                    return(result.Data[0]);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                throw new Exception(result.Message);
            }
        }
 public BasicResponse <List <Jc_DefInfo> > GetPointDefineCacheByStationIDChannelIDAddressIDDevPropertID(PointDefineGetByStationIDChannelIDAddressIDDevPropertIDRequest PointDefineRequest)
 {
     return(_PointDefineService.GetPointDefineCacheByStationIDChannelIDAddressIDDevPropertID(PointDefineRequest));
 }