<div class="content-heading  justify-content-between">
  <div>成绩检核
    <span *ngIf="currStd" class="ml-2 text-primary" style="font-size:18pt;">{{currStd.std_name}}
      <span class="ml-2">{{currStd.cert_id}}</span>
      <span class="ml-2">{{currStd.std_sex}}</span>
      <span class="ml-2">{{currStd.province_name}}</span>
    </span>
  </div>
  <div class="float-right">
    <div class="row">
      <app-std-reg-search [height]="50" [font]="16" (chooseStudent)="queryScore($event)"></app-std-reg-search>
    </div>

  </div>
</div>

<ng-container *ngIf="aspectMap">
  <div class="card card-default">
    <div class="card-header text-1-2">科目原始分</div>
    <div class="card-body">
      <div class="table-responsive table-bordered">
        <table class="table table-striped table-bordered table-hover">
          <thead>
          <tr>
            <th class="th-index">#</th>
            <th>科目代码</th>
            <th>科目名称</th>
            <th>乐器/舞种</th>
            <th>违规</th>
            <th>科目分</th>
            <th *ngFor="let s of subjectArray">{{s.value}}评委</th>
          </tr>
          </thead>
          <tbody>
          <tr *ngFor="let sb of aspectMap?.SubjectScoreArray;let i = index;">
            <td>{{i + 1}}</td>
            <td>{{sb.subject_id}}</td>
            <td>{{sb.subject_name}}</td>
            <td>{{sb.variety_name}}</td>
            <td>{{sb.discipline_notice}}</td>
            <td>{{sb.subject_score}}</td>
            <td *ngFor="let s of subjectArray" [tooltip]="sb['jn'+s.text]">{{sb['js' + s.text]}}</td>
          </tr>

          </tbody>
        </table>
      </div>
    </div>
  </div>
  <div class="card card-default" *ngFor="let aspect of aspectMap?.AspectArray">
    <div class="card-header text-1-2">【{{aspect.a_aspect_name}}】
      <!-- 乐器/舞种 -->
      <span *ngIf="aspect.show_variety_flag === 'Active' && aspect.variety_name">【{{aspect.variety_name}}】</span>
      <!-- 初试成绩 -->
      <span>
        【<span *ngIf="aspect.aspect_batchs>1">初试：</span>
        {{aspect.score_1_value}}
        <!-- 初试合格 -->
            <span *ngIf="aspect.score_1_qualified">
                <span [innerHTML]=" (aspect.score_1_qualified | frameStatusCustom:['合格','不合格']) "></span>
          </span>
        <span *ngIf="aspect.qualified_score_value_1">(合格线:{{aspect.qualified_score_value_1}})</span>
        】</span>

    </div>
    <div class="card-body">
      <div class="table-responsive table-bordered">
        <table class="table table-striped table-bordered table-hover">
          <thead>
          <tr>
            <th style="width:5%;">#</th>
            <th style="width:15%;">科目代码</th>
            <th style="width:25%;">科目名称</th>
            <th style="width:25%;">乐器/舞种</th>
            <th style="width:15%;">专业原始分</th>
            <th style="width:15%;">专业科目分</th>
          </tr>
          </thead>
          <tbody>
          <ng-container *ngFor="let batch_id of aspect.aspect_batchs | numberArray">
            <ng-container *ngIf="aspectMap['SubjectArray_'+aspect.aspect_id+'_'+batch_id].length>0">
              <tr *ngIf="aspect.aspect_batchs>1">
                <td [colSpan]="6">
                  <span>{{(batch_id + '') | frameDict:'ExamBatchName'}}</span>
                </td>
              </tr>
              <tr *ngFor="let sb of aspectMap['SubjectArray_'+aspect.aspect_id+'_'+batch_id]">
                <td style="width:5%;">{{sb.subject_order}}</td>
                <td style="width:15%;">{{sb.subject_id}}</td>
                <td style="width:25%;">{{sb.subject_name}}</td>
                <td style="width:25%;">{{sb.variety_name}}</td>
                <td style="width:15%;">{{sb.subject_original_score}}</td>
                <td style="width:15%;">{{sb.subject_final_score}}</td>
              </tr>
            </ng-container>
          </ng-container>

          </tbody>
        </table>
      </div>
    </div>
  </div>
</ng-container>
