Пример #1
0
        /// <summary>
        /// 根据条件查询文章信息
        /// </summary>
        /// <param name="demandType">查询类型(实体类中的所有属性选其一)</param>
        /// <param name="demandContent">查询参数(要查询的条件参数)</param>
        /// <returns></returns>
        public static Article GetArticleByConn(string demandType, string demandContent)
        {
            Article obj = Article_Service.GetArticleByConn(demandType, demandContent);

            obj.GetArticleType = ArticleType_Manager.GetArticleTypeByConn("At_Name", obj.A_TypeName);
            return(obj);
        }
Пример #2
0
        /// <summary>
        /// 分页查询文章信息:条件
        /// </summary>
        /// <param name="pageNo">当前页编号</param>
        /// <param name="pageSize">每页显示数</param>
        /// <returns></returns>
        public static List <Article> GetArticlePagingByConn(int pageNo, int pageSize, string conn)
        {
            List <Article> list = new List <Article>();

            foreach (Article obj in Article_Service.GetArticlePagingByConn(pageNo, pageSize, conn))
            {
                obj.GetArticleType = ArticleType_Manager.GetArticleTypeByConn("At_Name", obj.A_TypeName);
                list.Add(obj);
            }
            return(list);
        }
Пример #3
0
        /// <summary>
        /// 获取全部文章信息(编号[从大到小])
        /// </summary>
        /// <returns></returns>
        public static List <Article> GetArticleAllByDesc()
        {
            List <Article> list = new List <Article>();

            foreach (Article obj in Article_Service.GetArticleAllByDesc())
            {
                obj.GetArticleType = ArticleType_Manager.GetArticleTypeByConn("At_Name", obj.A_TypeName);
                list.Add(obj);
            }
            return(list);
        }
Пример #4
0
        /// <summary>
        /// 显示全部:全部相关查询列条件
        /// </summary>
        /// <returns></returns>
        public static List <Article> Select_ArticleDescCorrelationByConn(string conn)
        {
            List <Article> list = new List <Article>();

            foreach (Article obj in Article_Service.Select_ArticleDescCorrelationByConn(conn))
            {
                obj.GetArticleType = ArticleType_Manager.GetArticleTypeByConn("At_Name", obj.A_TypeName);
                list.Add(obj);
            }
            return(list);
        }
Пример #5
0
        /// <summary>
        /// 根据条件查询文章信息:多条
        /// </summary>
        /// <returns></returns>
        public static List <Article> GetArticleByConns(string demandType, string demandContent)
        {
            List <Article> list = new List <Article>();

            foreach (Article obj in Article_Service.GetArticleByConns(demandType, demandContent))
            {
                obj.GetArticleType = ArticleType_Manager.GetArticleTypeByConn("At_Name", obj.A_TypeName);
                list.Add(obj);
            }
            return(list);
        }