/// <summary> /// 修改授权信息 /// </summary> /// <returns></returns> private Hashtable DetailQues(HttpContext context) { Hashtable htRet = new Hashtable(); try { string sId = CConvert.ToString(context.Request["qid"]).Trim(); FastReadServer.admin.UserInfo user = (FastReadServer.admin.UserInfo)context.Session[FastReadServer.admin.CConst.CSession.C_UserInfoKey]; if (user == null || user.UserId == "") { htRet["msg"] = "用户信息超时,请重新登录!"; htRet["ok"] = false; return(htRet); } DBIndex dbm = new DBIndex(); DataSet ds = dbm.GetQuesById(sId); if (ds.Tables[0].Rows.Count == 0) { htRet["msg"] = "指定的问题不存在!"; htRet["ok"] = false; return(htRet); } else { htRet["ok"] = true; DataRow dr = ds.Tables[0].Rows[0]; Hashtable ht = new Hashtable(); foreach (DataColumn dc in ds.Tables[0].Columns) { ht[dc.ColumnName] = CConvert.ToString(dr[dc.ColumnName]); } htRet["data"] = ht; } } catch (Exception ex) { htRet["ok"] = false; htRet["msg"] = "处理失败!" + ex.Message; } return(htRet); }