import { Component, OnInit } from '@angular/core';
import {FrameEditComponent} from '../../../../frame/core/FrameEditComponent';
import {BsModalRef} from 'ngx-bootstrap';
import {FormBuilder, Validators} from '@angular/forms';

@Component({
  selector: 'app-std-reg-modify',
  templateUrl: './std-reg-modify.component.html',
  styleUrls: ['./std-reg-modify.component.scss']
})
export class StdRegModifyComponent extends FrameEditComponent implements OnInit {

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.valForm = fb.group({
      'cert_type': [null, Validators.compose([Validators.required])],
      'std_province': [null, Validators.compose([Validators.required])],
      'cert_id': [null, Validators.compose([Validators.required, Validators.minLength(6), Validators.maxLength(18)])],
      'std_name': [null, Validators.compose([Validators.required])],
      'std_sex': [null, Validators.compose([Validators.required])],
      'link_addr': [null],
      'exam_id': [null],
      'std_type': [null],
      'std_nation': [null],
      'std_mobile1': [null, Validators.compose([Validators.required])]
    });
  }

  ngOnInit() {
  }

  initDefautEntity() {

  }


}


