/// <summary> /// 根据视图获得查询分页数据 /// </summary> public DataSet GetList(string channel_name, int category_id, int pageIndex, string strWhere, string filedOrder, out int recordCount, out int pageSize) { pageSize = new channel().GetPageSize(channel_name); //自动获得频道分页数量 return(dal.GetList(channel_name, category_id, pageSize, pageIndex, strWhere, filedOrder, out recordCount)); }
/// <summary> /// 取得指定类别下的列表 /// </summary> /// <param name="parent_id">父ID</param> /// <param name="channel_name">频道名称</param> /// <returns></returns> public DataTable GetChildList(int parent_id, string channel_name) { int channel_id = new channel().GetChannelId(channel_name); return(dal.GetChildList(parent_id, channel_id)); }