<div class="content-heading  justify-content-between">
  <div>录取考生管理</div>
</div>

<div class="row ml-1 mt-3" *ngIf="showSearchCondition==true">
  <div class="col-lg-12">
    <form >
      <table>
        <tr style="height: 60px">
          <td align='right' style="width: 80px">省份：</td>
          <td style="width: 180px"> 
            <input [(ngModel)]="query.region" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">民族：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.nation" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">系(院)：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.department" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">专业：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.major" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
        </tr>

        <tr style="height: 60px;">
          <td align='right' style="width: 80px">性别：</td>
          <td style="width: 180px"> 
            <select class="custom-select" [(ngModel)]="query.sex" [ngModelOptions]="{standalone: true}">
              <option value="">请选择</option>
              <option *ngFor="let opt of FrameSexArray" value="{{opt.dict_value}}">
                {{opt.dict_text}}
              </option>
            </select>
          </td>
          <td align='right' style="width: 80px">投档单位名称：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.filing_unit" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">毕业类别：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.graduation_type" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">考试类型：</td>
          <td style="width: 160px">
            <input [(ngModel)]="query.examination_type" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
        </tr>

        <tr style="height: 60px;">
          <td align='right' style="width: 80px">批次：</td>
          <td style="width: 180px"> 
            <input [(ngModel)]="query.batch" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">科类：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.families" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 100px">计划性质：</td>
          <td style="width: 180px">
            <input [(ngModel)]="query.planning_nature" type="text" style="width: 180px;margin-right: 4px" [ngModelOptions]="{standalone: true}">
          </td>
          <td align='right' style="width: 80px">是否报道：</td>
          <td style="width: 180px"> 
            <select class="custom-select" [(ngModel)]="query.isReported" [ngModelOptions]="{standalone: true}">
              <option value="">请选择</option>
              <option *ngFor="let opt of IsReportedArray" value="{{opt.dict_value}}">
                {{opt.dict_text}}
              </option>
            </select>
          </td>
        </tr>

        <tr>
          <td align='center' colspan="8">
              <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="pager.reload();">
                  <i class="fa fa-search"></i> 查询</button>
                <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="reset()">
                  <i class="fa fa-undo"></i> 重置</button>
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>



<div >

  <div class="float-left">
    <div class="input-group">
        <input class="form-control ml-2 mt-2" style="width: 200px;" type="text" [(ngModel)]="query.query" (keyup)="search" placeholder="模糊查询" />
        <div class="input-group-append mt-2" style="height: 35px;">
          <button class="btn btn-outline-secondary bg-white" (click)="pager.goSearch()">
            <em class="fa fas fa-search"></em>
          </button>
        </div>

        <button class="btn btn-primary mt-2 ml-2 mr-1 mb-1 btn-sm "  style="height: 35px;" data-toggle="tooltip" data-placement="left"  (click)="toggleShowSearchCondition()"
      title="高级查询">
      <span *ngIf="showSearchCondition==true">隐藏</span><span *ngIf="showSearchCondition==false">显示</span>高级查询</button>
    </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)="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)="downloadReport( {report_name:'StdAdmissionReport', report_title :'考生录取数据汇总'})">导出录取考生数据</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 nowrap><span class="table-sort" (click)="pager.sort('no')">序号</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('isreported')">是否报道</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('campus')">校区</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('notification_number')">通知书编号</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('region')">地区</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('examinee_number')">考生号</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_name')">姓名</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('nation')">民族</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('sex')">性别</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('card_no')">考生身份证号</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('department')">系(院)</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('major')">专业</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('filing_unit')">投档单位名称</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('political')">政治面貌</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('address')">考生家庭地址</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('consignee')">收件人</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_Telephone')">考生联系电话</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('postal_code')">邮政编码</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_category')">考生类别</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('graduate_middle_school')">毕业中学</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('graduation_type')">毕业类别</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('ticket_number')">准考证号</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_area_residece')">考生户口所在地区</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('date_of_birth')">出生年月</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('foreign_language')">外语语种</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_features')">考生特征</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_speciality')">考生特长</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_reward_punishment')">考生奖励或处分</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('foreign_language_oral_test')">外语口试</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('political_opinions')">政审意见</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('examination_type')">考试类型</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('batch')">批次</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('families')">科类</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('planning_nature')">计划性质</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('stu_score')">考生成绩</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('characteristic_score')">特征成绩</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('filing_score')">投档成绩</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('care_score')">照顾分</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('college_introduction_score')">院校导入成绩</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('benchmark_score')">专业投档基准成绩</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('additional_score')">专业投档附加成绩</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('volunteering')">投档志愿</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('educational_system')">学制</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('qualification')">专业合格</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('physical_examination')">体检合格</span></th>
      <th nowrap><span class="table-sort" (click)="pager.sort('families_type')">科类性质</span></th>

    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{v.no}}</td>
      <td>{{v.isreported}}</td>
      <td>{{v.campus}}</td>
      <td>{{v.notification_number}}</td>
      <td>{{v.region}}</td>
      <td>{{v.examinee_number}}</td>
      <td>{{v.stu_name}}</td>
      <td>{{v.nation}}</td>
      <td>{{v.sex}}</td>
      <td>{{v.card_no}}</td>
      <td>{{v.department}}</td>
      <td>{{v.major}}</td>
      <td>{{v.filing_unit}}</td>
      <td>{{v.political}}</td>
      <td>{{v.address}}</td>
      <td>{{v.consignee}}</td>
      <td>{{v.stu_Telephone}}</td>
      <td>{{v.postal_code}}</td>
      <td>{{v.stu_category}}</td>
      <td>{{v.graduate_middle_school}</td>
      <td>{{v.graduation_type}}</td>
      <td>{{v.ticket_number}}</td>
      <td>{{v.stu_area_residece}}</td>
      <td>{{v.date_of_birth}}</td>
      <td>{{v.foreign_language}}</td>
      <td>{{v.stu_features}}</td>
      <td>{{v.stu_speciality}}</td>
      <td>{{v.stu_reward_punishment}}</td>
      <td>{{v.foreign_language_oral_test}}</td>
      <td>{{v.political_opinions}}</td>
      <td>{{v.examination_type}}</td>
      <td>{{v.batch}}</td>
      <td>{{v.families}}</td>
      <td>{{v.planning_nature}}</td>
      <td>{{v.stu_score}}</td>
      <td>{{v.characteristic_score}}</td>
      <td>{{v.filing_score}}</td>
      <td>{{v.care_score}}</td>
      <td>{{v.college_introduction_score}}</td>
      <td>{{v.benchmark_score}}</td>
      <td>{{v.additional_score}}</td>
      <td>{{v.volunteering}}</td>
      <td>{{v.educational_system}}</td>
      <td>{{v.qualification}}</td>
      <td>{{v.physical_examination}}</td>
      <td>{{v.families_type}}</td>
    </tr>
    </tbody>
  </table>
  <!-- <frame-pager [url]="'./std/admission/page.htm'" #pager></frame-pager> -->
  <frame-pager [url]="PAGE_URL" [pagerParams]="query" #pager [showSearch]='false'></frame-pager>
</div>

<frame-uploader [uploadUrl]="'std/admission/batchAdmission.htm'" [templateFile]="'模板-导入录取数据.xlsx'" [allowedFileType]="['xlsx']" [confirmMsg]="'确定要继续吗'" (allUpload)="reloadPage()" #uploader></frame-uploader>