Пример #1
0
        /// <summary>
        /// 根据性质获取种类
        /// </summary>
        /// <param name="sProperty">性质</param>
        /// <returns></returns>
        public static DataTable GetClassByProperty(string sProperty)
        {
            DataTable dt = new DataTable();

            try
            {
                var requst = new GetClassByPropertyRequest()
                {
                    Type = sProperty
                };
                var response = alarmService.GetClassByProperty(requst);
                if (response.Data != null)
                {
                    dt = response.Data;
                }
            }
            catch (Exception ex)
            {
                LogHelper.Error("ClientAlarmServer-GetClassByProperty-发生异常 " + ex.Message);
            }
            return(dt);
        }
Пример #2
0
 public BasicResponse <DataTable> GetClassByProperty(GetClassByPropertyRequest alarmRequest)
 {
     return(alarmService.GetClassByProperty(alarmRequest));
 }