Kaynağa Gözat

切屏次数限制

xiatian 3 yıl önce
ebeveyn
işleme
7890c8e549

+ 1 - 0
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/enums/ExamProperties.java

@@ -56,6 +56,7 @@ public enum ExamProperties {
 	EXAM_CYCLE_TIME_RANGE("考试周期时间段设置"),
 	SHOW_UNDERTAKING("显示设置-显示考生承诺书"),
 	UNDERTAKING("显示设置-考生承诺书"),
+	MAX_SWITCH_SCREEN_COUNT("控制设置-切屏次数限制"),
 	;
 
 	private ExamProperties(String desc){

+ 15 - 0
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/examing/ExamRecordData.java

@@ -228,6 +228,11 @@ public class ExamRecordData implements JsonSerializable {
      * 切屏次数
      */
     private Integer switchScreenCount;
+    
+    /**
+     * 是否超过切屏限制
+     */
+    private Boolean exceedMaxSwitchScreenCount;
 
     public Long getId() {
         return id;
@@ -625,4 +630,14 @@ public class ExamRecordData implements JsonSerializable {
                 ", switchScreenCount=" + switchScreenCount +
                 '}';
     }
+
+	public Boolean getExceedMaxSwitchScreenCount() {
+		return exceedMaxSwitchScreenCount;
+	}
+
+	public void setExceedMaxSwitchScreenCount(Boolean exceedMaxSwitchScreenCount) {
+		this.exceedMaxSwitchScreenCount = exceedMaxSwitchScreenCount;
+	}
+    
+    
 }

+ 29 - 0
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/examing/ExamingSession.java

@@ -114,6 +114,16 @@ public class ExamingSession implements JsonSerializable {
      * 定点交卷的时间
      */
     private Date fixedSubmitTime;
+    
+    /**
+     * 是否计算切屏次数
+     */
+    private Boolean recordSwitchScreen;
+    
+    /**
+     * 限制切屏次数
+     */
+    private Integer maxSwitchScreenCount;
 
     /**
      * 构建key
@@ -286,4 +296,23 @@ public class ExamingSession implements JsonSerializable {
     public void setTimingEnd(boolean timingEnd) {
         this.timingEnd = timingEnd;
     }
+
+	public Integer getMaxSwitchScreenCount() {
+		return maxSwitchScreenCount;
+	}
+
+	public void setMaxSwitchScreenCount(Integer maxSwitchScreenCount) {
+		this.maxSwitchScreenCount = maxSwitchScreenCount;
+	}
+
+	public Boolean getRecordSwitchScreen() {
+		return recordSwitchScreen;
+	}
+
+	public void setRecordSwitchScreen(Boolean recordSwitchScreen) {
+		this.recordSwitchScreen = recordSwitchScreen;
+	}
+
+    
+    
 }