<div class="content-heading  justify-content-between">
  <div>评审结果通知</div>
  <div class="float-right">
    <div class="row">
      <div class="wd-xl wd-sm mr-1">
        <ngx-select [items]="schoolArray" [(ngModel)]="query.school_id" (ngModelChange)="queryBatchArray()" placeholder="学校"
            [autoClearSearch]="true" optionValueField="school_id" optionTextField="code_name">
        </ngx-select>
      </div>
      <div class="wd-xl wd-sm mr-1">
          <ngx-select [items]="batchArray" [(ngModel)]="query.batch_id" (ngModelChange)="requestData()" placeholder="批次"
              [autoClearSearch]="true" optionValueField="batch_id" optionTextField="batch_name">
          </ngx-select>
      </div>
      <div class="wd-xl wd-sm mr-1">
        <ngx-select [items]="majorArray" [(ngModel)]="query.major_ids" (ngModelChange)="selectMajor()" placeholder="专业"
            [autoClearSearch]="true" optionValueField="major_id" optionTextField="major_name" [multiple]="true">
        </ngx-select>
      </div>
      <div class="wd-xl wd-sm mr-1">
        <ngx-select [items]="optrArray" [(ngModel)]="query.optr_ids" (ngModelChange)="selectOptr()" placeholder="评审老师"
            [autoClearSearch]="true" optionValueField="optr_id" optionTextField="optr_name" [multiple]="true">
        </ngx-select>
      </div>      
    </div>
  </div>
</div>
<tabset class="bg-white p-0" justified="true">
  <tab>
    <ng-template tabHeading>
      <span class="table-sort"><em class="far fa-user fa-fw"></em> 准考</span>
    </ng-template>
    <div style="text-align: right;margin-top: 2px;margin-bottom: 2px;margin-right: 10px;">
      <button class="btn btn-primary" type="button"  (click)="sendPassedNotice()">准考通知</button>
    </div>
    <div class="table-responsive bg-white table-full">
      <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr>
          <th width="5%">序号</th>
          <th width="15%">专业名称</th>
          <th width="15%">专业方向</th>
          <th>导师名称</th>
          <th>考生姓名</th>
          <th>报名号</th>
          <th>联系电话</th>
          <th>考生类型</th>
        </tr>
        </thead>
        <tbody>
        <tr *ngFor="let v of passedPager.getRecords(); let i = index">
          <td>{{i+1}}</td>
          <td>{{v.major_name}}</td>
          <td>{{v.aspect_name}}</td>
          <td>{{v.enr_doct_name}}</td>
          <td>{{v.std_name}}</td>
          <td>{{v.exam_id}}</td>
          <td>{{v.std_mobile}}</td>
          <td [innerHTML]="v.std_edu | frameDict:'StdEduType'"></td>
        </tr>
        </tbody>
      </table>
      <frame-pager [url]="'./final/review/std/pass/notice/page.htm'" 
        [pagerParams]="{school_id: query.school_id,batch_id: query.batch_id, major_ids: this.query.major_ids, optr_ids: this.query.optr_ids, pass_type: 'passed'}" #passedPager></frame-pager>
    </div>
  </tab>
  <tab>
    <ng-template tabHeading>
      <span class="table-sort"><em class="far fa-user fa-fw"></em> 不予准考</span>
    </ng-template>
    <div style="text-align: right;margin-top: 2px;margin-bottom: 2px;margin-right: 10px;">
      <button class="btn btn-primary" type="button" (click)="sendNoPassedNotice()">不予准考通知</button>
    </div>
    <div class="table-responsive bg-white table-full">
      <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr>
          <th width="5%">序号</th>
          <th width="15%">专业名称</th>
          <th width="15%">专业方向</th>
          <th>导师名称</th>
          <th>考生姓名</th>
          <th>报名号</th>
          <th>联系电话</th>
          <th>考生类型</th>
        </tr>
        </thead>
        <tbody>
        <tr *ngFor="let v of noPassedPager.getRecords(); let i = index">
          <td>{{i+1}}</td>
          <td>{{v.major_name}}</td>
          <td>{{v.aspect_name}}</td>
          <td>{{v.enr_doct_name}}</td>
          <td>{{v.std_name}}</td>
          <td>{{v.exam_id}}</td>
          <td>{{v.std_mobile}}</td>
          <td [innerHTML]="v.std_edu | frameDict:'StdEduType'"></td>
        </tr>
        </tbody>
      </table>
      <frame-pager [url]="'./final/review/std/pass/notice/page.htm'" 
        [pagerParams]="{school_id: query.school_id,batch_id: query.batch_id, major_ids: query.major_ids, optr_ids: query.optr_ids, pass_type: 'no_passed'}" #noPassedPager></frame-pager>
    </div>    
  </tab>
</tabset>


