<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="${ctx}/resources/css/main.css" type="text/css" />
<link rel='stylesheet' href='${ctx}/resources/css/easyui.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/css/easyui/icon.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/css/user-center-style.css' type='text/css' media='screen' />

<link href="${ctx}/resources/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/resources/css/style.css" rel="stylesheet" type="text/css" />

<%@ include file="../common/top.jsp"%>
<script type="text/javascript" src="${ctx}/resources/js/jquery.easyui.min.js"></script>
<%@ include file="../common/validation.jsp"%>
<style>
.scoreSelect{
	width: 80px;
	margin-bottom: 0px;
}
input
{
	width:50px;
}
textarea
{
	width:150px;		
}

</style>
</head>
<title>命题教师评价</title>
<body>
    <div id="content" class="content" style="text-align:center;">
        <div class="page" id="page" style="margin-left:10px;text-align:center; width:100%;">
        	<div class="page-header" >
        		<button id="editAssessmentBtn">编辑</button>
	        	<button id="saveAssessmentBtn" style="display:none;">保存</button>
			</div>
	        <div class="page-body" style="">
	        	<h3 style="align:center;">自学考试全国统考命题教师评价表</h3>
	        	<div style="width:600px;">
	        	<table class="table table-bordered">
	        		<tr><td style="text-align:right;">教师姓名：</td><td>${teacher.name }</td><td style="text-align:right;">课程代码：</td><td>${task.course.code }</td><td style="text-align:right;">课程名称：</td><td>${task.course.name }</td></tr>
	        		<tr><td style="text-align:right;">评价人：</td><td>${curUser.name }</td><td style="text-align:right;">评定分数：</td><td id="totalScoreTD"></td><td style="text-align:right;">评价等级：</td><td id="degreeTD"></td></tr>
	        	</table>
	        	</div>
	        	
	        	<table id="assessmentTable" class="table table-bordered">
	        		<tr>
	        			<th style="text-align:center;" width="100px;">项目</th>
	        			<th style="text-align:center;">总分</th>
	        			<th style="text-align:center;">指标</th>
	        			<th style="text-align:center;">分值</th>
	        			<th style="text-align:center;">得分</th>
	        			<th style="text-align:center;">评价情况记载</th>
	        		</tr>
	        		<tr>
	        			<td rowspan="4">安全保密</td>
	        			<td rowspan="4">10</td>
	        			<td>1.入闱期间，手机等通讯工具及时上交集中管理。</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_0" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        			<td rowspan="4"><textarea style="height:150px;" id="firstTxt">${assessmentMap['remark_0'] }</textarea></td>
	        		</tr>
	        		<tr>
	        			<td>2.入闱期间，不擅自离开闱点，遇有特殊情况及时报告。</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_1" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>3.认真阅读并在保密责任书、出闱须知上签字，并严格遵守保密纪律。</td>
	        			<td columnName="itemTotalScore">3</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="3" />
	        					<c:set var="scoreIndex" value="score_2" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>4.出闱前，彻底删除所使用的电脑及U盘上有关试题及答案的电子文档，各校稿、草稿纸等命题材料按规定上交回收。</td>
	        			<td columnName="itemTotalScore">3</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="3" />
	        					<c:set var="scoreIndex" value="score_3" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		
	        		<tr>
	        			<td rowspan="4">工作态度</td>
	        			<td rowspan="4">10</td>
	        			<td>1.按时到入闱地点报到，参加命题业务培训会。（不参加培训会该项不得分）</td>
	        			<td columnName="itemTotalScore">3</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="3" />
	        					<c:set var="scoreIndex" value="score_4" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        			<td rowspan="4"><textarea style="height:150px;" id="secondTxt">${assessmentMap['remark_4'] }</textarea></td>
	        		</tr>
	        		<tr>
	        			<td>2.重视学科联系人提出的问题或意见，及时进行相应修改或处理。</td>
	        			<td columnName="itemTotalScore">3</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="3" />
	        					<c:set var="scoreIndex" value="score_5" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>3.工作期间精神饱满，与闱点内其他人员和谐相处。</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_6" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>4.在规定时间内完成命题任务，无拖延。</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_7" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		
	        		<tr>
	        			<td rowspan="18">命题质量</td>
	        			<td rowspan="2">试卷结构 10</td>
	        			<td>1.先填写《命题细目表》，经学科联系人审核签字后再实施命题。</td>
	        			<td columnName="itemTotalScore">3</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="3" />
	        					<c:set var="scoreIndex" value="score_8" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        			<td rowspan="2"><textarea style="height:60px;" id="thirdTxt">${assessmentMap['remark_8'] }</textarea></td>
	        		</tr>
	        		<tr>
	        			<td>2.命题细目表填写规范，认知层次、难度层次、覆盖面等符合考试大纲或命题考点规定。（首次填写成功给满分，每修改一次扣2分）</td>
	        			<td columnName="itemTotalScore">7</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
        						<c:set var="totalScore" value="7" />
	        					<c:set var="scoreIndex" value="score_9" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		
	        		<tr>
	        			<td rowspan="2">难度控制 10</td>
	        			<td>1.难度预估表估计难度值与题卡估计难度层次对应。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_10" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        			<td rowspan="2"><textarea style="height:60px;" id="fourthTxt">${assessmentMap['remark_10'] }</textarea></td>
	        		</tr>
	        		<tr>
	        			<td>2.预估及格分数线控制在55～65分之间。</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_11" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td rowspan="5">试卷规范 15</td>
	        			<td>1.试题及答案卷头、页脚内容正确。（课程代码、名称、题分栏、试卷总分、页码、页码合计等）（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_12" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        			<td rowspan="5"><textarea style="height:180px;" id="fifthTxt">${assessmentMap['remark_12'] }</textarea></td>
	        		</tr>
	        		<tr>
	        			<td>2.试题及答案大小题号、题型名称、题数、题分和题型指导语正确。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">4</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="4" />
	        					<c:set var="scoreIndex" value="score_13" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>3.选择题备选项代码、个数正确。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_14" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>4.填空题、主观题预留答题空间合理，版面美观。</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_15" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>5.试题、答案编码符合《命题工作手册》规定的四级编码方式。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">2</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="2" />
	        					<c:set var="scoreIndex" value="score_16" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>

	        		<tr>
	        			<td rowspan="9">试题编制 45</td>
	        			<td>1.试题、答案编制无文字、标点符号差错。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_17" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        			<td rowspan="9"><textarea style="height:280px;" id="sixthTxt">${assessmentMap['remark_17'] }</textarea></td>
	        		</tr>
	        		<tr>
	        			<td>2.试题、答案编制语言通顺、简明扼要、无歧义。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_18" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>3.选择题编制规范。（题干与备选项构成的句子逻辑上成立，题干对正确选项无明显暗示，备选项长度基本一致、具有同质性、数字选项正确有序、无明显不合理拼凑备选项）（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_19" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>4.试题内容无前后提示。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_20" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>5.主观性试题编制符合《命题工作手册》要求。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5 </td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_21" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>6.试题与答案内容相符。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_22" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>7.评分点划分合理，无小数评分点，评分点最高分值不超过题型要求，如有必要附有恰当的评分说明。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_23" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>8.选择题正确答案分布均衡。（一处问题扣1分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_24" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		<tr>
	        			<td>9.所命两套试卷符合平行试卷要求，无重题；与两年内所考试卷亦无重题。（一处问题扣2分）</td>
	        			<td columnName="itemTotalScore">5</td>
	        			<td>
	        				<select class="scoreSelect" textType="scoreValue" disabled="disabled">
	        					<c:set var="totalScore" value="5" />
	        					<c:set var="scoreIndex" value="score_25" />
	        					<c:forEach var="x" begin="0" end="${totalScore}" step="1">
		        					<c:if test="${assessmentMap[scoreIndex] == x}">
		        						<option value="${x }" selected>${x }</option>
		        					</c:if>
		        					<c:if test="${assessmentMap[scoreIndex] != x}">
		        						<option value="${x }" >${x }</option>
		        					</c:if>
								</c:forEach>
	        				</select>
	        			</td>
	        		</tr>	        		
	        		
	        		<tr>
	        			<td colspan="4" style="text-align:right;">总分</td>
	        			<td id="teacherTotalScore"></td>
	        			<td></td>
	        		</tr>
	        		
	        	</table>
		        	
	        	<div style="text-align:center;">
	        		说明:（1）评价等级分为A、B、C三个等级，A为优秀、B为中等、C为不合格。
						（2）A:86—100；B:85—75；C:74分以下。	        		
	        	</div>
	        </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
	
	$("#editAssessmentBtn").on('click',function(){
		$("select[textType='scoreValue']").each(function(){
			$(this).attr("disabled",false);
		});
		
		$("textarea").each(function(){
			$(this).attr("disabled",false);
		});
		
		$("#saveAssessmentBtn").show();
		$("#editAssessmentBtn").hide();
	});
	
	$("#saveAssessmentBtn").on('click',function(){
		var array=new Array();
		var flag=true;
		var i=1;
		$("select[textType='scoreValue']").each(function(){
			if($(this).attr("disabled")){
				alert("现在是预览状态,无法保存,请点击编辑按钮来编辑评分!");
				flag=false;
				return false;
			}
			var val = $(this).val();
			var remark="";
			if(i<5){
				remark=$("#firstTxt").val();
			}else if(i<9){
				remark=$("#secondTxt").val();
			}else if(i<11){
				remark=$("#thirdTxt").val();
			}else if(i<13){
				remark=$("#fourthTxt").val();
			}else if(i<18){
				remark=$("#fifthTxt").val();
			}else {
				remark=$("#sixthTxt").val();
			}
			var obj={
				"assessmentSortNo":i,
				"score":val,
				"remark":remark
			};
			array.push(obj);
			i++;
		});
		var teacher={
				"teacherId":${teacher.id},
				"taskId":${task.id},
				"score":$("#teacherTotalScore").html(),
				"createById":${curUser.id},
				"updateById":${curUser.id},
				"details":array
		};
 		 if(flag){
 			$(document).mask('正在处理，请稍等...');
			$.ajax({
				type : "POST",
				url : "${ctx}/teacherAssessment/setScore",
				data : JSON.stringify(teacher), 
				contentType : "application/json; charset=utf-8",
				dataType : "json",
				success : function(callback) {
					$(document).unmask();
					if(callback.flag=='success'){
						alert(callback.msg);
						$("select[textType='scoreValue']").each(function(){
							$(this).attr("disabled",true);
						});
						$("textarea").each(function(){
							$(this).attr("disabled",true);
						});
						$("#saveAssessmentBtn").hide();
						$("#editAssessmentBtn").show();
					}else{
						alert(callback.msg);
					}
				}
			});   
		} 
	});
	
	$("select[textType='scoreValue']").change(function(){
		//var val = $(this).val() ;		//当前指针所在位置的值
		//var itemTotalScore = $(this).parent().parent().children("[columnName='itemTotalScore']").html();
		//$(this).val(val);
		calcStat();
	}); 
	
	calcStat();
	
	$("textarea").each(function(){
		$(this).attr("disabled",true);
	});
	$("#saveAssessmentBtn").hide();
	$("#editAssessmentBtn").show();
});

function calcStat(){
	var total=0;
	$("[textType='scoreValue']").each(function(){
		var itemTotalScore = $(this).val();
		total=Number(total)+Number(itemTotalScore);
	});
	$("#teacherTotalScore").html(total);
	$("#totalScoreTD").html(total);
	if(total < 75)
		$("#degreeTD").html("C");
	else if(total < 86)
		$("#degreeTD").html("B");
	else 
		$("#degreeTD").html("A");
		
	
}
</script>
        