/// <summary>
        /// 添加拖拽日志
        /// </summary>
        /// <param name="_DragLogInfo"></param>
        /// <returns></returns>
        public bool AddDragLog(DragLogInfo _DragLogInfo)
        {
            //String Sql = "insert into DragLog(UserID,DragTime,DragContent,IP) values (@UserID,@DragTime,@DragContent,@IP)";
            string Sql = "insert into DragLog (UserAccount,DragTime,DragContent,IP) values (@account,@DragTime,@DragContent,@IP)";

            SqlParameter[] Paras = new SqlParameter[]
            {
                //new SqlParameter("@UserID",_DragLogInfo.UserID),
                new SqlParameter("@account", _DragLogInfo.UserAccount),
                new SqlParameter("@DragTime", _DragLogInfo.DateTime),
                new SqlParameter("@DragContent", _DragLogInfo.DragContent),
                new SqlParameter("@IP", _DragLogInfo.IP)
            };

            if (this.SqlHelper.ExecuteNonQuery(Sql, Paras, CommandType.Text) > 0)
            {
                return(true);
            }
            return(false);
        }
Example #2
0
 /// <summary>
 /// 添加拖拽日志
 /// </summary>
 /// <param name="_DragLogInfo"></param>
 /// <returns></returns>
 public bool AddDragLog(DragLogInfo _DragLogInfo)
 {
     return(this._DragLogDAL.AddDragLog(_DragLogInfo));
 }