<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>关键字：</label>
                                        <input name="keyword" [(ngModel)]="query.query" class="input-sm form-control" type="text"
                                                    value="" maxlength="50" placeholder="请输入查询关键字" width="180">
                                    </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>
                                   
                                    <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)="resetdata()">
                                        <i class="fa fa-undo"></i> 重置</button>
                                    <button class="btn btn-primary btn-rounded btn-outline btn-sm  mr-1" (click)="showBuildScoretWin()"  title="选择一条公共课程成绩记录，为该课程合成毕业成绩。">
                                            <i class="fa fa-undo"></i> 公共课成绩合成</button>
                                    </td>
                                    </tr>
                                    </table>
                        </form>
                        </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  align="center">批次</th>
                                        <th  align="center">准考证</th>
                                        <th>身份证</th>
                                        <th>姓名</th>
                                        
                                        <th>课程名称</th>
                                        <th>课程属性</th>
                                        <th align="center">成绩</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 align="center">{{item.year_code}}</td>
                                        <td align="center">{{item.ticket_no}}</td>
                                        <td>{{item.cert_no}}</td>
                                        <td>{{item.std_name}}</td>
                                       
                                       
                                        <td>{{item.course_code}}-{{item.course_name}}</td>
                                        <td [innerHTML]="item.course_nature | frameDict:'CourseNature'"></td>
                                        <td align="right">{{item.score}}</td>
                                        <td [innerHTML]="item.score_type | frameDict:'ByScoreType'"></td>
                                        <td [innerHTML]="item.score_source | frameDict:'ScoreSource'"></td><!--成绩来源-->
                                        <td>{{item.org_name}}</td>

                                        <td align="center">
                                            <a href="#" (click)="showEditWin(item)" title="编辑"><em
                                                    class="fa-lg fas fa-edit mr-1"></em></a>
                                            <a href="#" (click)="delete(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" [autoLoad]="false" hideSearch="true" hasCheck="true" #framePager (preReqEvent)="search($event)"></frame-pager>
                        </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="15%">课程名称</td>
                                <td width="35%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.course_name" readonly/></td>
                                <td style="text-align: right" width="15%">课程代码</td>
                                <td width="35%"><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.course_code" readonly/></td> 
                            </tr>
                            <tr>
                                <td style="text-align: right">批次</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.year_code" readonly/></td>
                                <td style="text-align: right">课程性质</td>
                                <td>
                                    <select [ngModelOptions]="{standalone: true}"
                                        [(ngModel)]="item.course_nature" 
                                        frameDict [dictName]="'CourseNature'" 
                                        class="form-control" disabled>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">学分</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.course_score"/></td>
                                <td style="text-align: right">分数</td>
                                <td><input class="form-control" type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.score"/></td>
                             
                            </tr>
                            <tr>
                                <td style="text-align: right">成绩来源</td>
                                <td>
                                    <select [ngModelOptions]="{standalone: true}"
                                        [(ngModel)]="item.score_type" 
                                        frameDict [dictName]="'ByScoreType'" 
                                        class="form-control">
                                    </select>
                                </td>
                                <td style="text-align: right">成绩性质</td>
                                <td>
                                    <select [ngModelOptions]="{standalone: true}"
                                        [(ngModel)]="item.score_source" 
                                        frameDict [dictName]="'ScoreSource'" 
                                        class="form-control">
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">主考学校</td>
                                <td>
                                        <flex-select [allowClear]="true"
                                        [(items)] = "masterSchoolList"
                                        respDataPath= "array"
                                        optionValueField="id"
                                        optionTextField="org_name"
                                        [(ngModel)]="item.school_id"
                                        placeholder="请选择"
                                        [ngModelOptions]="{standalone: true}"
                                        width="265"
                                        noResultsFound = "无数据"
                                        >
                                    </flex-select>
                                </td>
                                <td style="text-align: right">状态</td>
                                <td>
                                    <select [ngModelOptions]="{standalone: true}"
                                        [(ngModel)]="item.status" 
                                        frameDict [dictName]="'ScoreStatus'" 
                                        class="form-control">
                                    </select>
                                </td>
                                
                            </tr>

                            
                    </tbody>
                </table>
            </div>
            
                
    </form>
   
</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-default" (click)="saveBaseInfo()">
                    <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)="buildScore()">
                <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 #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="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>
                            <th>主考学校</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr *ngFor="let it2 of courseScoreList; 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="scoreradio" [value]="it2.id" (click)="scoreRadioCheckFun(it2)"/>
                                <span class="fa fa-circle" style="margin: 0px !important"></span>
                             </label>
                            </div>
                            </td>
                            <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>
           
    </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>
                    <!-- <div class="input-group">
                        <input class="form-control" type="text" DateTimePicker [dpType]="'date'" [dpValue]="item.start_date"  [(ngModel)]="item.start_date"
                          />
                        
                        <div class="input-group-append">
                        <div class="input-group-text"><i class="icon-calendar"></i></div>
                        </div>
                    </div> -->
                    <input name="start_date" [(ngModel)]="item.start_date" class="input-sm form-control" type="text"  maxlength="64"  placeholder="如：2019-01-01"  >
                </td>
                <td>
                    <!-- <div class="input-group">
                        <input class="form-control" type="text" DateTimePicker [dpType]="'date'" [dpValue]="item.end_date"   [(ngModel)]="item.end_date" 
                         />
                        <div class="input-group-append">
                            <div class="input-group-text"><i class="icon-calendar"></i></div>
                        </div>
                    </div> -->
                    <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>
    <!-- </form> -->
</ng-template>
