<div class="panel panel-default">
    <!--标题-->
    <div class="panel-title">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <!-- TODO -->
                <li class="breadcrumb-item">毕业审核</li>
                <li class="breadcrumb-item active" aria-current="page">毕业终审</li>
            </ol>
        </nav>
    </div>
    <div class="panel-body ml-sm" [hidden]="editShowType=='only' || editShowType=='authQuery'  || editShowType=='stdResume'">
        <div class="card card-default">
            <div class="card-body">
                <!--查询条件-->
                <div class="row mb-3 ml-1" [hidden]="editShowType=='only' || editShowType=='authQuery'  || editShowType=='stdResume'">
                    <div class="col-lg-12">
                        <form (ngSubmit)="framePager.goSearch()" class="form-inline">
                            <table>
                            <tr>
                                <td>
                                <div class="input-group mr-1 input-group-sm">
                                <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关键字：</label>
                                <input name="keyword" [(ngModel)]="query.query" class="input-sm form-control" type="text"
                                            value="" maxlength="50" placeholder="请输入查询关键字" style="width:200px;">
                            </div>
                        </td>
                            <!--<div class="input-group mr-1 input-group-sm">
                                <label>市考办：</label>
                                <flex-select [allowClear]="true"
                                    [(items)] = "orgList"
                                    respDataPath= "array"
                                    optionValueField="id"
                                    optionTextField="org_name"
                                    [(ngModel)]="query.cityOrgId"
                                    placeholder="请选择"
                                    [ngModelOptions]="{standalone: true}"
                                    width = "40"
                                    noResultsFound = "无数据"
                                    >
                                </flex-select>
                            </div>&nbsp;&nbsp;
                             <div class="input-group mr-1 input-group-sm">
                                <label>主考学校：</label>
                                <flex-select [allowClear]="true"
                                    [(items)] = "masterSchoolList"
                                    respDataPath= "array"
                                    optionValueField="id"
                                    optionTextField="org_name"
                                    [(ngModel)]="query.masterSchoolId"
                                    placeholder="请选择"
                                    [ngModelOptions]="{standalone: true}"
                                    width = "40"
                                    noResultsFound = "无数据"
                                    >
                                </flex-select>
                            </div>&nbsp;&nbsp;-->
                            <td>
                            <div class="input-group mr-1 input-group-sm">
                                <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;专业：</label>
                                <flex-select [allowClear]="true"
                                    [(items)] = "majorList"
                                    respDataPath= "array"
                                    optionValueField="id"
                                    optionTextField="major_full_name"
                                    [(ngModel)]="query.majorId"
                                    placeholder="请选择"
                                    [ngModelOptions]="{standalone: true}"
                                    width = "150"
                                    noResultsFound = "无数据"
                                    >
                                </flex-select>
                            </div>
                        </td>
                            
                            <td>
                            <!--时间批次 -->                             
                            <div class="input-group mr-1 input-group-sm">
                                <label class="ml-sm">毕业批次：</label>
                                <flex-select [allowClear]="true"
                                            [url]= "'pl/plExamTime/listPlExamTimeForBy.htm'"
                                            respDataPath= "array"
                                            optionValueField="id"
                                            optionTextField="exam_year_month"
                                            [(ngModel)]="query.examTimeId"
                                            placeholder="请选择"
                                            [ngModelOptions]="{standalone: true}"
                                            width = "100"
                                            noResultsFound = "无数据"
                                            >
                                </flex-select>
                            </div>
                        </td>   
                        </tr>
                        <tr>
                            <td>
                            <div class="input-group mr-1 input-group-sm">
                                <label>毕业状态：</label>
                                <select name="status" 
                                    width = "100"
                                    [(ngModel)]="query.status" 
                                    frameDict [dictName]="'ByStatus'" 
                                    [ngModelOptions]="{standalone: true}"
                                    class="form-control">
                                </select>
                            </div>
                        </td>
                        <td>
                            <div class="input-group mr-1 input-group-sm">
                                <label>标识初审通过：</label>
                                <select name="status" 
                                    width = "150"
                                    placeholder="请选择"
                                    [(ngModel)]="query.is_firstauth_pass" 
                                    frameDict [dictName]="'ByIsFirstAuthPass'" 
                                    [ngModelOptions]="{standalone: true}"
                                    class="form-control">
                                </select>
                            </div>
                        </td>
                        <td align="right">
                            <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="framePager.goSearch()">
                                <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 class="row mb-2" [hidden]="editShowType=='only' || editShowType=='authQuery'  || editShowType=='stdResume'">
                    <div class="col-lg-12">
                        <div class="pull-left">
                            <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left"
                                (click)="showEditWin()" title="审核">
								<i class="fa fa-paint-brush"></i> 审核</button>
								<flex-pdf-viewer-modal #flexPdfModal size="bg" [pdfCheckedArray]="framePager.getCheckedArray()" ></flex-pdf-viewer-modal><button class="btn btn-primary mr-1 btn-sm" (click)="flexPdfModal.show();" data-toggle="tooltip" data-placement="left" title="毕业登记表预览"> <i class="fa icon-plus"></i> 毕业登记表预览</button>								                                    
                            <button class="btn btn-primary mr-1 btn-sm" (click)="getRegisterPdfForBatch()" data-toggle="tooltip"
                                data-placement="left" title="毕业登记表">
                                <i class="fa icon-cloud-download"></i> 毕业登记表</button>
                            <button class="btn btn-primary mr-1 btn-sm" (click)="showStdRefDialog(stdRefModal);" data-toggle="tooltip"
                                data-placement="left" title="毕业申请">
                                <i class="fa fa-snowflake"></i> 毕业申请</button>
                            <button class="btn btn-primary mr-1 btn-sm" (click)="showStdResume();" data-toggle="tooltip"
                                data-placement="left" title="修改简历">
                                <i class="fa icon-anchor"></i> 修改简历</button>
                            <button class="btn btn-primary mr-1 btn-sm" (click)="downApplyXls();" data-toggle="tooltip"
                                data-placement="left" title="导出">
                                <i class="fa icon-download"></i> 导出</button>
                                <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left"
                                (click)="callBackApply()" title="撤回">
                                <i class="fa fa-paint-brush"></i> 撤回</button>  
                                
                        </div>

                    </div>
                </div>

                <!--表格-->
                <div class="row">
                    <div class="col-lg-12 ml-0" [hidden]="editShowType=='only' || editShowType=='authQuery'  || editShowType=='stdResume'">
                        <table class="table table-sm table-striped table-hover table-bordered bg-white">
                            <thead>
                                <tr>
                                    <th>
                                        <div class="checkbox c-checkbox">
                                            <label>
                                                <input type="checkbox" (change)="framePager.checkedMasterToggle($event)" />
                                                <span class="fa fa-check"></span>
                                            </label>
                                        </div>
                                    </th>
                                    <th>序号</th>
                                    <th>准考证</th>
                                    <th>身份证</th>
                                    <th>姓名</th>
                                   
                                    <th>专业名称</th>
                                   
                                    <th>主考学校</th>
                                    <th>衔接学校</th>
                                    <th>前置学历</th>
                                    <th>审核状态</th>
                                    <th>是否驳回</th>
                                    <th style="width: 70px;" align="center">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr *ngFor="let item of framePager.getRecords(); let i = index">
                                    <td>
                                        <div class="checkbox c-checkbox input-group-sm">
                                            <label>
                                                <input type="checkbox" [value]="item.id" [(checked)]="item.isChecked"
                                                    [(ngModel)]="item.isChecked" />
                                                <span class="fa fa-check"></span>
                                            </label>
                                        </div>
                                    </td>
                                    <td>{{framePager.pageStart + i}}</td>
                                    <td>{{item.ticket_no}}</td>
                                    <td>{{item.cert_no}}</td>
                                    <td>{{item.std_name}}</td>
                                    
                                    <td>{{item.major_code}}-{{item.major_name}}</td>
                                    
                                    <td>{{item.org_code}}-{{item.org_name}}</td>
                                    <td>{{item.join_org_name}}</td>
                                    <td [innerHTML]="item.is_xuexin_pass | frameDict:'YesOrNo'"></td>
                                    <td [innerHTML]="item.status | frameDict:'ByStatus'"></td>
                                    <td>
                                        <div *ngIf="item.is_auth_back==0" class="text-muted">
                                            {{item.is_auth_back| frameDict:  'YesOrNo' }}</div>
                                        <div *ngIf="item.is_auth_back==1" class="text-danger">
                                            {{item.is_auth_back| frameDict: 'YesOrNo' }}</div>
                                    </td>
                                    <td align="center">
                                        <a href="#" (click)="showEditWin(item)" title="审核"><em
                                                class="fa-lg fas fa-edit mr-1"></em></a>
                                        <a href="#" (click)="deleteApply(item)" title="删除"><em class="fa-lg fas fa-trash mr-1"
                                            style="color:#F56D6D"></em></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- TODO -->
                        <frame-pager [url]="QUERY_URL" hideSearch="true" hasCheck="true" #framePager (preReqEvent)="search($event)"></frame-pager>
                    </div>

                    <!-- 编辑页面 -->
                    <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType!='modal'">
                        <ng-container *ngTemplateOutlet="editTemplateModal">
                        </ng-container>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- only 审核界面-->
    <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='only'">
        <ng-container *ngTemplateOutlet="editTemplateModal">
        </ng-container>
    </div>
    <!-- authQuery 审核记录查询-->
    <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='authQuery'">
        <ng-container *ngTemplateOutlet="authQueryModal">
        </ng-container>
    </div>
    <!--录入分数界面-->
    <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='input'">
        <ng-container *ngTemplateOutlet="manualInputModal">
        </ng-container>
    </div>
    <!--课程顶替界面-->
    <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='repl'">
        <ng-container *ngTemplateOutlet="courseReplModal">
        </ng-container>
    </div>
    <!--创建毕业申请-考生引用界面-->
    <div class="col-lg-12" *ngIf="item && editShowType != null && editShowType =='stdRef'">
        <ng-container *ngTemplateOutlet="stdRefModal">
        </ng-container>
    </div>
    <!-- 考生简历修改 -->
    <div class="col-lg-12" *ngIf="editShowType != null && editShowType =='stdResume'">
        <ng-container *ngTemplateOutlet="stdResumeModal">
        </ng-container>
    </div>
</div>

<!--******************************************************毕业审核详情界面****************************************************-->
<ng-template #editFormTemplate>
<form [formGroup]="formModel" *ngIf="item" class="form-validate form-horizontal" novalidate="">
        <input type="hidden" class="form-control" formControlName="id" [(ngModel)]="item.id" [formControl]="formModel.controls['id']" />
        <div class="row mb-1">
            <!-- 学生基础信息 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <tbody>
                        <tr>
                            <td style="text-align: right" width="7%">姓名</td>
                            <td width="23%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.std_name" readonly/></td>
                            <td style="text-align: right" width="7%">身份证</td>
                            <td width="23%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.cert_no" readonly/></td>
                            <td rowspan="7" style="width:20%;text-align: center">
                                <div *ngIf="item.photo_path" class="text-muted" style="vertical-align:middle;">
                                    <img  [src]="item.photo_path" style="width: 200;height: 200px">
                                </div>
                            </td>
                            <td rowspan="7" style="width:20%;text-align: center">
                                <div *ngIf="item.by_photo" class="text-muted">
                                    <img [src]="item.by_photo" style="width: 200;height: 200px;" alt="替换照片" (click)="uploadByPhoto(item.id);">
                                </div>
                                <div *ngIf="!item.by_photo" class="text-muted" style="align-content: center">
                                    <button class="btn btn-info" (click)="uploadByPhoto(item.id);">
                                        <i class="fa fa-info-circle"> </i> 上传照片
                                    </button>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">准考证</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.ticket_no" readonly/></td>
                            <td style="text-align: right">性别</td>
                            <td>
                                <select [ngModelOptions]="{standalone: true}"
                                    [(ngModel)]="item.std_sex" 
                                    frameDict [dictName]="'StdSexType'" 
                                    class="form-control">
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">民族</td>
                            <td>
                                <select [ngModelOptions]="{standalone: true}"
                                    [(ngModel)]="item.nation" 
                                    frameDict [dictName]="'std_nation'" 
                                    class="form-control">
                                </select>
                            </td>
                            <td style="text-align: right">出生日期</td>
                            <td>
                                <input class="form-control" type="text"  [formControl]="formModel.controls['std_birth']"  DateTimePicker [dpType]="'date'" [dpValue]="item.std_birth" [(ngModel)]="item.std_birth"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">省市自治区</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.native_prov"/></td>
                            <td style="text-align: right">市(县)</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.native_city"/></td>
                        </tr>
                        <tr>
                            <td style="text-align: right">政治面貌</td>
                            <td>
                                <select
                                    [(ngModel)]="item.political" 
                                    frameDict [dictName]="'std_political_status'" 
                                    [ngModelOptions]="{standalone: true}"
                                    class="form-control">
                                </select>
                            </td>
                            <td style="text-align: right">考前学历</td>
                            <td><input class="form-control" type="text" [(ngModel)]="item.pre_edu" [ngModelOptions]="{standalone: true}"/></td>
                        </tr>
                        <tr>
                            <td style="text-align: right">工作单位</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.work_unit"/></td>
                            <td style="text-align: right">联系电话</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.telephone"/></td>
                        </tr>
                        <tr>
                            <td style="text-align: right">家庭地址</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.address"/></td>
                            <td style="text-align: right">邮政编码</td>
                            <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.post_code"/></td>
                        </tr>
                </tbody>
            </table>
        </div>
        <div class="row mb-1">
            <div class="form-inline" style="margin-bottom: 8px; border-left: 3px solid; color: rgb(230, 162, 60);width: 100%;">
                <div style="width:35%" class="form-inline">
                    <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left" (click)="showTicketAssocitDialog(ticketNoAssocitModal);" title="关联">
                        <i class="fa fa-plus"></i> 关联准考证</button>
                    <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left" (click)="saveBaseInfo();" title="保存">
                        <i class="fa fa-save"></i> 保存基本信息</button>
                    <button class="btn btn-primary mr-1 btn-sm" data-toggle="tooltip" data-placement="left" *ngIf="majorLevel == '本科'" (click)="reqCertify();" title="认证">
                        <i class="fa fa-snowflake"></i> 学历认证</button>
                </div>
                <div style="width:65%;text-align: left;">
                    <span class="ml-sm">主考学校： {{item.org_name}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;专业：({{item.major_code}}){{item.major_name}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{majorLevel}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span *ngIf="majorLevel == '本科'"><span *ngIf="certRetDesc == '没有前置学历认证，请确认!'" style="color: #F56D6D">{{certRetDesc}}</span><span *ngIf="certRetDesc != '没有前置学历认证，请确认!'" >{{certRetDesc}}</span></span></span>
                </div>
            </div>
            <!-- 成绩列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>课程代码</th>
                        <th>课程名称</th>
                        <th>课程性质</th>
                        <th>成绩来源</th>
                        <th>最终成绩</th>
                        <th>是否合格</th>
                        <th align="center" style="width:305px;">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of scoreList; let i = index">
                        <td>{{i+1}}</td>
                        <td>{{it.course_code}}</td>
                        <td>{{it.course_name}}</td>
                        <td [innerHTML]="it.course_nature | frameDict:'CourseNature'"></td>

                        <td *ngIf="it.score_source > 0" [innerHTML]="it.score_source | frameDict:'ScoreSource'"></td><!--成绩来源-->
                        <td *ngIf="it.score_source <= 0 && it.score_type == 0">实践课</td>
                        <td *ngIf="it.score_source <= 0 && it.score_type == 3">沟通课</td>
                        <td *ngIf="it.score_source < 0 && !it.score_type"></td>

                        <td>{{formateFinalScore(it)}}</td>
                        <td [innerHTML]="it.is_passed | frameDict:'YesOrNo'"></td>
                        <td>
                            <button class="btn btn-primary" *ngIf="!it.is_passed || it.is_passed=='0'" (click)="showReplDialog(courseReplModal,it.id,it.course_id)">
                                 顶替
                            </button>
                            <button class="btn btn-primary" *ngIf="!it.is_passed || it.is_passed=='0'" (click)="showInputDialog(manualInputModal,it.course_id)">
                                手工录入
                            </button>
                            <button class="btn btn-primary" *ngIf="!it.is_passed || it.is_passed=='0'" (click)="showTurnInDialog(turnInAssocitModal,it.course_id)">
                                转入关联
                            </button>
                            <button class="btn btn-primary" *ngIf="!it.is_passed || it.is_passed=='0'" (click)="showScoreDialog(scoreModal,it.id,it.course_id)">
                                成绩
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="row" style="padding-left: 14px;text-align: center"><label class="text-lg-left">({{item.major_code}}){{item.major_name}}&nbsp;专业描述信息:</label></div>
        <div class="row mb-1" style="padding-left: 14px;">{{item.major_remark}}</div>

        <div class="row" style="text-align: center">
            <label class="col-lg-2 col-form-label text-lg-left">个人简历</label>
        </div>
        <div class="row mb-1">
            <!-- 个人简历列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th width="50px">序号</th>
                        <th width="90px">开始日期</th>
                        <th width="90px">截止日期</th>
                        <th>工作经验</th>
                        <th width="280px">职务</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it3 of resumeList; let i = index">
                        <td>{{i+1}}</td>
                        <td>{{it3.start_date }}</td>
                        <td>{{it3.end_date}}</td>
                        <td>{{it3.work_exp}}</td>
                        <td>{{it3.position}}</td>
                    </tr>
                </tbody>
            </table>
        </div>   
        
        <div class="row" style="text-align: center">
            <label class="col-lg-2 col-form-label text-lg-left">审核记录</label>
        </div>
        <div class="row mb-1">
            <!-- 审核流程列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th width="10%">序号</th>
                        <th width="20%">审核类型</th>
                        <th width="15%">审核时间</th>
                        <th width="20%">受理单位</th>
                        <th width="35%">审核意见</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of authList; let i = index">
                        <td>{{i+1}}</td>
                        <td>{{it.auth_type | frameDict:'ByAuthType'}}</td>
                        <td>{{it.auth_time}}</td>
                        <td>{{it.optr_name}}</td>
                        <td>{{it.auth_remark}}</td>
                    </tr>
                </tbody>
            </table>
        </div>    

        <div class="row mb-1" *ngIf="item && item.status==applyStatus.TO_FIRST_AUDIT_1">
            <!-- 审核状态 -->
            <label class="col-lg-2 col-form-label text-lg-right">审批类型：</label>
            <div class="col-lg-8">
                <label class="radio-inline c-radio" style="margin: 0px !important">
                        <input type="radio" name="radioSelect" value="0" [(ngModel)]="radioSelect" 
                            formControlName="radioSelect" [formControl]="formModel.controls['radioSelect']" />&nbsp;审批通过&nbsp;
                        <span class="fa fa-circle" style="margin: 0px !important"></span>
                </label>
                <label class="radio-inline c-radio" style="margin: 0px !important">
                        <input type="radio" name="radioSelect" value="1" [(ngModel)]="radioSelect" 
                            formControlName="radioSelect" [formControl]="formModel.controls['radioSelect']" />&nbsp;审批驳回&nbsp;
                        <span class="fa fa-circle" style="margin: 0px !important"></span>
                </label>
                <span class="text-danger" *ngIf="formModel.get('radioSelect').hasError('required') && (formModel.get('radioSelect').dirty || formModel.get('radioSelect').touched)">请选择审批类型</span>
            </div>
        </div>
        <div class="row mb-1" *ngIf="item && item.status==applyStatus.TO_FIRST_AUDIT_1">
            <!-- 审核意见 -->
            <label class="col-lg-2 col-form-label text-lg-right">审核意见：</label>
            <div class="col-lg-8">
                <textarea class="form-control" [(ngModel)]="item.remark" [formControl]="formModel.controls['remark']" formControlName="remark" rows="3"></textarea>
            </div>
            <span class="text-danger" *ngIf="formModel.get('remark').hasError('required') && (formModel.get('remark').dirty || formModel.get('remark').touched)">请输入审批意见</span>
        </div>
</form>
<div class="row">
    <frame-uploader #uploader [silenceUpload]="true" [autoUpload]="true" [(uploadUrl)]="UPLOAD_URL"></frame-uploader>
</div>
</ng-template>

<ng-template #editTemplateModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 编辑页面
        </div>
        <button type="button" class="close" (click)="hideModal()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="editFormTemplate"></div>
    </div>

    <div class="modal-footer" style="text-align: center">
        <!--
        <button class="btn btn-info" (click)="doAudit()" *ngIf="item && item.status==applyStatus.TO_FIRST_AUDIT_1">
                <i class="fa fa-info-circle"> </i> 提交
            </button>
        <button class="btn btn-info" (click)="setFirstAuthPass(1)" *ngIf="item && item.status==applyStatus.TO_FIRST_AUDIT_1">
            <i class="fa fa-info-circle"> </i> 标识审核通过
        </button>
        <button class="btn btn-info" (click)="setFirstAuthPass(0)" *ngIf="item && item.status==applyStatus.TO_FIRST_AUDIT_1">
                <i class="fa fa-info-circle"> </i> 取消标识审核通过
            </button>-->
        <button class="btn btn-default" (click)="hideModal()">
            <i class="icon-close"> </i> 关闭
        </button>
    </div>
</div>
</ng-template>

<!-- ***********************************************审核记录查询框******************************************************* -->
<ng-template #authQueryModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 查看页面
        </div>
        <button type="button" class="close" (click)="hideModal()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="authQueryTemplate"></div>
    </div>

    <div class="modal-footer" style="text-align: center">
        <button class="btn btn-default" (click)="hideModal()">
            <i class="icon-close"> </i> 关闭
        </button>
    </div>
</div>
</ng-template>

<ng-template #authQueryTemplate>
<form [formGroup]="formModel" *ngIf="item" class="form-validate form-horizontal" novalidate="">
        <input type="hidden" class="form-control" formControlName="id" [(ngModel)]="item.id" [formControl]="formModel.controls['id']" />
        <div class="row mb-1">
            <!-- 学生基础信息 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <tbody>
                    <tr>
                        <td colspan="2">准考证号：{{item.ticket_no}}</td>
                    </tr>
                    <tr>
                        <td>姓名：{{item.std_name}}</td>
                        <td>性别：{{item.std_sex | frameDict:'StdSexType'}}</td>
                    </tr>
                    <tr>
                        <td>主考学校：{{item.school_name}}</td>
                        <td>专业：{{item.major_name}}</td>
                    </tr>
                    <tr>
                        <td>身份证号码：{{item.cert_no}}</td>
                        <td>联系电话：{{item.telephone}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="row mb-1" style="text-align: center">
            <label class="col-lg-2 col-form-label text-lg-left">审核流程信息</label>
        </div>
        <div class="row mb-1">
            <!-- 审核流程列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th width="10%">序号</th>
                        <th width="20%">审核类型</th>
                        <th width="15%">审核时间</th>
                        <th width="20%">受理单位</th>
                        <th width="35%">审核意见</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of authList; let i = index">
                        <td>{{i+1}}</td>
                        <td>{{it.auth_type | frameDict:'ByAuthType'}}</td>
                        <td>{{it.auth_time}}</td>
                        <td>{{it.optr_name}}</td>
                        <td>{{it.auth_remark}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="row mb-1" style="text-align: center">
            <label class="col-lg-2 col-form-label text-lg-left">成绩列表</label>
        </div>
        <div class="row mb-1">
            <!-- 成绩列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>课程代码</th>
                        <th>课程名称</th>
                        <th>课程性质</th>
                        <th>成绩来源</th>
                        <th>原始成绩</th>
                        <th>最终成绩</th>
                        <th>是否合格</th>
                        
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of scoreList; let i = index">

                        <td>{{i+1}}</td>
                        <td>{{it.course_code}}</td>
                        <td>{{it.course_name}}</td>
                        <td [innerHTML]="it.course_nature | frameDict:'CourseNature'"></td>
                        <span *ngIf="it.score_source > 0">
                            <td [innerHTML]="it.score_source | frameDict:'ScoreSource'"></td><!--成绩来源-->
                        </span>
                        <span *ngIf="it.score_source == 0">
                            <span *ngIf="it.score_type == 0">
                                <td>实践课</td>
                            </span>
                            <span *ngIf="it.score_type == 3">
                                <td>沟通课</td>
                            </span>
                        </span>
                        <td>{{formateOrignScore(it)}}</td><!--原始成绩-->
                        <td>{{formateFinalScore(it)}}</td><!--最终成绩(合成后)-->
                        <td [innerHTML]="it.is_passed | frameDict:'YesOrNo'"></td>

                    </tr>
                </tbody>
            </table>
        </div>
</form>
</ng-template>

<!--*******************************手工录入分数**********************************************************************-->
<ng-template #manualInputModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 编辑页面
        </div>
        <button type="button" class="close" (click)="inputModalWin.hide()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="manualInputTemplate"></div>
    </div>

    <div class="modal-footer">
        <button class="btn btn-info" (click)="saveMannualInput()">
            <i class="fa fa-info-circle"> </i> 保存
        </button>
        <button class="btn btn-default" (click)="inputModalWin.hide()">
            <i class="icon-close"> </i> 取消
        </button>
    </div>
</div>
</ng-template>

<ng-template #manualInputTemplate>
<form [formGroup]="scoreFormModel" class="form-validate form-horizontal" novalidate="">
        <!--课程1-->
        <div class="row mb-1 form-inline" >
            <label class="col-md-2 col-form-label text-md-right">课程代码1</label>
            <div class="col-md-1">
                <input type="text" formControlName="course_code" [(ngModel)]="inputScore.course_code" [formControl]="scoreFormModel.controls['course_code']" style="width: 60px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">课程名称1</label>
            <div class="col-md-1">
                <input type="text" formControlName="course_name" [(ngModel)]="inputScore.course_name" [formControl]="scoreFormModel.controls['course_name']" style="width: 90px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">最终成绩1</label>
            <div class="col-md-1">
                <input formControlName="final_score" type="number" 
                    [(ngModel)]="inputScore.final_score" [formControl]="scoreFormModel.controls['final_score']" style="width: 60px;"/>
            </div>
        </div>
        <!--课程2-->
        <div class="row mb-1 form-inline">
            <label class="col-md-2 col-form-label text-md-right">课程代码2</label>
            <div class="col-md-1">
                <input type="text" [(ngModel)]="inputScore.course_code2" [formControl]="scoreFormModel.controls['course_code2']" style="width: 60px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">课程名称2</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_name2" [formControl]="scoreFormModel.controls['course_name2']" style="width: 90px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">最终成绩2</label>
            <div class="col-md-1">
                <input  type="number" 
                    [(ngModel)]="inputScore.final_score2" [formControl]="scoreFormModel.controls['final_score2']" style="width: 60px;"/>
            </div>
        </div>
        <!--课程3-->
        <div class="row mb-1 form-inline">
            <label class="col-md-2 col-form-label text-md-right">课程代码3</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_code3" [formControl]="scoreFormModel.controls['course_code3']" style="width: 60px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">课程名称3</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_name3" [formControl]="scoreFormModel.controls['course_name3']" style="width: 90px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">最终成绩3</label>
            <div class="col-md-1">
                <input  type="number" 
                    [(ngModel)]="inputScore.final_score3" [formControl]="scoreFormModel.controls['final_score3']" style="width: 60px;"/>
            </div>
        </div>
        <!--课程4-->
        <div class="row mb-1 form-inline">
            <label class="col-md-2 col-form-label text-md-right">课程代码4</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_code4" [formControl]="scoreFormModel.controls['course_code4']" style="width: 60px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">课程名称4</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_name4" [formControl]="scoreFormModel.controls['course_name4']" style="width: 90px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">最终成绩4</label>
            <div class="col-md-1">
                <input  type="number" 
                    [(ngModel)]="inputScore.final_score4" [formControl]="scoreFormModel.controls['final_score4']" style="width: 60px;"/>
            </div>
        </div>
        <!--课程5-->
        <div class="row mb-1 form-inline">
            <label class="col-md-2 col-form-label text-md-right">课程代码5</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_code5" [formControl]="scoreFormModel.controls['course_code5']" style="width: 60px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">课程名称5</label>
            <div class="col-md-1">
                <input type="text"  [(ngModel)]="inputScore.course_name5" [formControl]="scoreFormModel.controls['course_name5']" style="width: 90px;"/>
            </div>

            <label class="col-md-2 col-form-label text-md-right">最终成绩5</label>
            <div class="col-md-1">
                <input  type="number" 
                    [(ngModel)]="inputScore.final_score5" [formControl]="scoreFormModel.controls['final_score5']" style="width: 60px;"/>
            </div>
        </div>
</form>
</ng-template>

<!--*****************************课程顶替**************************************************************************-->
<ng-template #courseReplModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 课程顶替
        </div>
        <button type="button" class="close" (click)="courseReplWin.hide()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="courseReplTemplate"></div>
    </div>

    <div class="modal-footer">
        <button class="btn btn-info" (click)="replSave()">
            <i class="fa fa-info-circle"> </i> 顶替
        </button>
        <button class="btn btn-default" (click)="courseReplWin.hide()">
            <i class="icon-close"> </i> 取消
        </button>
    </div>
</div>
</ng-template>

<ng-template #courseReplTemplate>
<div class="col-lg-12 ml-0">
    <!-- 审核流程列表 -->
    <table class="table table-sm table-striped table-hover table-bordered bg-white">
        <thead>
            <tr>
                <th>
                    <div class="checkbox c-checkbox">
                        <label>
                        </label>
                    </div>
                </th>
                <th width="10%">序号</th>
                <th>课程代码</th>
                <th>课程名称</th>
                <th>成绩</th>
                <th>成绩来源</th>
            </tr>
        </thead>
        <tbody>
            <tr *ngFor="let it of replScoreList; let i = index">
                <td>
                    <div class="checkbox c-checkbox input-group-sm">
                        <label>
                            <label class="radio-inline c-radio" style="margin: 0px !important">
                                <input type="radio" name="radio" [value]="it.id" (click)="replRadioCheckFun(it)"/>
                                <span class="fa fa-circle" style="margin: 0px !important"></span>
                              </label>
                        </label>
                    </div>
                </td>
                <td>{{i+1}}</td>
                <td>{{it.course_code}}</td>
                <td>{{it.course_name}}</td>
                <td>{{it.final_score}}</td>
                <td [innerHTML]="it.score_source | frameDict:'ScoreSource'"></td>
            </tr>
        </tbody>
    </table>
</div>
</ng-template>

<!--*****************************成绩**************************************************************************-->
<ng-template #scoreModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 成绩
            </div>
            <button type="button" class="close" (click)="scoreWin.hide()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="scoreTemplate"></div>
        </div>

        <div class="modal-footer">
           
            <button class="btn btn-default" (click)="scoreWin.hide()">
                <i class="icon-close"> </i> 关闭
            </button>
        </div>
    </div>
</ng-template>

<ng-template #scoreTemplate>
    <div class="col-lg-12 ml-0">
        <!-- 审核流程列表 -->
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <thead>
                <tr>
                    
                    <th>批次</th>
                    <th>成绩</th>
                    <th>状态</th>
                    <th>成绩性质</th>
                    <th>成绩来源</th>
                    <th>专业</th>
                    <th>主考学校</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let it2 of courseScoreList; let i = index">
                    <td>{{it2.year_code}}</td>
                    <td>{{it2.final_score | frameDict : 'score_flag'}}</td>
                    <td>{{it2.status_name}}</td>
                    <td>{{it2.score_type_name}}</td>
                    <td>{{it2.score_source_name}}</td>
                    <td>{{it2.major_name}}</td>
                    <td>{{it2.org_name}}</td>
                    
                </tr>
            </tbody>
        </table>
    </div>
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            专本衔接课成绩、网络助学成绩不能直接用于毕业，必须合成（包括百分百合成）后才能用于毕业。<br>
            合成成绩、沟通课成绩、实践课成绩、毕业论文成绩对应的主考学校必须与毕业主考学校一致，否则不能用于毕业。
        </div>

    </div>

</ng-template>

<!--**********************************老生成绩*******************************************************************-->
<ng-template #oldCjModal>
    <div class="modal-content">
        <div class="modal-header info-success-qm">
            <div class="pull-left">
                <em class="fa-lg fas fa-edit "></em> 老生成绩
            </div>
            <button type="button" class="close" (click)="oldCjWin.hide()">×</button>
        </div>

        <!-- 1@3 -->
        <div class="modal-body">
            <div [ngTemplateOutlet]="oldCjTemplate"></div>
        </div>

        <div class="modal-footer">
            <button class="btn btn-info" (click)="selectOldCj()">
                <i class="fa fa-info-circle"> </i> 选择
            </button>
            <button class="btn btn-default" (click)="oldCjWin.hide()">
                <i class="icon-close"> </i> 取消
            </button>
        </div>
    </div>
</ng-template>

<ng-template #oldCjTemplate>
    <div class="row mb-3 ml-1">
        <div class="col-lg-10  ml-0 form-inline">
            <div class="input-group mr-1 input-group-sm">
                <label>关键字：</label>
                <input name="keyword" [(ngModel)]="oldCjQuery.query" class="input-sm form-control" type="text"
                            value="" maxlength="50" placeholder="请输入查询关键字" width="40">
            </div>
            <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="oldCjPager.goSearch()">
                    <i class="fa fa-search"></i> 查询</button>
        </div>
    </div>
    <div class="row mb-2">
        <div class="col-lg-12 ml-0">
            <!-- 审核流程列表 -->
            <table class="table table-sm table-striped table-hover table-bordered bg-white">
                <thead>
                    <tr>
                        <th>
                            <div class="checkbox c-checkbox">
                                <label>
                                    <input type="checkbox" (change)="oldCjPager.checkedMasterToggle($event)" />
                                    <span class="fa fa-check"></span>
                                </label>
                            </div>
                        </th>
                        <th width="10%">序号</th>
                        <th>考生姓名</th>
                        <th>准考证号</th>
                        <th>专业代号</th>
                        <th>课程代码</th>
                        <th>成绩</th>
                        <th>年</th>
                        <th>月</th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let it of oldCjPager.getRecords(); let i = index">
                        <td>
                            <div class="checkbox c-checkbox input-group-sm">
                                <label>
                                    <input type="checkbox" [value]="it.id" [(checked)]="it.isChecked"
                                        [(ngModel)]="it.isChecked" />
                                    <span class="fa fa-check"></span>
                                </label>
                            </div>
                        </td>
                        <td>{{i+1}}</td>
                        <td>{{it.xingming}}</td>
                        <td>{{it.zhunkaozhenghao}}</td>
                        <td>{{it.zhuanyedaihao}}</td>
                        <td>{{it.kechengdaihao}}</td>
                        <td>{{it.chengji}}</td>
                        <td>{{it.nian}}</td>
                        <td>{{it.yue}}</td>
                    </tr>
                </tbody>
            </table>
            <frame-pager [url]="OLD_CJ_URL" hideSearch="true" hasCheck="true" #oldCjPager (preReqEvent)="oldCjSearch($event)"></frame-pager>
        </div>
    </div>
</ng-template>

<!--**********************************转入成绩关联-单选-radio*******************************************************************-->
<ng-template #turnInAssocitModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 转入关联
        </div>
        <button type="button" class="close" (click)="turnInAssocitWin.hide()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="turnInAssocitTemplate"></div>
    </div>

    <div class="modal-footer">
        <button class="btn btn-info" (click)="selectTurnInScore()">
            <i class="fa fa-info-circle"> </i> 选择
        </button>
        <button class="btn btn-default" (click)="turnInAssocitWin.hide()">
            <i class="icon-close"> </i> 取消
        </button>
    </div>
</div>
</ng-template>

<ng-template #turnInAssocitTemplate>
<div class="row mb-3 ml-1">
    <div class="col-lg-10  ml-0 form-inline">
        <div class="input-group mr-1 input-group-sm">
            <label>姓名：</label>
            <input name="stdName" [(ngModel)]="turnInQuery.stdName" class="input-sm form-control" type="text"
                        value="" maxlength="50" placeholder="请输入考生姓名" width="40">
        </div>&nbsp;
        <div class="input-group mr-1 input-group-sm">
            <label>准考证号：</label>
            <input name="ticketNo" [(ngModel)]="turnInQuery.ticketNo" class="input-sm form-control" type="text"
                        value="" maxlength="50" placeholder="请输入准考证号" width="40">
        </div>
    </div>
</div>
<div class="row mb-3 ml-1">
    <div class="col-lg-10  ml-0 form-inline">
        <div class="input-group mr-1 input-group-sm">
            <label>课程代码：</label>
            <input name="courseCode" [(ngModel)]="turnInQuery.courseCode" class="input-sm form-control" type="text"
                        value="" maxlength="50" placeholder="请输入课程代码" width="40">
        </div>&nbsp;
        <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="turnInQueryRequest()">
            <i class="fa fa-search"></i> 查询</button>
    </div>
</div>
<div class="row mb-2">
    <div class="col-lg-12 ml-0">
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <thead>
                <tr>
                    <th>
                        <div class="checkbox c-checkbox">
                            <label>
                            </label>
                        </div>
                    </th>
                    <th width="10%">序号</th>
                    <th>考生姓名</th>
                    <th>准考证号</th>
                    <th>课程代码</th>
                    <th>课程名称</th>
                    <th>转入成绩</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let it of turnInScoreList; let i = index">
                    <td>
                        <div class="checkbox c-checkbox input-group-sm">
                            <label class="radio-inline c-radio" style="margin: 0px !important">
                                <input type="radio" name="radio" [value]="it.id" (click)="turnInSelect(it)"/>
                                <span class="fa fa-circle" style="margin: 0px !important"></span>
                            </label>
                        </div>
                    </td>
                    <td>{{i+1}}</td>
                    <td>{{it.std_name}}</td>
                    <td>{{it.ticket_no}}</td>
                    <td>{{it.course_code}}</td>
                    <td>{{it.course_name}}</td>
                    <td>{{it.final_score}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
</ng-template>

<!--**********************************关联准考证*******************************************************************-->
<ng-template #ticketNoAssocitModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 关联准考证
        </div>
        <button type="button" class="close" (click)="closeAssoTicketWin();">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="ticketNoAssocitTemplate"></div>
    </div>

    <div class="modal-footer">

    </div>
</div>
</ng-template>

<ng-template #ticketNoAssocitTemplate>
<div class="row mb-3 ml-1">
    <div class="col-lg-10  ml-0 form-inline">
        <div class="input-group mr-1 input-group-sm">
            <label>准考证号：</label>
            <input name="ticketNo" [(ngModel)]="ticketAssoQuery.ticketNo" class="input-sm form-control" type="text"
                        value="" maxlength="50" placeholder="请输入准考证号" width="40">
        </div>
        <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="findStdTicketRefList();">
            <i class="fa fa-search"></i> 查询
        </button>&nbsp;&nbsp;
        <button class="btn btn-primary bg-danger btn-sm  mr-1" (click)="selectTicketNoAssocit()">
            <i class="fa fa-docker"> </i> 关联
        </button>&nbsp;&nbsp;
        <button class="btn btn-primary bg-danger btn-sm  mr-1" (click)="unSelectTicketNoAssocit()">
            <i class="fa fa-undo"> </i> 取消关联
        </button>&nbsp;
    </div>
</div>
<div class="row mb-2">
    <div class="col-lg-12 ml-0">
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <thead>
                <tr>
                    <th width="6%">
                        <div class="checkbox c-checkbox">
                            <label>
                            </label>
                        </div>
                    </th>
                    <th width="6%">序号</th>
                    <th>考生姓名</th>
                    <th>身份证</th>
                    <th>准考证号</th>
                    <th>老准考证1</th>
                    <th>老准考证2</th>
                    <th>地址</th>
                    <th>关联状态</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let it of stdTicketRefList; let i = index">
                    <td>
                        <div class="checkbox c-checkbox input-group-sm">
                            <label class="radio-inline c-radio" style="margin: 0px !important">
                                <input type="radio" name="radio" [value]="it.id" (click)="stdTicketCheckFun(it)"  [(ngModel)]="ticketRadioItem.id"/>
                                <span class="fa fa-circle" style="margin: 0px !important"></span>
                              </label>
                        </div>
                    </td>
                    <td>{{i+1}}</td>
                    <td>{{it.std_name}}</td>
                    <td>{{it.cert_no}}</td>
                    <td>{{it.ticket_no}}</td>
                    <td>{{it.old_ticket_no1}}</td>
                    <td>{{it.old_ticket_no2}}</td>
                    <td>{{it.std_address}}</td>
                    <td>{{it.assoStatus}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<!--选中的考生准考证对应的成绩-->
<div class="row mb-2">
    <div class="col-lg-12 ml-0" *ngIf="showTicketPage == true">
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <thead>
                <tr>
                    <th>
                        <div class="checkbox c-checkbox input-group-sm">
                            <label>
                                <!--<input type="checkbox" (change)="ticketAssoPager.checkedMasterToggle($event)" />
                                <span class="fa fa-check"></span>-->
                            </label>
                        </div>
                    </th>
                    <th width="10%">序号</th>
                    <th>考生姓名</th>
                    <th>准考证号</th>
                    <th>课程代码</th>
                    <th>课程名称</th>
                    <th>成绩</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let it of ticketAssoPager.getRecords(); let i = index">
                    <td>
                        <div class="checkbox c-checkbox input-group-sm">
                            <label>
                                <!--<input type="checkbox" [value]="it.id" [(checked)]="it.isChecked"
                                    [(ngModel)]="it.isChecked" />
                                <span class="fa fa-check"></span>-->
                            </label>
                        </div>
                    </td>
                    <td>{{i+1}}</td>
                    <td>{{it.std_name}}</td>
                    <td>{{it.ticket_no}}</td>
                    <td>{{it.course_code}}</td>
                    <td>{{it.course_name}}</td>
                    <td>{{it.final_score}}</td>
                </tr>
            </tbody>
        </table>
        <frame-pager [url]="TICKET_ASSO_SCORE_URL" hideSearch="true" hasCheck="true" #ticketAssoPager (preReqEvent)="ticketAssoSearch($event)"></frame-pager>
    </div>
</div>    
</ng-template>

<!--**********************************毕业申请-手工引用考生*******************************************************************-->
<ng-template #stdRefModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 毕业申请
        </div>
        <button type="button" class="close" (click)="stdRefWin.hide()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="stdRefTemplate"></div>
    </div>

    <div class="modal-footer">
        <button class="btn btn-info" (click)="selectStdRef()">
            <i class="fa fa-info-circle"> </i> 选择
        </button>
        <button class="btn btn-default" (click)="stdRefWin.hide()">
            <i class="icon-close"> </i> 取消
        </button>
    </div>
</div>
</ng-template>

<ng-template #stdRefTemplate>
<div class="row mb-3 ml-1">
    <div class="col-lg-10  ml-0 form-inline">
        <div class="input-group mr-1 input-group-sm">
            <label>准考证：</label>
            <input name="ticketNo" [(ngModel)]="stdRefQuery.ticketNo" class="input-sm form-control" type="text"
                        value="" maxlength="30" placeholder="请输入准考证号" width="40">
        </div>
        <div class="input-group mr-1 input-group-sm">
            <label>身份证：</label>
            <input name="certNo" [(ngModel)]="stdRefQuery.certNo" class="input-sm form-control" type="text"
                        value="" maxlength="30" placeholder="请输入身份证号" width="40">
        </div>
        <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="findStdRefList();">
                <i class="fa fa-search"></i> 查询</button>
    </div>
</div>
<div class="row mb-4">
    <div class="col-lg-12 ml-0">
        <!-- 审核流程列表 -->
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <thead>
                <tr>
                    <th width="6%">
                        <div class="checkbox c-checkbox">
                            <label>
                            </label>
                        </div>
                    </th>
                    <th width="6%">序号</th>
                    <th>考生姓名</th>
                    <th>身份证</th>
                    <th>准考证号</th>
                    <th>考生来源</th>
                    <th>学校</th>
                    <th>性别</th>
                    <th>手机号码</th>
                    <th>地址</th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let it of stdRefList; let i = index">
                    <td>
                        <div class="checkbox c-checkbox input-group-sm">
                            <label class="radio-inline c-radio" style="margin: 0px !important">
                                <input type="radio" name="radio" [value]="it.id" (click)="stdRefRadioCheckFun(it)"  [(ngModel)]="radioItem.id"/>
                                <span class="fa fa-circle" style="margin: 0px !important"></span>
                              </label>
                        </div>
                    </td>
                    <td>{{i+1}}</td>
                    <td>{{it.std_name}}</td>
                    <td>{{it.cert_no}}</td>
                    <td>{{it.ticket_no}}</td>
                    <td [innerHTML]="it.std_source| frameDict:'StudentType'"></td>
                    <td>{{it.school_name}}</td>
                    <td [innerHTML]="it.std_sex| frameDict:'StdSexType'"></td>
                    <td>{{it.std_mobile}}</td>
                    <td>{{it.std_address}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="row mb-2">
    <div class="col-lg-12 ml-0 form-inline">
        <div class="input-group mr-1 input-group-sm">
            <label>专业：</label>
            <flex-select [allowClear]="true"
                [(items)] = "majorList"
                respDataPath= "array"
                optionValueField="id"
                optionTextField="major_full_name"
                [(ngModel)]="stdRefQuery.majorId"
                placeholder="请选择"
                (ngModelChange) ="freshSchoolInfo($event)"
                [ngModelOptions]="{standalone: true}"
                width = "120"
                noResultsFound = "无数据"
                >
            </flex-select>
        </div>&nbsp;&nbsp;
        <div class="input-group mr-1 input-group-sm">
            <label>主考学校：</label>
            <flex-select [allowClear]="true"
                [(items)] = "masterSchoolList"
                respDataPath= "array"
                optionValueField="id"
                optionTextField="org_name"
                [(ngModel)]="stdRefQuery.masterSchoolId"
                placeholder="请选择"
                [ngModelOptions]="{standalone: true}"
                width = "120"
                noResultsFound = "无数据"
                >
            </flex-select>
        </div>&nbsp;&nbsp;
    </div>
</div>
<div class="row mb-2">
    <div class="col-lg-12 ml-0 form-inline">
        <table class="table table-sm table-striped table-hover table-bordered bg-white">
            <tbody>
                <tr *ngFor="let it of selectOldMajorList; let i = index">
                    <td>(${{it.major_code}})${{it.major_name}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
</ng-template>


<!-- 考生修改简历 -->
<ng-template #stdResumeModal>
<div class="modal-content">
    <div class="modal-header info-success-qm">
        <div class="pull-left">
            <em class="fa-lg fas fa-edit "></em> 考生简历修改
        </div>
        <button type="button" class="close" (click)="hideModal()">×</button>
    </div>

    <!-- 1@3 -->
    <div class="modal-body">
        <div [ngTemplateOutlet]="stdResumeTemplate"></div>
    </div>

    <div class="modal-footer">
        <button class="btn btn-info" (click)="updateStdResume()">
            <i class="fa fa-info-circle"> </i> 修改
        </button>
        <button class="btn btn-default" (click)="hideModal()">
            <i class="icon-close"> </i> 关闭
        </button>
    </div>
</div>
</ng-template>


<ng-template #stdResumeTemplate>
<div class="row mb-1">
   <h4 class=" col-lg-12 text-lg-center"> 个人简历修改</h4>
</div>
<!-- <form [formGroup]="stdformModel"  class="form-validate form-horizontal" novalidate=""> -->
  <div class="row mt-3">
    <div class="col-lg-12">
      <table class="table table-sm table-striped table-hover table-bordered bg-white">
        <thead>
            <tr align="center">
                <th style="width: 60px;">序号</th>
                <th style="width: 150px;">起始年月</th>
                <th style="width: 150px;">终止年月</th>
                <th>在何地，何单位学习或工作（简历信息从高中阶段开始）</th>
                <th style="width: 200px;">职务</th>
                <th style="width: 40px;cursor: pointer;" title="点击新增一行简历" (click)="addResume()"><em class="fa fas fa-plus"></em></th>
              </tr>
        </thead>
        <tbody>
          <tr  align="center" *ngFor="let item of stdResumeArr; let i = index">
            <td>{{i+1}}</td>
            <td>
                <input name="start_date" [(ngModel)]="item.start_date" class="input-sm form-control" type="text"  maxlength="64"  placeholder="如：2019-01-01"  >
            </td>
            <td>
                <input name="end_date" [(ngModel)]="item.end_date" class="input-sm form-control" type="text"  maxlength="64"  placeholder="如：2019-01-01"  >
            </td>
            <td>
                <input name="work_exp" [(ngModel)]="item.work_exp" class="input-sm form-control" type="text"  maxlength="64"  placeholder="请填写何地、何单位学习和工作"  >
            </td>
            <td>
                <input name="position" [(ngModel)]="item.position" class="input-sm form-control" type="text"  maxlength="64"  placeholder="请填写职务" 
                 >
            </td>
            <td (click)="removeResume(i)" style="cursor: pointer;" title="点击删除该行简历"><em class="fa fas fa-minus"></em></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</ng-template>
