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

@Component({
  selector: 'app-exam-judge-score-detail',
  templateUrl: './exam-judge-score-detail.component.html',
  styleUrls: ['./exam-judge-score-detail.component.scss']
})
export class ExamJudgeScoreDetailComponent extends FrameDetailComponent implements OnInit {

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.detailForm = fb.group({
      'std_name': [null, null],
      'ticket_no': [null, null],
      'real_exam_seq': [null, null],
      'judge_name': [null, null],
      'judge_score': [null,  Validators.compose([Validators.required, Validators.minLength(0), Validators.maxLength(100)])],
      'subject_name': [null, null],
      'judge_password': [null, null]
    });
   }

  ngOnInit(): void {
  }

}
