Example #1
0
        public DataSet SearchByChallengeID(string id)
        {
            OxcoderIFactory.IFactory        factory = new OxcoderFactory.SqlSeverFactory();
            OxcoderIDAL.SearchChallengeIDAL dalad   = factory.getSearchInstance();
            DataSet ds = dalad.SearchByChallengeID(id);

            ds = AddPositionAndQuiz(ds);
            return(ds);
        }
Example #2
0
        public DataSet SearchByOwner(string id, int pageindex, int pagesize)
        {
            OxcoderIFactory.IFactory        factory = new OxcoderFactory.SqlSeverFactory();
            OxcoderIDAL.SearchChallengeIDAL dalad   = factory.getSearchInstance();
            DataSet ds = dalad.SearchByOwner(id, pageindex, pagesize);

            ds = AddPositionAndQuiz(ds);
            return(ds);
        }
Example #3
0
        public DataSet Search(int pageindex, int pagesize, String salary = null, string provice = null, int retype = -1, int flag = -1, string searchCondition = null)
        {
            OxcoderIFactory.IFactory        factory = new OxcoderFactory.SqlSeverFactory();
            OxcoderIDAL.SearchChallengeIDAL dalad   = factory.getSearchInstance();
            DataSet ds = dalad.SearchUseCondition(salary, provice, retype, flag, searchCondition, pageindex, pagesize);

            ds = AddPositionAndQuiz(ds);
            return(ds);
        }
Example #4
0
        public DataSet SearchByUser(string userid, int state, int flag, int pageindex, int pagesize)
        {
            OxcoderIFactory.IFactory        factory = new OxcoderFactory.SqlSeverFactory();
            OxcoderIDAL.SearchChallengeIDAL dalad   = factory.getSearchInstance();
            DataSet ds = null;

            if (flag == 1)
            {
                ds = dalad.SearchByUser(userid, state, pageindex, pagesize);
                ds = AddPositionAndQuiz(ds);
            }
            else if (flag == 0)
            {
                ds = dalad.SearchByUserHistory(userid, state, pageindex, pagesize);
                ds = AddPositionAndQuiz(ds);
            }
            return(ds);
        }
Example #5
0
 public DataSet AllChallengeInfo()
 {
     OxcoderIFactory.IFactory        factory = new OxcoderFactory.SqlSeverFactory();
     OxcoderIDAL.SearchChallengeIDAL dalad   = factory.getSearchInstance();
     return(dalad.AllChallengeInfo());
 }