diff --git a/Base/Controller/FCommonCRoom.cs b/Base/Controller/FCommonCRoom.cs
index 6ec05de..a7d3a79 100644
--- a/Base/Controller/FCommonCRoom.cs
+++ b/Base/Controller/FCommonCRoom.cs
@@ -196,6 +196,11 @@ namespace NP.Base.Controllers
}
}
+ [HttpPost]
+ public JsonResult ReExamForUser(int exno, Int64 lectno)
+ {
+ return JsonOK(Dao.Save("lect.reexam", new System.Collections.Hashtable() { { "exno", exno }, { "lectno", lectno }, { "uno", SUserInfo.UserNo }, { "uip", GetUserIP() } }) > 1 ? 1 : 0);
+ }
}
diff --git a/Dao/DB/DB1.Scheme.txt b/Dao/DB/DB1.Scheme.txt
index 0189947..f3d5908 100644
--- a/Dao/DB/DB1.Scheme.txt
+++ b/Dao/DB/DB1.Scheme.txt
@@ -532,6 +532,7 @@ create table cmex (
,isusebackup tinyint not null
,isseq tinyint not null
,isresultopen tinyint not null default 0
+ ,isreexamable tinyint not null default 0
,isdel tinyint not null
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
,primary key(exno));
diff --git a/Dao/MyBatis/Maps/CM.xml b/Dao/MyBatis/Maps/CM.xml
index 6304693..c19642b 100644
--- a/Dao/MyBatis/Maps/CM.xml
+++ b/Dao/MyBatis/Maps/CM.xml
@@ -704,7 +704,7 @@
UPDATE cmex SET ,exname=#exname#,edesc=#edesc#,econdition=#econdition#,isblur=#isblur#,isusebackup=#isusebackup#
- ,isseq=#isseq#,isresultopen=#isresultopen#,etime=#etime#
+ ,isseq=#isseq#,isreexamable=#isreexamable#,isresultopen=#isresultopen#,etime=#etime#
where exno=#exno#
INSERT INTO cmex
- (cmno,extype,exname,edesc,etime,econdition,evtype,eqtype,israndq,israndqi,qcount,isblur,tpoint,relaylimit,isusebackup,isseq,isresultopen,isdel,)
- values (#cmno#,#extype#,#exname#,#edesc#,#etime#,#econdition#,#evtype#,#eqtype#,#israndq#,#israndqi#,#qcount#,#isblur#,#tpoint#,#relaylimit#,#isusebackup#,#isseq#,#isresultopen#,0,)
+ (cmno,extype,exname,edesc,etime,econdition,evtype,eqtype,israndq,israndqi,qcount,isblur,tpoint,relaylimit,isusebackup,isseq,isreexamable,isresultopen,isdel,)
+ values (#cmno#,#extype#,#exname#,#edesc#,#etime#,#econdition#,#evtype#,#eqtype#,#israndq#,#israndqi#,#qcount#,#isblur#,#tpoint#,#relaylimit#,#isusebackup#,#isseq#,#isreexamable#,#isresultopen#,0,)
SELECT LAST_INSERT_ID()
@@ -811,6 +811,7 @@
,relaylimit =#relaylimit#
,isusebackup =#isusebackup#
,isseq =#isseq#
+ ,isreexamable =#isreexamable#
,isresultopen=#isresultopen#
where exno=#exno#
diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml
index 86f5b7e..d6dfabc 100644
--- a/Dao/MyBatis/Maps/CRoom.xml
+++ b/Dao/MyBatis/Maps/CRoom.xml
@@ -486,9 +486,9 @@
order by a.dtype,a.rno