Example #1
0
        /// <summary>
        /// 根据设备性质来获取设备性质对应的状态类型
        /// </summary>
        /// <param name="sCode"></param>
        /// <param name="sName"></param>
        /// <returns></returns>
        public static DataTable GetAlarmTypeDataByProperty(string sCode, string sName)
        {
            DataTable dt  = new DataTable();
            string    sql = string.Empty;

            try
            {
                var resquest = new GetAlarmTypeDataByPropertyRequest();
                resquest.Code = sCode;
                resquest.Name = sName;
                var response = alarmService.GetAlarmTypeDataByProperty(resquest);
                if (response.Data != null)
                {
                    dt = response.Data;
                }
            }
            catch (Exception ex)
            {
                LogHelper.Error("ClientAlarmServer-GetAlarmTypeDataByProperty-发生异常 " + ex.Message);
            }
            return(dt);
        }
Example #2
0
 public BasicResponse <DataTable> GetAlarmTypeDataByProperty(GetAlarmTypeDataByPropertyRequest alarmRequest)
 {
     return(alarmService.GetAlarmTypeDataByProperty(alarmRequest));
 }