예제 #1
0
        private int GetNextQuestionSetID()
        {
            List <QuestionSet> qSets = SqlManager.GetAllQuestionSets();
            int nextID = 0;

            if (qSets != null)
            {
                foreach (QuestionSet qSet in qSets)
                {
                    if (qSet.UniqueID > nextID)
                    {
                        nextID = qSet.UniqueID;
                    }
                }
            }
            nextID = nextID + 1;

            return(nextID);
        }
예제 #2
0
        private static int GetNextQuestionSetId()
        {
            var qSets  = SqlManager.GetAllQuestionSets(-1, "");
            var nextId = 0;

            if (qSets != null)
            {
                foreach (var qSet in qSets)
                {
                    if (qSet.UniqueID > nextId)
                    {
                        nextId = qSet.UniqueID;
                    }
                }
            }
            nextId += 1;

            return(nextId);
        }
예제 #3
0
        public List <QuestionSet> GetStenerList()
        {
            List <QuestionSet> steners = SqlManager.GetAllQuestionSets();

            return(steners);
        }
예제 #4
0
        public List <QuestionSet> GetStenerList()
        {
            var steners = SqlManager.GetAllQuestionSets(-1, "");

            return(steners);
        }
예제 #5
0
        public List <QuestionSet> GetSubmittedQuestionSets()
        {
            var qSets = SqlManager.GetAllQuestionSets(-1, "SUBMITTED");

            return(qSets);
        }
예제 #6
0
        public List <QuestionSet> GetQuestionSetsForDepartment(int departmentID)
        {
            var qSets = SqlManager.GetAllQuestionSets(departmentID, "");

            return(qSets);
        }