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; }
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; }
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; }
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); }
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); }
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); }
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); }
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; }
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); }
public DataSet AllChallengeInfo() { OxcoderIFactory.IFactory factory = new OxcoderFactory.SqlSeverFactory(); OxcoderIDAL.SearchChallengeIDAL dalad = factory.getSearchInstance(); return(dalad.AllChallengeInfo()); }
public DataSet AllChallengeInfo() { OxcoderIFactory.IFactory factory = new OxcoderFactory.SqlSeverFactory(); OxcoderIDAL.SearchChallengeIDAL dalad = factory.getSearchInstance(); return dalad.AllChallengeInfo(); }