<div class="content-heading  justify-content-between">
  <div>考生管理</div>
  <div class="float-right">
    <div class="btn-group mb-1 mr-1" dropdown>
      <button class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>考生功能
        <span class="caret"></span>
      </button>
      <div *dropdownMenu class="dropdown-menu" role="menu">
        <a class="dropdown-item" href="#" (click)="ajaxDownload('school/school/std/download.htm')">导出考生明细</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="showUploadModal()">导入考生</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="ajaxDownload('school/school/std/photo.htm')">导出考生照片</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="ajaxDownload('school/school/std/school/download.htm')">导出二级学校账户</a>
      </div>
    </div>
  </div>
</div>
<div class="ml-0 table-responsive bg-white" [hidden]="viewStep !== 'page'">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th>#</th>
      <th><a href="#" (click)="pager.sort('aspect_name')">报考专业</a></th>
      <th><a href="#" (click)="pager.sort('std_school')">毕业学校</a></th>
      <th><a href="#" (click)="pager.sort('std_name')">考生姓名</a></th>
      <th>身份证号</th>
      <th>高考报名号</th>
      <th>性别</th>
      <th>联系电话</th>
      <th>缴费渠道</th>
      <th><a href="#" (click)="pager.sort('pay_time')">缴费时间</a></th>
      <th></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{i+1}}</td>
      <td><a href="#"  (click)="showAspectModal(v)">{{v.aspect_name}}</a></td>
      <td>{{v.std_school}}</td>
      <td><a href="#"  (click)="showStdModal(v)">{{v.std_name}}</a>
      </td>
      <td>{{v.cert_id}}</td>
      <td>{{v.exam_id}}</td>
      <td>{{v.std_sex}}</td>
      <td>{{v.std_mobile1}}</td>
      <td><span *ngIf="v.channel_id">{{v.channel_id | frameDict: 'StdPayChannel'}}</span>
        <span *ngIf="v.channel_id===undefined && v.pay_status==='Active'">现金收费( <a class="btn btn-danger btn-sm" 
          href="#" 
          (click)="pager.optrRecord('school/school/std/unpay.htm',v,{successMsg:'操作已经完成，该考生此专业设置为未缴费！', confirmMsg: '确定取消该考生的人工缴费记录吗？', successMsgType:'Swal'})">取消</a>)</span>
        <span *ngIf="v.pay_status!=='Active'" class="text-danger">未缴费</span>
      </td>
      <td><span *ngIf="v.pay_time">{{v.pay_time}}</span>
        <span *ngIf="v.pay_time === undefined">
          <a class="btn btn-primary btn-sm" href="#"
          (click)="pager.optrRecord('school/school/std/pay.htm', v, {successMsg:'操作已经完成，该考生进行人工收费！', confirmMsg: '确定要对该考生进行人工收费吗？', successMsgType:'Swal'})">现金收费</a>
        </span>
      </td>
      <td>
        <div class="btn-group mb-1 mr-1" dropdown *ngIf="v.ticket_num">
          <button class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>准考证功能
            <span class="caret"></span>
          </button>
          <div *dropdownMenu class="dropdown-menu" role="menu" >
            <a class="dropdown-item" href="#"
            (click)="pager.optrRecord('school/school/std/ticket/make.htm',v,{successMsg:'操作已经完成！', confirmMsg: '确定要重新生成该考生准考证吗？', successMsgType:'Swal'})">重新生成准考证</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#" (click)="goDownloadTicket(v)">下载准考证</a>
          </div>
        </div>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'school/school/std/page.htm'" #pager></frame-pager>
</div>

<!--<frame-uploader [hidden]="viewStep !== 'upload'" [templateUrl]="'单招考生导入模版.xlsx'" #uploader
                [uploadUrl]="'school/school/std/upload.htm'" [filterFile]="['xls','xlsx']"
                [uploadTitle]="'通过Excel文件导入考生信息'"
                [allCallback]="reload.bind(this)"
                [uploadTemplate]="uploadTemplate" [params]="uploadParam" [cancel]="goPage.bind(this)"
                [showLoading]="true"></frame-uploader>-->

