Exemple #1
0
        /// <summary>
        /// 删除设备下的
        /// </summary>
        /// <param name="serverid"></param>
        /// <param name="deviceid"></param>
        /// <returns></returns>
        public bool DeleteDevice(string serverid, string deviceid)
        {
            //该表无主键信息,请自定义主键/条件字段
            bool res = dal.DeleteDevice(serverid, deviceid);

            if (res)
            {
                alarmBll.DeleteDevice(serverid, deviceid);
            }
            return(res);
        }
Exemple #2
0
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string IO_SERVER_ID, string IO_DEVICE_ID)
        {
            //该表无主键信息,请自定义主键/条件字段
            bool res = dal.Delete(IO_DEVICE_ID);

            if (res)
            {
                paraDal.DeleteDevice(IO_SERVER_ID, IO_DEVICE_ID);
                configDal.DeleteDevice(IO_SERVER_ID, IO_DEVICE_ID);
            }
            return(res);
        }