<ng-container *ngIf="agent">
  <div class="content-heading  justify-content-between">
    <div>准考证 - {{agent?.ly_agent_name}}</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)="downloadReport( {report_name:'LayoutMaterialTicketWithRoom', ly_agent_id: agent.ly_agent_id, report_title :'数码印刷材料(有考场)-'+agent.ly_agent_name})">数码印刷(有考场)</a>

          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#"
             (click)="FuncService.ajaxDownload('frame/report/download.htm', {report_name:'LayoutMaterialTicketWithoutRoom', report_title :'数码印刷材料(无考场)-'+agent.ly_agent_name, ly_agent_id: agent.ly_agent_id})">数码印刷(无考场)</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#"
             (click)="requestWithThread('./layout/material/ticket/make.htm', {ly_agent_id: agent.ly_agent_id}, {confirmMsg:'确定要重新生成所有准考证吗？'})">重新生成准考证</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>报考专业</th>
        <th>准考证号</th>
        <th>生源地</th>
        <th>考生姓名</th>
        <th>证件号码</th>
        <th>考生性别</th>
      </tr>
      </thead>
      <tbody>
      <tr *ngFor="let v of pager.getRecords(); let i = index">
        <td>{{v.aspect_name}}</td>
        <td>{{v.aspect_ticket_num}}</td>
        <td>{{v.province_name}}</td>
        <td>{{v.std_name}}</td>
        <td>{{v.cert_id}}</td>
        <td>{{v.std_sex}}</td>
        <td>{{v.std_mobile}}</td>
      </tr>
      </tbody>
    </table>
    <frame-pager [url]="'./layout/material/aspect/page.htm'" #pager [pagerParams]="{ly_agent_id: agent.ly_agent_id}"
                 [autoRequest]="false"></frame-pager>
  </div>
</ng-container>
