示例#1
0
 /// <summary>
 /// 新通道-根据id获取新闻列表
 /// </summary>
 public static object GetNewsById(String id, String pageIndex, String limit, String order, String sort)
 {
     try
     {
         SocketModel obj   = new SocketModel("H1", id, pageIndex, limit);
         object      objRs = DataAccess.QueryIndex(JsonConvert.SerializeObject(obj));
         return(objRs);
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog("根据id获取新闻列表数据获取出错:", ex);
         return(null);
     }
 }
示例#2
0
 /// <summary>
 /// 新通道-左侧菜单
 /// </summary>
 public static object GetLeftTree(String cid)
 {
     try
     {
         SocketModel obj = new SocketModel("H2");
         obj.cid = cid;
         object objRs = DataAccess.QueryIndex(JsonConvert.SerializeObject(obj));
         return(objRs);
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog("获取公告菜单数据出错:", ex);
         throw ex;
     }
 }
示例#3
0
        /// <summary>
        /// 获取左侧研报树
        /// </summary>
        /// <returns></returns>
        public static String GetLeftTree(String cid)
        {
            String      result     = String.Empty;
            SocketModel queryModel = new SocketModel("H3", cid);

            try
            {
                result = (String)DataAccess.QueryIndex(JsonConvert.SerializeObject(queryModel));
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("GetLeftTree.do发生异常", ex);
                throw ex;
            }

            return(result);
        }
示例#4
0
 /// <summary>
 /// 新通道-根据id获取我的新闻
 /// </summary>
 public static object GetNewsBySubId(String id, String cid, String pageIndex, String limit, String order, String sort)
 {
     try
     {
         SocketModel obj = new SocketModel("H1", id, pageIndex, limit);
         obj.request = "subscribeSearch";
         if (!String.IsNullOrEmpty(cid))
         {
             obj.cid = cid;
         }
         object objRs = DataAccess.QueryIndex(JsonConvert.SerializeObject(obj));
         return(objRs);
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog("根据id获取我的新闻列表数据获取出错:", ex);
         return(null);
     }
 }