/// <summary> /// 查询议题 /// </summary> /// <returns></returns> /// 作者:吴若彤 /// 创建时间:2014-09-19 /// 修改时间:2014-09-19 public List <TopicModel> GetTopicInfo(string sqlItems) { try { List <TopicModel> list = new List <TopicModel>(); TopicDAL topicdal = new TopicDAL(); list = topicdal.GetAllRecord(sqlItems); return(list); } catch (Exception ex) { throw new Exception(ex.Message); } }//function GetTopicInfo
} // function GetAllEmployee /// <summary> /// 查询用户申请的通过议题 /// </summary> /// <returns>一组议题信息</returns> /// 作者:王宇昊 /// 创建时间:2014-09-20 /// 修改时间: public List <TopicModel> GetUserTopic(EmployeeModel employee) { try { List <TopicModel> list = new List <TopicModel>(); List <TopicModel> topiclist = new List <TopicModel>(); TopicModel topic = new TopicModel(); TopicDAL topicdal = new TopicDAL(); list = topicdal.GetAllRecord(employee.EmId.ToString()); foreach (TopicModel TM in list) { if (TM.TopicApplicantId == employee.EmId && TM.TopicStatus == '1') { topic = TM; topiclist.Add(TM); } } return(topiclist); } catch (Exception ex) { throw new Exception(ex.Message); } }//function GetUserTopic