Esempio n. 1
0
        /// <summary>
        /// 修改实时岗位异常报警信息措施信息
        /// </summary>
        /// <param name="id">异常报警信息id</param>
        /// <param name="measure">措施内容</param>
        /// <returns>返回影响的行数</returns>
        public int UpdateRealTimePostAlarmInfoMeasure(int id, string measure)
        {

            if (dal == null)
                dal = new RealTimePostDAL();
            return dal.UpdateRealTimePostAlarmInfoMeasure(id, measure);
        }
Esempio n. 2
0
        /// <summary>
        /// 删除(完成)实时岗位异常报警信息,再写入历史
        /// </summary>
        /// <param name="id">岗位异常报警信息Id</param>
        /// <returns>返回影响的行数</returns>
        public int DeleteRealTimePostAlarmInfoToHistory(int id)
        {
            if (dal == null)
                dal = new RealTimePostDAL();

            return dal.DeleteRealTimePostAlarmInfoToHistory(id);
        }
Esempio n. 3
0
        /// <summary>
        /// 查询岗位异常报警信息
        /// </summary>
        /// <returns>返回查询结果</returns>
        public DataTable SelectRealTimePostAlarmInfo(string condition)
        {
            if (dal == null)
                dal = new RealTimePostDAL();

            return dal.SelectRealTimePostAlarmInfo(condition);
        }