Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="TypeID"></param>
        /// <returns></returns>
        public List <Archives> GetHonorList(int StartRow, int PageSize)
        {
            List <Archives> Result = new List <Archives>();

            try
            {
                //获取分类
                MenuProvider _Provider     = new MenuProvider();
                string       TypeID        = _Provider.GetAboutTypeID(Constant.HonorID);
                NewsProvider _NewsProvider = new NewsProvider();
                Result = _NewsProvider.GetNewsByTypeID(StartRow, PageSize, TypeID).Data;
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "获取学会荣誉列表", "GetHonorList", ex);
            }
            return(Result);
        }
Пример #2
0
        /// <summary>
        /// 学会活动
        /// </summary>
        /// <param name="StartRow"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public List <Archives> GetActions(int StartRow, int PageSize)
        {
            List <Archives> Result = new List <Archives>();

            try
            {
                //获取分类
                MenuProvider _Provider = new MenuProvider();
                string       TypeID    = _Provider.GetAssociationTypeID(Constant.ActionID);
                //获取数据
                Result = GetNewsByTypeID(StartRow, PageSize, TypeID).Data;
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "学会活动", "GetActions", ex);
            }
            return(Result);
        }
Пример #3
0
        /// <summary>
        /// 获取组织条例列表
        /// </summary>
        /// <param name="StartRow"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public List <Archives> GetOrgaincRuleses(int StartRow, int PageSize)
        {
            List <Archives> Result = new List <Archives>();

            try
            {
                //获取分类
                MenuProvider _Provider = new MenuProvider();
                string       TypeID    = _Provider.GetNewTypeID(Constant.OrgaincRulesID);

                //获取数据
                NewsProvider _NewsProvider = new NewsProvider();
                Result = _NewsProvider.GetNewsByTypeID(StartRow, PageSize, TypeID).Data;
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "获取组织条例列表", "GetOrgaincRuleses", ex);
            }
            return(Result);
        }
Пример #4
0
        /// <summary>
        /// 获取单位学会列表
        /// </summary>
        /// <returns></returns>
        public List <Archives> GetUnitMemberList(int StartRow, int PageSize)
        {
            List <Archives> Result = new List <Archives>();

            try
            {
                //获取分类
                MenuProvider _Provider = new MenuProvider();
                string       TypeID    = _Provider.GetOrganizationalTypeID(Constant.UnitMemberID);
                //获取地方学会文章列表
                NewsProvider _NewsProvider = new NewsProvider();
                Result = _NewsProvider.GetNewsByTypeID(StartRow, PageSize, TypeID).Data;
                //_Provider.GetAboutTypeID
                //Result = _NewsProvider(Convert.ToInt32(TypeID));
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "获取单位学会列表", "GetUnitMemberList", ex);
            }
            return(Result);
        }
Пример #5
0
        /// <summary>
        /// 获取学会章程内容
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        public string GetConstitutionDetial()
        {
            string result = "";

            try
            {
                //获取分类
                MenuProvider _Provider = new MenuProvider();
                string       TypeID    = _Provider.GetAboutTypeID(Constant.ConstitutionID);
                //
                string sql = "select content from de2_arctype where id=@id ";
                //获取数据
                MySqlClient _MySqlClient = new MySqlClient();
                result = (string)_MySqlClient.ExecuteScalar(sql, new MySqlParameter("id", TypeID));
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "获取学会章程内容", "GetConstitutionDetial", ex);
            }
            return(result);
        }
Пример #6
0
        /// <summary>
        /// 获取常务理事会信息
        /// </summary>
        /// <returns></returns>
        public string GetAffairsCouncil()
        {
            string Result = "";

            try
            {
                //获取分类
                MenuProvider _Provider = new MenuProvider();
                string       TypeID    = _Provider.GetOrganizationalTypeID(Constant.AffairsCouncilID);
                //
                string sql = "select content from de2_arctype where id=@id ";
                //获取数据
                MySqlClient _MySqlClient = new MySqlClient();
                Result = (string)_MySqlClient.ExecuteScalar(sql, new MySqlParameter("id", TypeID));
            }
            catch (Exception ex)
            {
                LogFactory _LogFactory = new LogFactory(this.GetType());
                _LogFactory.CreateLog(LogType.Error, "获取常务理事会信息", "GetAffairsCouncil", ex);
            }
            return(Result);
        }