Blame view

src/com/fh/bean/TestPaper.java 3.27 KB
91a745c9   孙向锦   完善后台功能
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  package com.fh.bean;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import com.google.gson.Gson;
  
  public class TestPaper {
  	
  	// 测试ID
  	private String testpaperId ;
  	
  	// 测验标题
  	private String name ;
  	
  	// 试卷ID
  	private String paperId ;
  	
  	// 班级ID
  	private String classId ;
  	
  	// 教师ID
  	private String teacherId ;
  	
  	// 开始日期
  	private String startDate ;
  	
  	//结束日期
  	private String endDate ;
  	
  	//创建日期
  	private String createDate ;
  	
  	// 其他分数
  	private String otherScore ;
  	
  	// 最高分
  	private String highScore ;
  	
  	//最低分
  	private String lowScore ;
  	
  	// 平均分
  	private String avgScore ;
  	
03a14c0e   孙向锦   更新报表
46
  	private String totalScore;
91a745c9   孙向锦   完善后台功能
47
48
49
  	// 备注
  	private String remark ;
  	
757dfed6   孙向锦   样例报表
50
51
  	private String test_type ;
  	
3a163205   孙向锦   报表优化
52
53
  	private String subject_id ;
  	
91a745c9   孙向锦   完善后台功能
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
  	private List<StudentAnswer> students = new ArrayList<StudentAnswer>();
  
  	public String getTestpaperId() {
  		return testpaperId;
  	}
  
  	public void setTestpaperId(String testpaperId) {
  		this.testpaperId = testpaperId;
  	}
  
  	public String getName() {
  		return name;
  	}
  
  	public void setName(String name) {
  		this.name = name;
  	}
  
  	public String getPaperId() {
  		return paperId;
  	}
  
  	public void setPaperId(String paperId) {
  		this.paperId = paperId;
  	}
  
  	
  
  	public String getClassId() {
  		return classId;
  	}
  
  	public void setClassId(String classId) {
  		this.classId = classId;
  	}
  
  	public String getTeacherId() {
  		return teacherId;
  	}
  
  	public void setTeacherId(String teacherId) {
  		this.teacherId = teacherId;
  	}
  
  	public String getStartDate() {
  		return startDate;
  	}
  
  	public void setStartDate(String startDate) {
  		this.startDate = startDate;
  	}
  
  	public String getEndDate() {
  		return endDate;
  	}
  
  	public void setEndDate(String endDate) {
  		this.endDate = endDate;
  	}
  
  	public String getCreateDate() {
  		return createDate;
  	}
  
  	public void setCreateDate(String createDate) {
  		this.createDate = createDate;
  	}
  
  	public String getOtherScore() {
  		return otherScore;
  	}
  
  	public void setOtherScore(String otherScore) {
  		this.otherScore = otherScore;
  	}
  
  	public String getHighScore() {
  		return highScore;
  	}
  
  	public void setHighScore(String highScore) {
  		this.highScore = highScore;
  	}
  
  	public String getLowScore() {
  		return lowScore;
  	}
  
  	public void setLowScore(String lowScore) {
  		this.lowScore = lowScore;
  	}
  
  	public String getAvgScore() {
  		return avgScore;
  	}
  
  	public void setAvgScore(String avgScore) {
  		this.avgScore = avgScore;
  	}
  
  	public String getRemark() {
  		return remark;
  	}
  
  	public void setRemark(String remark) {
  		this.remark = remark;
  	}
  	
757dfed6   孙向锦   样例报表
162
163
164
165
166
167
168
169
  	public String getTest_type() {
  		return test_type;
  	}
  	
  	
  	public void setTest_type(String test_type) {
  		this.test_type = test_type;
  	}
91a745c9   孙向锦   完善后台功能
170
171
172
173
174
175
176
177
178
  	
  	public List<StudentAnswer> getStudents() {
  		return students;
  	}
  
  	public void setStudents(List<StudentAnswer> students) {
  		this.students = students;
  	}
  
03a14c0e   孙向锦   更新报表
179
180
181
182
183
184
185
186
  	public String getTotalScore() {
  		return totalScore;
  	}
  
  	public void setTotalScore(String totalScore) {
  		this.totalScore = totalScore;
  	}
  
91a745c9   孙向锦   完善后台功能
187
188
189
190
191
  	public static TestPaper parse(String json){
  		Gson gson = new Gson();
  		return gson.fromJson(json, TestPaper.class);
  	}
  	
3a163205   孙向锦   报表优化
192
193
194
195
196
197
198
199
200
201
  	
  	
  	public String getSubject_id() {
  		return subject_id;
  	}
  
  	public void setSubject_id(String subject_id) {
  		this.subject_id = subject_id;
  	}
  
91a745c9   孙向锦   完善后台功能
202
203
204
205
206
207
  	public String toJson(){
  		Gson gson = new Gson();
  		return gson.toJson(this);
  	}
  
  }