<div class="content-heading  justify-content-between">
  <div>违纪考生</div>
  <div class="float-right">
    <div class="btn-group ml-3 mr-5" 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" href="#" (click)="doUploaFile()">导入违纪考生</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="requestWithThread('./score/ym/make/notice.htm', {}, {confirmMsg:'确定要重新生成所有违规处理告知书吗？'})">生成违规处理告知书</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#" (click)="requestWithThread('./score/ym/make/decision.htm', {}, {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>
      <th>考试日期</th>
      <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.std_name}}</td>
      <td>{{v.cert_id}}</td>
      <td>{{v.province_name}}</td>
      <td>{{v.exam_id}}</td>
      <td>{{v.ticket_no}}</td>
      <td>{{v.violation_no}}</td>
      <td>{{v.exam_date}}</td>
      <td>
        <span *ngIf="v.exam_subject" class="text-success" [tooltip]="v.exam_subject">考试科目说明</span>
      </td>
      <td>
        <span *ngIf="v.violation_remark" class="text-danger" [tooltip]="v.violation_remark">违规行为说明</span>
      </td>
      <td>
        <span *ngIf="v.country_rule" class="text-success" [tooltip]="v.country_rule">国家处理办法</span>
      </td>
      <td>
        <span *ngIf="v.school_rule" class="text-success" [tooltip]="v.school_rule">学校处理办法</span>
      </td>

      <td>
        <div class="btn-group" dropdown style="margin-top: -2px;">
          <button class="btn dropdown-toggle btn-secondary btn-sm" type="button" dropdownToggle>告知书
            <span class="caret"></span>
          </button>
          <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
            <a class="dropdown-item" href="#" (click)="downloadNotice(v)" *ngIf="v.notice_file">下载</a>
            <div class="dropdown-divider"*ngIf="!v.notice_file"></div>
            <a class="dropdown-item" href="#" (click)="makeStdNotice(v,false)" *ngIf="!v.notice_file">生成</a>
            <div class="dropdown-divider"*ngIf="v.notice_file"></div>
            <a class="dropdown-item" href="#" (click)="makeStdNotice(v,true)"  *ngIf="v.notice_file">重制</a>
          </div>
        </div>
      </td>

      <td>
        <div class="btn-group" dropdown style="margin-top: -2px;" >
          <button class="btn dropdown-toggle btn-secondary btn-sm" type="button" dropdownToggle>决定书
            <span class="caret"></span>
          </button>
          <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
            <a class="dropdown-item" href="#" (click)="downloadDecision(v)" *ngIf="v.aspect_image">下载</a>
            <div class="dropdown-divider"*ngIf="!v.aspect_image"></div>
            <a class="dropdown-item" href="#" (click)="makeStdDecision(v,false)" *ngIf="!v.aspect_image">生成</a>
            <div class="dropdown-divider"*ngIf="v.aspect_image"></div>
            <a class="dropdown-item" href="#" (click)="makeStdDecision(v,true)"  *ngIf="v.aspect_image">重制</a>
          </div>
        </div>
      </td>
    </tr>
    </tbody>
  </table>
  <frame-pager [url]="'./score/ym/violation/page.htm'" #pager></frame-pager>
</div>


