import { Component, OnInit, ViewChild } from '@angular/core';
import {FormBuilder, Validators} from '@angular/forms';
import {BsModalRef} from 'ngx-bootstrap/modal';
import { FrameDetailComponent } from '../../../frame/core/detail/frame.detail';
import { MsgService } from '../../../../core/service/msg.service';
import { FrameUploadSilence } from '../../../../core/frame/upload/frame-upload-silence/frame-upload-silence';


@Component({
  selector: 'app-std-detail',
  templateUrl: './std-detail.component.html',
  styleUrls: ['./std-detail.component.scss']
})
export class StdDetailComponent extends FrameDetailComponent implements OnInit {
  @ViewChild('uploader', {static: false}) uploader: FrameUploadSilence;

  mSchoolArray = [];
  majorArray = [];
  examAreaArray = [];
  areaArray = [];
  cityArray = [];
                

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.detailForm = fb.group({
      'std_name': [null,null],
      'std_en_name': [null, null],
      'passport_last_name': [null, null],
      'passport_name': [null,null],
      'std_sex': [null,null],
      'cert_id': [null,null],
      'send_content': [null,null],
      'msg_flag': [null,null],
      'email_flag': [null,null],
    });
  }

  ngOnInit() {
  }

  initDefautEntity() {
    this.currentEntity.send_content = '考生你好，你注册时填写的姓名/证件号码与报考证件不一致（繁简体/大小写/字段错误或遗漏等），系统已进行更正。如有疑问，请与招生简章后列电话或邮箱联系。';
  }

  
}
