Beispiel #1
0
        /// <summary>
        /// 根据基础设备类型id查询设备设备图标路径
        /// </summary>
        /// <param name="path"></param>
        /// <param name="deviceTypeID"></param>
        /// <returns></returns>
        public ServDefinedDeviceModel GetDeviceIcon(int industryId, int deviceTypeID)
        {
            DefinedDeviceToolCustom query = new DefinedDeviceToolCustom();

            query.industry_id   = industryId;
            query.device_typeid = deviceTypeID;
            ServDefinedDeviceModel definedDevice = servDefinedDeviceDAL.GetDefinedDeviceByIndusryIdAndBaseDeviceTypeId(query);

            return(definedDevice);
        }
 /// <summary>
 /// 根据行业id和基础设备类型id获取设备图标路径
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public ServDefinedDeviceModel GetDefinedDeviceByIndusryIdAndBaseDeviceTypeId(DefinedDeviceToolCustom query)
 {
     try
     {
         return(mapContext.QueryForObject <ServDefinedDeviceModel>("GetDefinedDeviceByIndusryIdAndBaseDeviceTypeId", query));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }