Beispiel #1
0
        public void MyBind()
        {
            M_Exam_Sys_Papers papermodel = paperBll.GetSelect(Pid);

            PTitle_L.Text    = StringHelper.SubStr(papermodel.p_name, 10);
            SelIDS_IDS.Value = "," + papermodel.QIDS + ",";
            DataTable dt = null;

            if (!string.IsNullOrEmpty(papermodel.QIDS))
            {
                dt = questBll.SelByIDS(papermodel.QIDS, QType, "*");
            }
            EGV.DataSource = dt;
            EGV.DataBind();
            function.Script(this, "ActiveTab(" + QType + ");");
        }
Beispiel #2
0
        //试卷下题目管理
        public ActionResult Paper_QuestionManage()
        {
            int Pid   = DataConverter.CLng(Request.QueryString["pid"]);
            int QType = DataConverter.CLng(Request.QueryString["qtype"], 99); //题目类型
            M_Exam_Sys_Papers paperMod = paperBll.GetSelect(Pid);
            PageSetting       setting  = new PageSetting();

            if (!string.IsNullOrEmpty(paperMod.QIDS))
            {
                setting = questBll.SelByIDS(CPage, PSize, paperMod.QIDS, QType, "*");
            }
            else
            {
                setting.dt = new DataTable();
            }
            ViewBag.paperMod = paperMod;
            ViewBag.QType    = QType;
            return(View(setting));
        }