Esempio n. 1
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);
        }
Esempio n. 2
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);
        }