<div class="panel panel-default">
  <div>
    <!--标题-->
    <div class="panel-title">
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item active" aria-current="page">历史成绩查询</li>
        </ol>
      </nav>
    </div>
  </div>

  <div class="panel-body ml-sm " [hidden]="editShowType=='only'">
    <!--查询条件-->
    <div class="row mb-3 ml-1" [hidden]="editShowType=='only'">
      <div class="col-lg-12">
        <form  class="form-inline">
          <!-- 支持排序 -->
          <!-- <div class="input-group mr-1 input-group-sm">
            <label>考生姓名：</label>
            <input name="query" [(ngModel)]="query.std_name" class="input-sm form-control" type="text" value="" maxlength="64"
              placeholder="请输入考生姓名">
          </div> -->
          <div class="input-group mr-1 input-group-sm">
            <label>准考证号：</label>
            <input name="ticket_no" [(ngModel)]="query.ticket_no" class="input-sm form-control" type="text" value="" maxlength="64"
              placeholder="请输入考生准考证号">
          </div>
          <div class="input-group mr-1 input-group-sm">
            <label>老考号：</label>
            <input name="old_ticket_no" [(ngModel)]="query.old_ticket_no" class="input-sm form-control" type="text" value="" maxlength="64"
              placeholder="请输入考生老考号">
          </div>
          <div class="input-group mr-1 input-group-sm">
            <label>身份证号：</label>
            <input name="cert_no" [(ngModel)]="query.cert_no" class="input-sm form-control" type="text" value="" maxlength="64"
              placeholder="请输入考生身份证号">
          </div>
          <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="searchStdScore()">
            <i class="fa fa-search"></i> 查询</button>&nbsp;&nbsp;
          <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="reset()">
                <i class="fa fa-undo"></i> 重置</button>
        </form>
      </div>
    </div>


    <!--表格-->
    <div class="row" [hidden]="editShowType=='only'">
      <div class="col-sm-12 ml-0">
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
          <thead>
            <tr>
              <th>序号</th>
              <th align="center">考试年月</th>
              <th>考生姓名</th>
              <th align="center">准考证号</th>
              <th align="center">课程代码</th>
              <th>课程名称</th>
              <th>课程学分</th>
              <th align="center">成绩</th>
               <!--<th>状态</th> -->
              <th>成绩性质</th>
              <th>专业</th>
              <th>主考学校</th> 
              <th>备注</th> 
            </tr>
          </thead>
          <tbody>
            <tr *ngFor="let item of historyScore; let i = index">
              <td>{{i+1}}</td>
              <td align="center">{{item.exam_year_month}}</td>
              <td>{{item.std_name}}</td>
              <td align="center">{{item.ticket_no}}</td>
              <td align="center">{{item.course_code}}</td>
              <td>{{item.course_name}}</td>
              <td>{{item.course_score}}</td>
              <td align="right">{{item.final_score | frameDict : 'score_flag'}}</td>
               <!--<td>{{item.status_name}}</td> -->
              <td>
                  <span *ngIf="item.score_source === 1">统考成绩</span>
                  <span *ngIf="item.score_source === 2">已顶替</span>
                  <span *ngIf="item.score_source === 5">免考</span>
                  <span *ngIf="item.score_source === 6">转入成绩</span>
                  <span *ngIf="item.score_source === 7 || item.score_source === 8  || item.score_source === 9">合成成绩</span>
                  <span *ngIf="item.score_source === 14">违规</span>
                  <span *ngIf="item.score_source === 15">作弊</span>
                  
              </td>
               <td>{{item.major_name}}</td>
              <td>{{item.org_name}}</td> 
              <td title="{{item.remark}}">{{carouselContentFilter(item.remark)}}</td>
            </tr>
            <tr *ngFor="let item of paperScore; let i = index" >
              <td>{{orderNum+1}}</td>
              <td  align="center">{{item.exam_year_month}}</td>
              <td>{{item.std_name}}</td>
              <td  align="center">{{item.ticket_no}}</td>
              <td align="center">{{item.course_code}}</td>
              <td>{{item.course_name}}</td>
              <td></td>
              <td align="right">{{item.final_score | frameDict : 'PaperScoreLevel'}}</td>
               <!--<td>{{item.status_name}}</td>-->
              <td>
                  毕业论文
              </td>
               <td>{{item.major_name}}</td>
              <td>{{item.org_name}}</td> 
              <td title="{{item.remark}}">{{carouselContentFilter(item.remark)}}</td>
            </tr>
          </tbody>
        </table>
      </div>
   
    </div>
  </div>

</div>

