Пример #1
0
        public ActionResult SaveTest(DECHUAN de)
        {
            Guid idsub = new SubjectDAO().ShowAllSubIDSingle(de.MaDeChuan).SubjectID;

            de.MaMon     = idsub;
            de.MaDeChuan = -1;
            int id = new DeChuanDAO().luuDeChuan(de);

            return(Json(id, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public JsonResult showAllTest(int id = -1)
        {
            var kq = new DeChuanDAO().GetListSingleDC(id);

            if (kq == null)
            {
                kq = null;
            }

            return(Json(kq, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        public ActionResult taoDeTron(int id)
        {
            int    x = new DeChuanDAO().tronDeThi(id);
            string kq;

            if (x == -1)
            {
                kq = "Lỗi trộn đề";
            }
            else
            {
                kq = "Trộn đề thành công";
            }
            return(Json(kq, JsonRequestBehavior.AllowGet));
        }
Пример #4
0
        public ActionResult moKhoaDeChuan(int idde)
        {
            int    x = new DeChuanDAO().khoaDeChuan(false, idde);
            string kq;

            if (x == -1)
            {
                kq = "Không thể mở khóa đề chuẩn";
            }
            else
            {
                kq = "Mở khóa đề chuẩn thành công";
            }
            return(Json(kq, JsonRequestBehavior.AllowGet));
        }
Пример #5
0
        public ActionResult PhanDeTS(int idcathi)
        {
            var kq = new DeChuanDAO().PhanDeChoThiSinh(idcathi);

            return(Json(kq, JsonRequestBehavior.AllowGet));
        }
Пример #6
0
        public ActionResult deleteTest(int id)
        {
            bool x = new DeChuanDAO().DeleteDECHUAN(id);

            return(Json(x, JsonRequestBehavior.AllowGet));
        }
Пример #7
0
        public JsonResult getListDeTron(int idde)
        {
            List <detron> dt = new DeChuanDAO().getListDeTron(idde);

            return(Json(dt, JsonRequestBehavior.AllowGet));
        }