import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { Router } from '@angular/router';

@Component({
    selector: 'invigilate-finance-search',
    templateUrl: './invigilate-finance-search.component.html',
    styleUrls: ['./invigilate-finance-search.component.scss'],
    changeDetection: ChangeDetectionStrategy.OnPush
})
export class InvigilateFinanceSearchComponent implements OnInit {
    query = {
        calendar_type_name_th: null
    }
    constructor(
        private router: Router
    ) { }

    ngOnInit(): void {
    }

    get(event){

    }

    onSearch(){

    }

    onAdd(){
        this.router.navigate(['setting-invigilate-finance/add'])
    }

    clear(){
        this.query = {
            calendar_type_name_th: null
        }
    }

}
