Exemplo n.º 1
0
        private void BindOtherKnowledgeTree()
        {
            OtherKnowledgeBLL otherKnowledgeBLL = new OtherKnowledgeBLL();

            IList <RailExam.Model.OtherKnowledge> otherKnowledgeList = otherKnowledgeBLL.GetOtherKnowledge(0, 0, "", 0, 0,
                                                                                                           "", "", "", 0, 4000, "LevelNum,OtherKnowledgeID ASC");

            Pub.BuildComponentArtTreeView(tvOtherKnowledge, (IList)otherKnowledgeList, "OtherKnowledgeID",
                                          "ParentID", "OtherKnowledgeName", "OtherKnowledgeName", "OtherKnowledgeID", null, null, null);

            //tvOtherKnowledge.ExpandAll();
        }
Exemplo n.º 2
0
        public bool tvOtherKnowledgeNodeMove(int OtherKnowledgeID, string direction)
        {
            OtherKnowledgeBLL otherKnowledgeBLL = new OtherKnowledgeBLL();

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

            return(false);
        }