public ActionResult QuestList() { if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.exam, "paper")) { return(null); } int NodeID = DataConverter.CLng(Request.QueryString["nodeid"]); int QType = DataConverter.CLng(Request.QueryString["qtype"], 99); int Diff = DataConverter.CLng(Request.QueryString["diff"]); int Version = DataConverter.CLng(Request.QueryString["version"]); string KeyWord = Request["keyWord"] ?? ""; int Grade = DataConverter.CLng(Request["grade"]); PageSetting setting = questBll.SelPageByFilter(CPage, PSize, NodeID, QType, Grade, Diff, Version, KeyWord, 0); if (Request.IsAjaxRequest()) { return(PartialView("QuestList_List", setting)); } if (NodeID > 0) { ViewBag.nodename = classBll.GetSelect(NodeID).C_ClassName; } else if (Grade > 0) { ViewBag.nodename = B_GradeOption.GetGradeOption(Grade).GradeName; } else { ViewBag.nodename = "全部试题"; } ViewBag.nodeid = NodeID; ViewBag.grade = Grade; ViewBag.qtype = QType; DataTable gradeDt = B_GradeOption.GetGradeList(6, 0); DataRow dr = gradeDt.NewRow(); dr["GradeName"] = "全部"; dr["GradeID"] = 0; gradeDt.Rows.InsertAt(dr, 0); ViewBag.gradelist = MVCHelper.ToSelectList(gradeDt, "GradeName", "GradeID"); return(View(setting)); }