<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 modal-lg" role="menu">
        <a class="dropdown-item" href="#" (click)="showModal({'arrayUrl':'frame/zone/province/list.htm'})">手动添加</a>
        <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#" (click)="uploader.downloadTempalte()">下载模版</a>
        <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#" (click)="uploader.uploadFiles()">导入批量注册</a>
        <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#" (click)="sumStuDownload()">导出考生数据</a>
      </div>
    </div>
  </div>
</div>
<div class="table-responsive bg-white table-full">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th><span class="table-sort" (click)="pager.sort('cert_id')">证件号码</span></th>
      <th><span class="table-sort" (click)="pager.sort('std_name')">考生姓名</span></th>
      <th><span class="table-sort" (click)="pager.sort('std_param3')">报考类别</span></th> 
      <th><span class="table-sort" (click)="pager.sort('std_sex')">性别</span></th>
      <th><span class="table-sort" (click)="pager.sort('std_nation')">民族</span></th>
      <th><span class="table-sort" (click)="pager.sort('reg_time')">注册时间</span></th>
      <th><span class="table-sort" (click)="pager.sort('exam_id')">考生号</span></th>
      <th><span class="table-sort" (click)="pager.sort('std_mobile1')">联系电话</span></th>
      <th><span class="table-sort" >审核状态</span></th>
      <th><span class="table-sort" (click)="pager.sort('pay_status')">缴费状态</span></th>
      <th class="th-b-2"></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.cert_id}}</td>
      <td>{{v.std_name}}</td>
      <td>{{v.std_param3 | frameDict:'StdCategory'}}</td> 
      <td>{{v.std_sex | frameDict: 'FrameSex'}}</td>
      <td>{{v.std_nation}}</td>
      <td>{{v.reg_time}}</td>
      <td>{{v.exam_id}}</td>
      <td><span [tooltip]="v.link_mobile">{{v.std_mobile1}}</span></td>
      <td>{{v.verify_status}}</td>
      <td>
        <span *ngIf="v.pay_status=='Active'">
          {{v.pay_status | frameDict: 'StdPayStatus'}}
        </span>
        <span *ngIf="v.pay_status==null || v.pay_status=='InActive'">
          <button class="btn btn-danger mr-1" (click)="pager.optrRecord('std/reg/pay.htm', v, {successMsg:'预报名缴费成功！', confirmMsg: '确定要预报名缴费吗？', successMsgType:'Swal'})">
            &nbsp;缴费</button>
        </span>
      </td>       
      <td><span class="table-button" (click)="showStdDetail(v)"><em
        class="fa-lg fas fa-edit"></em></span>&nbsp;&nbsp;
        <span class="table-button" (click)="pager.optrRecord('std/reg/password.htm', v, {successMsg:'密码重置成功！', confirmMsg: '确定要重置密码吗？', successMsgType:'Swal'})"><em
          class="fa-lg fas fa-users text-primary"></em></span>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./std/reg/page.htm'" #pager></frame-pager>
</div>

<frame-uploader [uploadUrl]="'std/reg/batchReg.htm'" [templateFile]="'模版-导入批量注册.xls'" [allowedFileType]="['xls']" [confirmMsg]="'确定要继续吗'" (allUpload)="reloadPage()" #uploader></frame-uploader>