Exemple #1
0
        /// <summary>
        /// 检查统计数据表中当前消息存在该功能统计
        /// </summary>
        /// <param name="funcID">功能id</param>
        /// <param name="funcType">功能类型</param>
        /// <param name="msgID">消息id</param>
        /// <returns></returns>
        public bool AddStatisticChecked(string funcID, string funcType, string msgID)
        {
            QYStatisticDA qyStatisticDA  = new QYStatisticDA();
            int           statisticCount = 0;
            DataTable     dt             = qyStatisticDA.AddStatisticChecked(funcID, funcType, msgID);

            if (dt != null)
            {
                statisticCount = int.Parse(dt.Rows[0][0].ToString());
            }

            return(statisticCount > 0 ? true : false);
        }
Exemple #2
0
 /// <summary>
 /// 增加单个统计项
 /// </summary>
 /// <param name="funcID">功能id</param>
 /// <param name="memberID">成员主键</param>
 /// <param name="funcType">功能类型</param>
 /// <param name="msgID">消息id</param>
 /// <param name="userID">操作人员id</param>
 /// <returns></returns>
 private bool AddStatistic(string funcID, string memberID, string funcType, string msgID, string userID)
 {
     try
     {
         QYStatisticDA qyStatisticDA = new QYStatisticDA();
         qyStatisticDA.AddStatistic(funcID, memberID, funcType, msgID, userID);
         return(true);
     }
     catch (Exception e)
     {
         Logger.Log4Net.Error("add statistic error:" + e);
         return(false);
     }
 }