Beispiel #1
0
        public ActionResult TeaQueryGrade(int classid, int projectid)
        {
            ViewBag.ProjectID = new SelectList(rb.GetProjects(), "ID", "ProjectName", projectid);
            ViewBag.ClassID   = new SelectList(cb.GetClasses(), "ID", "ClassName", classid);

            var dt = new DataTable();

            if (Request.Params["ScoreOrder"] == "false")
            {
                dt = rb.GetSumGrade(projectid, classid);
                ViewBag.ScoreOrder = false;
            }
            else
            {
                dt = rb.GetSumGradeOrder(projectid, classid);
                ViewBag.ScoreOrder = true;
            }
            var QGM = new QueryGradeModel();

            QGM.DT = dt;
            if (Request.Params["outexcel"] != null)
            {
                DataTable2Excel(dt);
            }
            return(View(QGM));
        }
Beispiel #2
0
        public ActionResult StuQueryGrade(string reviewstuno)
        {
            ViewBag.ProjectID = new SelectList(rb.GetProjects(), "ID", "ProjectName");
            var QGM = new QueryGradeModel();

            QGM.DT    = new DataTable();
            QGM.StuNo = reviewstuno;
            return(View(QGM));
        }
Beispiel #3
0
        public ActionResult TeaQueryGrade(int TeacherID)
        {
            ViewBag.ProjectID = new SelectList(rb.GetProjects(), "ID", "ProjectName");

            ViewBag.ClassID = new SelectList(cb.GetClasses(), "ID", "ClassName");

            var QGM = new QueryGradeModel();

            QGM.DT        = new DataTable();
            QGM.TeacherID = TeacherID;
            return(View(QGM));
        }
Beispiel #4
0
        public ActionResult StuQueryGrade(string reviewstuno, string projectid)
        {
            ViewBag.ProjectID = new SelectList(rb.GetProjects(), "ID", "ProjectName", projectid);
            var dt = new DataTable();

            if (!string.IsNullOrEmpty(projectid) && !string.IsNullOrEmpty(reviewstuno))
            {
                int proid = int.Parse(projectid);
                dt = rb.GetSumGrade(proid, reviewstuno);
            }
            var QGM = new QueryGradeModel();

            QGM.DT    = dt;
            QGM.StuNo = reviewstuno;
            return(View(QGM));
        }