Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
        public DataSet GetTestDetail(string id)
        {
            OxcoderIFactory.IFactory factory = new OxcoderFactory.SqlSeverFactory();
            OxcoderIDAL.TestInfoIDAL dalad = factory.getTestInstance();

            DataSet ds = dalad.GetTestDetail(id);
            string cid = ds.Tables[0].Rows[0]["Test_ChallengeID"].ToString();
            OxcoderIDAL.SearchChallengeIDAL scidal = factory.getSearchInstance();
            DataSet ds2 = scidal.SearchByChallengeID(cid);

            return AddOtherInfo(ds,ds2);
        }
Ejemplo n.º 8
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;
 }
Ejemplo n.º 9
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);
        }
Ejemplo n.º 10
0
 public DataSet AllChallengeInfo()
 {
     OxcoderIFactory.IFactory        factory = new OxcoderFactory.SqlSeverFactory();
     OxcoderIDAL.SearchChallengeIDAL dalad   = factory.getSearchInstance();
     return(dalad.AllChallengeInfo());
 }
Ejemplo n.º 11
0
 public DataSet AllChallengeInfo()
 {
     OxcoderIFactory.IFactory factory = new OxcoderFactory.SqlSeverFactory();
     OxcoderIDAL.SearchChallengeIDAL dalad = factory.getSearchInstance();
     return dalad.AllChallengeInfo();
 }