/// <summary> /// 获取在线咨询列表信息 /// </summary> /// <returns></returns> private Hashtable GetArchiveList(HttpContext context) { Hashtable htRet = new Hashtable(); Hashtable rowData = new Hashtable(); try { DBIndex dbm = new DBIndex(); DataSet ds = dbm.GetAllAchievement(); if (ds.Tables[0].Rows.Count == 0) { htRet["ok"] = true; htRet["cnt"] = 0; htRet["msg"] = "无数据!"; } else { ArrayList lst = new ArrayList(); foreach (DataRow dr in ds.Tables[0].Rows) { Hashtable htItem = new Hashtable(); htItem["id"] = CConvert.ToString(dr["id"]); htItem["title"] = CConvert.ToString(dr["title"]); htItem["time"] = CConvert.ToString(dr["time"]); // htItem["content"] = System.Web.HttpUtility.HtmlDecode(CConvert.ToString(dr["content"])); htItem["bigimg"] = CConvert.ToString(dr["bigimg"]); htItem["img"] = CConvert.ToString(dr["img"]); lst.Add(htItem); } htRet["ok"] = true; htRet["lst"] = lst; } } catch (Exception ex) { htRet["err"] = true; htRet["msg"] = "获取轮播信息失败!" + ex.Message; } return(htRet); }