Exemplo n.º 1
0
        /// <summary>
        ///     获取试卷列表
        /// </summary>
        /// <returns></returns>
        public List <TalExampaper> GetAllExampaperList(ref int totalcount, int sortID, string title,
                                                       DateTime?createStart, DateTime?createEnd,
                                                       int pageSize = int.MaxValue, int pageIndex = 0)
        {
            var sotrlist = new List <int>();

            if (sortID != 0)
            {
                sotrlist.Add(sortID);
                var querylist = new List <IMongoQuery>();
                querylist.Add(Query.EQ("Status", 0));
                IMongoQuery             query = Query.And(querylist);
                List <TalExampaperSort> list  = ESDB.GetAllList <TalExampaperSort>(query);
                GetSortByFatherID(list, sortID, ref sotrlist);
            }
            return(EDB.GetAllExampaperList(ref totalcount, sotrlist, title, createStart, createEnd, pageSize, pageIndex));
        }
Exemplo n.º 2
0
 /// <summary>
 ///     获取问题分类列表
 /// </summary>
 /// <returns></returns>
 public List <TalExampaperSort> GetAllExampaperSortList()
 {
     return(eDB.GetAllList <TalExampaperSort>(false));
 }