<div class="modal-header">
    <h4 class="modal-title pull-left">【{{ResponseEntity.group_name}}】考生列表</h4>
</div>

<tabset class="bg-white p-0" justified="true" *ngIf="currentEntity!==undefined">
    <tab [active]="ResponseEntity.type === 1">
      <ng-template tabHeading>
        <span class="table-sort">
          <em class="far fa-user fa-fw"></em> 面试考生</span>
      </ng-template>
      <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr>
          <th>序号</th>
          <th>考生姓名</th>
          <th>身份证号</th>
          <th>准考证号</th>
          <th>性别</th>
          <th>考试科目</th>
          <th>所在考场</th>
        </tr>
        </thead>
        <tbody>
        <tr *ngFor="let v of layoutPager.getRecords();let i=index">
          <td class="align-middle">{{i+1}}</td>
          <td class="align-middle">{{v.std_name}}</td>
          <td class="align-middle">{{v.cert_id}}</td>
          <td class="align-middle">{{v.ticket_no}}</td>
          <td class="align-middle">{{v.std_sex}}</td>
          <td class="align-middle">{{v.subject_name}}</td>
          <td class="align-middle"><span *ngIf="v.room_seq">{{v.group_name}}-第【{{v.room_seq}}】考场</span></td>
        </tr>
        </tbody>
      </table>
      <frame-pager [url]="'./interview/std/report/total/page.htm'"  [showSearch]="true" [pagerLimit] = 10
                   [pagerParams]="{ly_group_id: currentEntity.ly_group_id, batch_id: currentEntity.batch_id, 
                    exam_date:currentEntity.exam_date, time_type: currentEntity.time_type, flag : 0}" 
                   #layoutPager></frame-pager>
    </tab>
  
    <tab [active]="ResponseEntity.type === 2">
      <ng-template tabHeading>
        <span class="table-sort"><em
          class="far fa-user fa-fw"></em> 已进场考生</span>
      </ng-template>
      <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr>
          <th>序号</th>
          <th>考生姓名</th>
          <th>身份证号</th>
          <th>准考证号</th>
          <th>性别</th>
          <th>考试科目</th>
          <th>所在考场</th>
        </tr>
        </thead>
        <tbody>
        <tr *ngFor="let v of inroomPager.getRecords();let i=index">
          <td class="align-middle">{{i+1}}</td>
          <td class="align-middle">{{v.std_name}}</td>
          <td class="align-middle">{{v.cert_id}}</td>
          <td class="align-middle">{{v.ticket_no}}</td>
          <td class="align-middle">{{v.std_sex}}</td>
          <td class="align-middle">{{v.subject_name}}</td>
          <td class="align-middle"><span *ngIf="v.room_seq">{{v.group_name}}-第【{{v.room_seq}}】考场</span></td>
        </tr>
        </tbody>
      </table>
      <frame-pager [url]="'./interview/std/report/total/page.htm'"  [showSearch]="true" [pagerLimit] = 10
                   [pagerParams]="{ly_group_id: currentEntity.ly_group_id, batch_id: currentEntity.batch_id, 
                    exam_date:currentEntity.exam_date, time_type: currentEntity.time_type, flag : 1}" #inroomPager></frame-pager>
    </tab>
  
  
    <tab [active]="ResponseEntity.type === 3">
      <ng-template tabHeading>
        <span class="table-sort"><em
          class="far fa-user fa-fw"></em> 未进场考生</span>
      </ng-template>
      
      <table class="table table-striped table-hover table-bordered">
        <thead>
          <tr>
            <th>序号</th>
            <th>考生姓名</th>
            <th>身份证号</th>
            <th>准考证号</th>
            <th>性别</th>
            <th>考试科目</th>
            <th>所在考场</th>
          </tr>
          </thead>
          <tbody>
          <tr *ngFor="let v of noroomPager.getRecords();let i=index">
            <td class="align-middle">{{i+1}}</td>
            <td class="align-middle">{{v.std_name}}</td>
            <td class="align-middle">{{v.cert_id}}</td>
            <td class="align-middle">{{v.ticket_no}}</td>
            <td class="align-middle">{{v.std_sex}}</td>
            <td class="align-middle">{{v.subject_name}}</td>
            <td class="align-middle">
              <span *ngIf="v.room_seq">{{v.group_name}}-第【{{v.room_seq}}】考场</span>
            </td>
          </tr>
        </tbody>
      </table>
  
      <frame-pager [url]="'./interview/std/report/total/page.htm'"  [showSearch]="true" [pagerLimit] = 10
      [pagerParams]="{ly_group_id: currentEntity.ly_group_id, batch_id: currentEntity.batch_id, 
       exam_date:currentEntity.exam_date, time_type: currentEntity.time_type, flag : 2}"  #noroomPager></frame-pager>
    </tab>
  </tabset>

<div class="modal-footer">
    <div>
      <div class="btn-group mb-1 mr-1" dropdown>
        <button class="btn dropdown-toggle btn-secondary " type="button" dropdownToggle>导出
          <span class="caret"></span>
        </button>
        <div *dropdownMenu class="dropdown-menu" role="menu">
          <a class="dropdown-item text-primary" href="#" (click)="downloadStd(1)">导出面试考生</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item text-primary" href="#" (click)="downloadStd(2)">导出已进场考生</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item text-primary" href="#" (click)="downloadStd(3)">导出未进场考生</a>
        </div>
      </div>
    </div>
    <button class="btn btn-secondary" type="button" (click)="closeWindow()">关闭窗口</button>
</div>
  