Ejemplo n.º 1
0
        /// <summary>
        /// 增加HisPathAlert
        /// </summary>
        /// <param name="hisPathAlert">历史线路报警类对象</param>
        /// <returns>此次操作影响的行数</returns>
        public int InsertHisPathAlert(HisPathAlertModel hisPathAlert)
        {
            if (hisPathAlertDal == null)
            {
                hisPathAlertDal = new HisPathAlertDal();
            }

            int result = hisPathAlertDal.InsertHisPathAlert(hisPathAlert);

            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除HisPathAlert
        /// </summary>
        /// <param name="id">记录Id</param>
        /// <returns>此次操作影响的行数</returns>
        public int DeleteHisPathAlert(int id)
        {
            if (hisPathAlertDal == null)
            {
                hisPathAlertDal = new HisPathAlertDal();
            }

            int result = hisPathAlertDal.DeleteHisPathAlert(id);

            return(result);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 增加HisPathAlert
        /// </summary>
        /// <param name="strCondition">查询条件</param>
        /// <returns>返回的记录表信息</returns>
        public DataTable SelectHisPathAlert(string strCondition)
        {
            if (hisPathAlertDal == null)
            {
                hisPathAlertDal = new HisPathAlertDal();
            }

            DataTable dt = hisPathAlertDal.SelectHisPathAlert(strCondition);

            return(dt);
        }