Beispiel #1
0
        public IActionResult QuestGrade()
        {
            int    CateID   = DataConverter.CLng(RequestEx["cate"]);
            string cateName = "题型";
            string paraName = "Grade";

            switch (CateID)
            {
            case 4: cateName = "题型"; break;

            case 5: cateName = "难度"; paraName = "diff"; break;

            case 6: cateName = "年级"; paraName = "Grade"; break;

            case 7: cateName = "教材版本"; paraName = "Version"; break;
            }
            ViewBag.cateName = cateName;
            ViewBag.paraName = paraName;
            PageSetting setting = gradeBll.SelPage(CPage, PSize, new Com_Filter()
            {
                storeId = CateID, pid = 0
            });

            if (Request.IsAjaxRequest())
            {
                return(PartialView("QuestGrade_List", setting));
            }
            return(View(setting));
        }
Beispiel #2
0
        public IActionResult GradeOption()
        {
            if (CateID <= 0)
            {
                return(WriteErr("没有指定多级数据字典分类ID", "GradeCateManage"));
            }
            M_GradeCate cateMod = gcateBll.GetCate(CateID);

            ViewBag.cateMod = cateMod;
            PageSetting setting = gradeBll.SelPage(CPage, PSize, new Com_Filter()
            {
                storeId = CateID,
                pid     = ParentID,
                skey    = GetParam("skey")
            });

            if (Request.IsAjax())
            {
                return(PartialView("GradeOption_List", setting));
            }
            return(View(setting));
        }