Esempio n. 1
0
        public bool tvKnowledgeNodeMove(int knowledgeId, string direction)
        {
            KnowledgeBLL knowledgeBLL = new KnowledgeBLL();

            if (direction.ToUpper() == "UP")
            {
                return(knowledgeBLL.MoveUp(knowledgeId));
            }
            else if (direction.ToUpper() == "DOWN")
            {
                return(knowledgeBLL.MoveDown(knowledgeId));
            }
            else
            {
                SessionSet.PageMessage = "未知移动方向!";
            }

            return(false);
        }