<div class="panel panel-default mg" ng-controller="PaperTaskBatchTeacherAssessmentsCtrl" cg-busy="{promise:loading,message:'正在加载...'}">
<div class="panel-body">
	<div class="input-group col-md-4">
   		<div class="input-group-addon"><i class="glyphicon glyphicon-search"></i></div>
		<input type="text" class="form-control" ng-model="search.task.taskNo" placeholder="试卷编号" />
	</div>
	<div ng-repeat="assessment in assessments | filter: search | orderBy: 'assessment.task.taskNo'">
		<h3 class="text-center">
			自学考试全国统考命题教师评价表
		</h3>
		<h5 class="text-center">
			 <span> 教师姓名：{{assessment.task.propositionTeacherBean.name}}</span> 
			 <spana class="m-l">课程代码：{{assessment.task.course.code}}</span>
			 <span class="m-l">课程名称：{{assessment.task.course.name}}</span>
			 <span class="m-l"> 试卷代码：{{assessment.task.taskNo}}</span>
		</h5>
		<h5 class="text-center">
			 <span> 评定人：{{assessment.task.primarySecretaryBean.name}}</span> 
			 <spana class="m-l">评定分数：{{assessment.totalScore}}</span>
			 <span class="m-l">评定等级：
			 	<span ng-if="assessment.totalScore > 85">A</span>
			 	<span ng-if="assessment.totalScore < 85 && assessment.totalScore > 74">B</span>
			 	<span ng-if="assessment.totalScore < 75">C</span>
			 </span>
		</h5>
		<div>
			<table class="table table-bordered">
				<thead>
					<tr>
						<td class="col-md-1">项目</td>
						<td>总分</td>
						<td class="col-md-5">指标</td>
						<td>分值</td>
						<td class="col-md-1">得分</td>
						<td class="col-md-3">评分情况记载</td>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="item in assessmentItems">
						<td ng-if="item.group" rowspan="{{item.groupRow}}">{{item.group}}</td>
						<td ng-if="item.totalScore" rowspan="{{item.scoreRow}}">{{item.totalScore}}</td>
						<td>{{item.title}}</td>
						<td>{{item.score}}</td>
						<td>{{assessment.details[$index].score}}</td>
						<td>{{assessment.details[$index].remark}}</td>
					</tr>
					<tr>
	        			<td colspan='3' style="text-align:right;">合计：</td>
	        			<td>100</td>
	        			<td>{{assessment.totalScore}}</td>
	        			<td></td>
	        		</tr>
				</tbody>
			</table>
		</div>
		
		<div class="m-t">
			<p class="text-center"><b>说明:（1）评价等级分为A、B、C三个等级，A为优秀、B为中等、C为不合格。 （2）A:86—100；B:85—75；C:74分以下。</b></p>
		</div>
	</div>
</div>
</div>
