<div class="modal-header">
  <h4 class="modal-title pull-left">笔试材料下载 - 【{{this['material_name']}}】【{{this['group_name']}}】</h4>
</div>
<div class="modal-body">
  <tabset class="bg-white p-0" justified="true">
    <tab>
      <ng-template tabHeading><em class="fa fas fa-cog"></em> 参数配置</ng-template>
      <div class="card mt-2" [formGroup]="detailForm">
        <div class="form-group row" *ngIf="this['subject_name'] !== undefined">
          <label class="col-lg-2 col-form-label text-lg-right">考试科目</label>
          <div class="col-lg-10 col-md-10">
            <input class="form-control" type="text" [readOnly]="true" [value]="this['subject_name']"/>
          </div>
        </div>
        <div class="form-group row">
          <label class="col-lg-2 col-form-label text-lg-right">纸张宽度(mm)</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="page_width"
                   [(ngModel)]="currentEntity.page_width"
                   maxlength="128"/>
            <form-valid [form]="detailForm" fieldName="page_width"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_width" errorCode="min"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_width" errorCode="max"></form-valid>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">纸张高度(mm)</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="page_height"
                   [(ngModel)]="currentEntity.page_height"
                   maxlength="128"/>
            <form-valid [form]="detailForm" fieldName="page_height"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_height" errorCode="min"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_height" errorCode="max"></form-valid>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">行空白高(px)</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="row_margin"
                   [(ngModel)]="currentEntity.row_margin"
                   maxlength="128"/>
            <form-valid [form]="detailForm" fieldName="row_margin"></form-valid>
            <form-valid [form]="detailForm" fieldName="row_margin" errorCode="min"></form-valid>
            <form-valid [form]="detailForm" fieldName="row_margin" errorCode="max"></form-valid>
          </div>


        </div>

        <div class="form-group row" *ngIf="this['material_name'] !=='门贴'">
          <label class="col-lg-2 col-form-label text-lg-right">每页行数</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="page_rows" [(ngModel)]="currentEntity.page_rows"
                   maxlength="4"/>
            <form-valid [form]="detailForm" fieldName="page_rows"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_rows" errorCode="min"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_rows" errorCode="max"></form-valid>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">每页列数</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="page_columns"
                   [(ngModel)]="currentEntity.page_columns" maxlength="4"/>
            <form-valid [form]="detailForm" fieldName="page_columns"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_columns" errorCode="min"></form-valid>
            <form-valid [form]="detailForm" fieldName="page_columns" errorCode="max"></form-valid>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">横排模式</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="page_horizontal" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.page_horizontal"> </select>
          </div>
        </div>

        <div class="form-group row">
          <label class="col-lg-2 col-form-label text-lg-right">显示号段</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="ticket_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.ticket_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">专业考号</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="ticket_aspect_num" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.ticket_aspect_num"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="ticket_font"
                   [(ngModel)]="currentEntity.ticket_font"
                   maxlength="2"/>
          </div>
        </div>

        <div class="form-group row">
          <label class="col-lg-2 col-form-label text-lg-right">科目显示</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="subject_name_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.subject_name_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">用专业名</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="group_name_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.group_name_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="subject_name_font"
                   [(ngModel)]="currentEntity.subject_name_font" maxlength="2"/>
          </div>
        </div>

        <div class="form-group row" *ngIf="this['material_name']==='门贴'">
          <label class="col-lg-2 col-form-label text-lg-right">校名显示</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="school_name_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.school_name_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">学校名称</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="text" formControlName="school_name_text"
                   [(ngModel)]="currentEntity.school_name_text" maxlength="64"/>

          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="school_name_font"
                   [(ngModel)]="currentEntity.school_name_font" maxlength="2"/>
          </div>
        </div>

        <div class="form-group row" *ngIf="this['material_name'] !== '卷袋'">
          <label class="col-lg-2 col-form-label text-lg-right">考场地址 </label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="room_addr_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.room_addr_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="room_addr_font"
                   [(ngModel)]="currentEntity.room_addr_font" maxlength="2"/>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">切刀模式</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="cutter_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.cutter_flag"> </select>
          </div>
        </div>

        <div class="form-group row" *ngIf="this['material_name'] === '桌贴' || this['material_name'] === '桌贴(带照片)' || this['material_name'] === '签字单' ">
          <label class="col-lg-2 col-form-label text-lg-right">证件号码</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="cert_id_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.cert_id_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="cert_id_font"
                   [(ngModel)]="currentEntity.cert_id_font" maxlength="2"/>
          </div>
        </div>

        <div class="form-group row" *ngIf="this['material_name'] === '桌贴' || this['material_name'] === '桌贴(带照片)'">
          <label class="col-lg-2 col-form-label text-lg-right">考生姓名</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="std_name_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.std_name_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="std_name_font"
                   [(ngModel)]="currentEntity.std_name_font" maxlength="2"/>
          </div>
        </div>
        <div class="form-group row" *ngIf="this['material_name'] === '桌贴' || this['material_name'] === '桌贴(带照片)' ">
          <label class="col-lg-2 col-form-label text-lg-right">座位号</label>
          <div class="col-lg-2 col-md-2">
            <select class="form-control" formControlName="room_seq_flag" frameDict [dictName]="'FrameStatus'"
                    [tipFlag]="false"
                    [(ngModel)]="currentEntity.room_seq_flag"> </select>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">字体大小</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="room_seq_font"
                   [(ngModel)]="currentEntity.room_seq_font" maxlength="2"/>
          </div>
        </div>

        <div class="form-group row" *ngIf="this['material_name'] === '桌贴(带照片)' || this['material_name'] === '卷袋' || this['material_name'] === '签字单'">
          <ng-container *ngIf="this['material_name'] === '卷袋'">
            <label class="col-lg-2 col-form-label text-lg-right"
                   [style.color]="currentEntity.bag_font_color">卷带颜色</label>
            <div class="col-lg-2 col-md-2">
              <input class="form-control" type="text" [readOnly]="true" [(colorPicker)]="currentEntity.bag_font_color"
                     [value]="currentEntity.bag_font_color" [cpCancelButton]="true" [cpHeight]="'310px'"
                     formControlName="std_image_width" maxlength="7"/>
            </div>
          </ng-container>
          <label class="col-lg-2 col-form-label text-lg-right">图片宽度</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="std_image_width"
                   [(ngModel)]="currentEntity.std_image_width" maxlength="3"/>
          </div>
          <label class="col-lg-2 col-form-label text-lg-right">图片高度</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="std_image_height"
                   [(ngModel)]="currentEntity.std_image_height" maxlength="3"/>
          </div>
          <ng-container *ngIf="this['material_name'] === '签字单'">
          <label class="col-lg-2 col-form-label text-lg-right">签字字体</label>
          <div class="col-lg-2 col-md-2">
            <input class="form-control" type="number" formControlName="school_name_font"
                   [(ngModel)]="currentEntity.school_name_font" maxlength="3"/>
          </div>
          </ng-container>

        </div>


      </div>
    </tab>
    <!-- 门贴 -->
    <tab *ngIf="this['material_name'] === '门贴'">
      <ng-template tabHeading><em class="fa fas fa-desktop"></em> 门贴预览</ng-template>
      <div class="card text-center row">
        <div class="card-body ml-3 mr-3">
          <ng-container *ngFor="let tc of currentEntity.page_rows | numberArray">
            <div [style.width]="100 / currentEntity.page_columns + '%'"
                 *ngFor="let t of currentEntity.page_columns | numberArray"
                 [style.marginTop]="currentEntity.row_margin +'px'">
              <div class="col-lg-12  col-xs-12 text-center"
                   [style.fontSize]="currentEntity.school_name_font + 'pt'">{{currentEntity.school_name_text}}</div>
              <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.subject_name_font + 'pt'"
                   [style.marginTop]="currentEntity.row_margin +'px'">
                <span
                  *ngIf="this['subject_name'] !== undefined && currentEntity.group_name_flag === 'InActive'">{{this['subject_name']}}</span>
                <span
                  *ngIf="this['subject_name'] === undefined || currentEntity.group_name_flag === 'Active'">{{this['group_name']}}</span>
              </div>
              <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.room_name_font + 'pt'"
                   [style.marginTop]="currentEntity.row_margin +'px'"
                   *ngIf="currentEntity.room_name_flag === 'Active'">{{ResponseArray[t - 1].room_name}}</div>
              <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.room_addr_font + 'pt'"
                   [style.marginTop]="currentEntity.row_margin +'px'"
                   *ngIf="currentEntity.room_addr_flag === 'Active'">{{ResponseArray[t - 1].room_addr}}</div>
              <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.ticket_font + 'pt'"
                   [style.marginTop]="currentEntity.row_margin +'px'" *ngIf="currentEntity.ticket_flag === 'Active'">
                <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                    {{ResponseArray[t - 1].min_aspect_ticket_num}}
                  ------  {{ResponseArray[t - 1].max_aspect_ticket_num}}
                </span>
                <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                    {{ResponseArray[t - 1].min_ticket_no}}  ------  {{ResponseArray[t - 1].max_ticket_no}}
                </span>
              </div>

            </div>
          </ng-container>
        </div>
      </div>
    </tab>
    <!-- 桌贴无考生照片 -->
    <tab *ngIf="this['material_name'] === '桌贴'">
      <ng-template tabHeading><em class="fa fas fa-desktop"></em> 桌贴预览</ng-template>
      <div class="card text-center">
        <div class="card-body row ">
          <ng-container *ngFor="let tc of currentEntity.page_rows | numberArray">
            <div [style.width]="(100 / currentEntity.page_columns - 3) + '%'"
                 *ngFor="let t of currentEntity.page_columns | numberArray"
                 [style.marginTop]="currentEntity.std_margin_top +'px'"
                 [style.marginLeft]="currentEntity.std_margin_left + 'px'">
              <ng-container
                *ngIf="ResponseMap['StdArray'].length>=currentEntity.page_rows *(tc-1) + t -1">
                <div class="col-lg-12  col-xs-12 text-center" *ngIf="currentEntity.school_name_flag === 'Active'"
                     [style.fontSize]="currentEntity.school_name_font + 'pt'">{{currentEntity.school_name_text}}</div>

                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.room_addr_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'"
                     *ngIf="currentEntity.room_addr_flag === 'Active'">{{ResponseMap['LyRoom'].room_addr}}</div>

                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.room_name_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'"
                     *ngIf="currentEntity.room_name_flag === 'Active'">{{ResponseMap['LyRoom'].room_name}}</div>

                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.subject_name_font + 'pt'"
                     *ngIf="currentEntity.subject_name_flag === 'Active'"
                     [style.marginTop]="currentEntity.row_margin +'px'">
                <span
                  *ngIf="this['subject_name'] !== undefined && currentEntity.group_name_flag === 'InActive'">{{this['subject_name']}}</span>
                  <span
                    *ngIf="this['subject_name'] === undefined || currentEntity.group_name_flag === 'Active'">{{this['group_name']}}</span>
                </div>
                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.cert_id_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'"
                     *ngIf="currentEntity.cert_id_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].cert_id}}</div>

                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.ticket_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'" *ngIf="currentEntity.ticket_flag === 'Active'">
                  <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                      {{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].aspect_ticket_num}}
                  </span>
                  <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                      {{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].ticket_no}}
                  </span>
                </div>
                <div class="row text-center">
                  <div class="col-lg-{{currentEntity.room_seq_flag==='Active'?8:12}} text-center"
                       [style.fontSize]="currentEntity.std_name_font + 'pt'"
                       [style.marginTop]="currentEntity.row_margin +'px'"
                       *ngIf="currentEntity.std_name_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].std_name}}</div>

                  <div class="col-lg-4 text-center"
                       [style.fontSize]="currentEntity.room_seq_font + 'pt'"
                       [style.marginTop]="currentEntity.row_margin +'px'"
                       *ngIf="currentEntity.room_seq_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].ly_room_seq}}</div>
                </div>
                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.std_sex_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'"
                     *ngIf="currentEntity.std_sex_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].std_sex}}</div>

              </ng-container>
            </div>
          </ng-container>
        </div>
      </div>
    </tab>
    <!-- 带照片桌贴 -->
    <tab *ngIf="this['material_name'] === '桌贴(带照片)'">
      <ng-template tabHeading><em class="fa fas fa-desktop"></em> 桌贴预览</ng-template>
      <div class="card text-center">
        <div class="card-body row ">
          <ng-container *ngFor="let tc of currentEntity.page_rows | numberArray">
            <div [style.width]="(100 / currentEntity.page_columns - 3) + '%'"
                 *ngFor="let t of currentEntity.page_columns | numberArray"
                 [style.marginTop]="currentEntity.std_margin_top +'px'"
                 [style.marginLeft]="currentEntity.std_margin_left + 'px'">
              <ng-container
                *ngIf="ResponseMap['StdArray'].length>=currentEntity.page_rows *(tc-1) + t -1">
                <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.subject_name_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'"
                     *ngIf="currentEntity.subject_name_flag === 'Active'">
                <span
                  *ngIf="this['subject_name'] !== undefined && currentEntity.group_name_flag === 'InActive'">{{this['subject_name']}}</span>
                  <span
                    *ngIf="this['subject_name'] === undefined || currentEntity.group_name_flag === 'Active'">{{this['group_name']}}</span>
                </div>

                <div class="row" [style.marginTop]="'5px'">
                  <div class="col-lg-4  col-xs-4">
                    <img class="img-fluid rounded " [style.width]="'96px'" [style.height]="'96px'"
                         [src]="FrameService.getParamValue('EnrolMaterialWebPath') + ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].std_image"
                         alt=""/>
                  </div>
                  <div class="col-lg-8  col-xs-8">
                    <div class="col-lg-12  col-xs-12 " [style.fontSize]="currentEntity.cert_id_font + 'pt'"
                         [style.marginTop]="currentEntity.row_margin +'px'"
                         *ngIf="currentEntity.cert_id_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].cert_id}}</div>

                    <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.ticket_font + 'pt'"
                         [style.marginTop]="currentEntity.row_margin +'px'"
                         *ngIf="currentEntity.ticket_flag === 'Active'">
                  <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                      {{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].aspect_ticket_num}}
                  </span>
                      <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                      {{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].ticket_no}}
                  </span>
                    </div>
                    <div class="row text-center">
                      <div class="col-lg-{{currentEntity.room_seq_flag==='Active'?8:12}} text-center"
                           [style.fontSize]="currentEntity.std_name_font + 'pt'"
                           [style.marginTop]="currentEntity.row_margin +'px'"
                           *ngIf="currentEntity.std_name_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].std_name}}</div>

                      <div class="col-lg-4 text-center"
                           [style.fontSize]="currentEntity.room_seq_font + 'pt'"
                           [style.marginTop]="currentEntity.row_margin +'px'"
                           *ngIf="currentEntity.room_seq_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].ly_room_seq}}</div>
                    </div>
                  </div>
                </div>
              </ng-container>
            </div>
          </ng-container>
        </div>
      </div>
    </tab>
    <!-- 卷袋 -->
    <tab *ngIf="this['material_name'] === '卷袋'">
      <ng-template tabHeading><em class="fa fas fa-desktop"></em> 卷袋预览</ng-template>
      <div class="card" [style.color]="currentEntity.bag_font_color">
        <div class="card-body row ml-3">
          <ng-container *ngFor="let tc of currentEntity.page_rows | numberArray">
            <div [style.width]="100 / currentEntity.page_columns-3 + '%'"
                 *ngFor="let t of currentEntity.page_columns | numberArray"
                 [style.border]="'1px solid ' + currentEntity.bag_font_color"
                 [style.marginTop]="currentEntity.std_margin_top +'px'"
                 [style.marginLeft]="currentEntity.std_margin_left +'px'">

              <div class="col-lg-12  col-xs-12 text-center"
                   [style.fontSize]="currentEntity.subject_name_font + 'pt'"
                   [style.backgroundColor]="currentEntity.bag_font_color" [style.color]="'white'">
                <span [style.marginTop]="currentEntity.row_margin +'px'"
                      [style.marginBottom]="currentEntity.row_margin +'px'">{{this['group_name']}}</span></div>

              <div class="row">
                <div class="col-lg-7  col-xs-7">
                  <div class="col-lg-12  col-xs-12 " [style.fontSize]="currentEntity.room_name_font + 'pt'"
                       [style.marginTop]="currentEntity.row_margin +'px'">考试科目：{{this['subject_name']}}</div>
                  <div class="col-lg-12  col-xs-12 " [style.fontSize]="currentEntity.room_name_font + 'pt'"
                       [style.marginTop]="currentEntity.row_margin +'px'">考场序号：{{ ResponseArray[t - 1].room_name}}</div>
                  <div class="col-lg-12  col-xs-12" [style.fontSize]="currentEntity.room_name_font + 'pt'"
                       [style.marginTop]="currentEntity.row_margin +'px'"
                       *ngIf="currentEntity.ticket_flag === 'Active'">开始号码：
                    <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                    {{ResponseArray[t - 1].min_aspect_ticket_num}}
                </span>
                    <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                    {{ResponseArray[t - 1].min_ticket_no}}
                </span>
                  </div>
                  <div class="col-lg-12  col-xs-12" [style.fontSize]="currentEntity.room_name_font + 'pt'"
                       [style.marginTop]="currentEntity.row_margin +'px'"
                       *ngIf="currentEntity.ticket_flag === 'Active'">结束号码：
                    <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                    {{ResponseArray[t - 1].max_aspect_ticket_num}}
                </span>
                    <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                   {{ResponseArray[t - 1].max_ticket_no}}
                </span>
                  </div>
                </div>
                <!-- 二维码 -->
                <div class="col-lg-5  col-xs-5">
                  <img class="img-fluid rounded " [style.width]="'128px'" [style.height]="'128px'"
                       [style.marginTop]="currentEntity.row_margin +'px'"
                       [src]="'/a/layout/material/written/room/qrcode.htm?ly_room_id=' + ResponseArray[t - 1].ly_room_id +'&height=96&width=96'"
                       alt=""/>
                </div>

              </div>


            </div>
          </ng-container>
        </div>
      </div>
    </tab>
    <!-- 核对单 -->
    <tab *ngIf="this['material_name'] === '签字单'">
      <ng-template tabHeading><em class="fa fas fa-desktop"></em> 签字单预览</ng-template>
      <div class="card">
        <div class="card-body row ">
          <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.subject_name_font + 'pt'"
               [style.marginTop]="'5px'"
               *ngIf="currentEntity.subject_name_flag === 'Active'">
                <span
                  *ngIf="this['subject_name'] !== undefined && currentEntity.group_name_flag === 'InActive'">{{this['subject_name']}}</span>
            <span
              *ngIf="this['subject_name'] === undefined || currentEntity.group_name_flag === 'Active'">{{this['group_name']}}</span>
          </div>
          <div class="col-lg-12 " [style.fontSize]="currentEntity.room_addr_font + 'pt'"
               [style.marginTop]="'5px'">
            <span class="ml-3">考场序号：{{ResponseMap['LyRoom'].room_name}}</span>
            <span class="ml-3">考场地址：{{ResponseMap['LyRoom'].room_addr}}</span>
            <span class="ml-3">考生数量：{{ResponseMap['LyRoom'].real_std_total}}</span>
            <span class="ml-3">准考证号：
                <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                    {{ResponseMap['LyRoom'].min_aspect_ticket_num}} --- {{ResponseMap['LyRoom'].max_aspect_ticket_num}}
                </span>
                <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                    {{ResponseMap['LyRoom'].min_ticket_no}} --- {{ResponseMap['LyRoom'].max_ticket_no}}
                </span>
            </span>
          </div>

          <ng-container *ngFor="let tc of currentEntity.page_rows | numberArray">
            <div [style.width]="(100 / currentEntity.page_columns - 3) + '%'"
                 *ngFor="let t of currentEntity.page_columns | numberArray"
                 [style.marginTop]="currentEntity.std_margin_top +'px'"
                 [style.marginLeft]="currentEntity.std_margin_left + 'px'">
              <ng-container
                *ngIf="ResponseMap['StdArray'].length>=currentEntity.page_rows *(tc-1) + t -1">

                <div class="col-lg-12  col-xs-12 " [style.fontSize]="currentEntity.cert_id_font + 'pt'"
                     [style.marginTop]="currentEntity.row_margin +'px'"
                     *ngIf="currentEntity.cert_id_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].cert_id}}</div>

                <div class="row" [style.marginTop]="'5px'">
                  <div class="col-lg-4  col-xs-4">
                    <img class="img-fluid rounded " [style.width]="'96px'" [style.height]="'96px'"
                         [src]="FrameService.getParamValue('EnrolMaterialWebPath') + ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].std_image"
                         alt=""/>
                  </div>
                  <div class="col-lg-8  col-xs-8">
                    <div class="col-lg-12  col-xs-12 text-center" [style.fontSize]="currentEntity.ticket_font + 'pt'"
                         [style.marginTop]="currentEntity.row_margin +'px'"
                         *ngIf="currentEntity.ticket_flag === 'Active'">
                        <span *ngIf="currentEntity.ticket_aspect_num === 'Active'">
                            {{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].aspect_ticket_num}}
                        </span>
                            <span *ngIf="currentEntity.ticket_aspect_num === 'InActive'">
                            {{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].ticket_no}}
                        </span>
                    </div>
                    <div class="row">
                      <div class="col-lg-{{currentEntity.room_seq_flag==='Active'?8:12}}  text-center"
                           [style.fontSize]="currentEntity.std_name_font + 'pt'"
                           [style.marginTop]="currentEntity.row_margin +'px'"
                           *ngIf="currentEntity.std_name_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].std_name}}</div>

                      <div class="col-lg-4 text-center"
                           [style.fontSize]="currentEntity.room_seq_font + 'pt'"
                           [style.marginTop]="currentEntity.row_margin +'px'"
                           *ngIf="currentEntity.room_seq_flag === 'Active'">{{ResponseMap['StdArray'][currentEntity.page_columns * (tc - 1) + t - 1].ly_room_seq}}</div>
                    </div>
                    <div class="col-lg-12  col-xs-12 text-left" [style.fontSize]="currentEntity.school_name_font + 'pt'"
                         [style.marginTop]="currentEntity.row_margin + 5 +'px'"
                         *ngIf="ResponseMap['SubjectArray'].length === 1 || this['subject_name'] !== undefined">
                        <span class="ml-1">签字 ___________</span>
                    </div>
                    <ng-container *ngIf="ResponseMap['SubjectArray'].length > 1 && this['subject_name'] === undefined">

                      <div class="col-lg-12  col-xs-12 text-left" [style.fontSize]="currentEntity.school_name_font + 'pt'"
                           [style.marginTop]="currentEntity.row_margin + 5 +'px'" *ngFor="let sb of ResponseMap['SubjectArray']">
                        <span class="ml-1">{{sb['subject_name']}} ___________</span>
                      </div>

                    </ng-container>
                  </div>
                </div>
              </ng-container>
            </div>
          </ng-container>
        </div>
      </div>
    </tab>
  </tabset>
</div>

<div class="modal-footer">
  <button class="btn btn-primary" type="button" (click)="goDownload({'preview_flag': 'Active'})">
    预览下载
  </button>
  <button class="btn btn-primary ml-3" type="button" (click)="goDownload({'preview_flag': 'InActive'})">
    下载{{this['material_name']}}
  </button>
  <button class="btn btn-secondary ml-2" type="button" (click)="closeWindow()">关闭窗口</button>
</div>
