Пример #1
0
        /// <summary>
        /// 添加
        /// </summary>
        /// <returns>是否操作成功(true成功,false失败)</returns>
        public bool InsertKeywordForMember(string Keyword, string InfoTypeID, string LoginName)
        {
            bool blRet = false;


            //根据判断,如果输入的关键词的长度过于长,将不进入用户键入关键词搜集
            int KeywordLengthRequest = 20;

            if (KeywordLengthRequest < Keyword.Length ||
                Keyword.Length == 0)
            {
                //超过限制时,就不添加进入用户关键词表
                return(blRet);
            }

            string[] KeyWords = Keyword.Trim().Split(' ');
            for (int i = 0; i < KeyWords.Length; i++)
            {
                blRet = dal.InsertKeywordForMember(KeyWords[i].Trim(), InfoTypeID, LoginName);
            }
            return(blRet);
        }