import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {SharedModule} from '../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { SetExamInformationRouter } from './router/set-exam-information-router';
import { SetExamInformationContainer } from './container/set-exam-information/set-exam-information.container';
import { SetExamInformationListComponent } from './presenter/list/set-exam-information-list/set-exam-information-list.component';
import { SetExamInformationFormComponent } from './presenter/form/set-exam-information-form/set-exam-information-form.component';
import { SetExamInformationSearchComponent } from './presenter/search/set-exam-information-search/set-exam-information-search.component';
import {MatTabsModule} from '@angular/material/tabs';
import { SetExamInformationDialogComponent } from './presenter/dialog/set-exam-information-dialog/set-exam-information-dialog.component';
import { SetExamInformationViewComponent } from './presenter/view/set-exam-information-view/set-exam-information-view.component';
import { SettingExamViewTableSubjectComponent } from './presenter/view/setting-exam-view-table-subject/setting-exam-view-table-subject.component';
import { SettingExamViewTableCenterComponent } from './presenter/view/setting-exam-view-table-center/setting-exam-view-table-center.component';
import { SettingExamViewTableCalendarComponent } from './presenter/view/setting-exam-view-table-calendar/setting-exam-view-table-calendar.component';
import { TableSwapSubjectComponent } from './presenter/form/table-swap-subject/table-swap-subject.component';
import { SettingExamViewTableSectionComponent } from './presenter/view/setting-exam-view-table-section/setting-exam-view-table-section.component';
import { SettingViewTableSummarySubjectComponent } from './presenter/view/setting-view-table-summary-subject/setting-view-table-summary-subject.component';
import { ChangeTimeSectionComponent } from './presenter/view/dialog/change-time-section/change-time-section.component';
import {NgxMaterialTimepickerModule} from 'ngx-material-timepicker';


const routes: Routes = [
  {
    path: '',
    component: SetExamInformationRouter,
    children: [
      {
        path: '',
        component: SetExamInformationContainer
      },
      {
        path: 'add',
        component: SetExamInformationFormComponent
      },
      {
        path: 'edit/:id',
        component: SetExamInformationFormComponent
      },
      {
        path: 'view/:id',
        component: SetExamInformationViewComponent
      },
      {
        path: 'section/edit/:id',
        component: ChangeTimeSectionComponent
      },
    ]
  }
];

@NgModule({
    declarations: [
        SetExamInformationRouter,
        SetExamInformationContainer,
        SetExamInformationListComponent,
        SetExamInformationFormComponent,
        SetExamInformationSearchComponent,
        SetExamInformationDialogComponent,
        SetExamInformationViewComponent,
        SettingExamViewTableSubjectComponent,
        SettingExamViewTableCenterComponent,
        SettingExamViewTableCalendarComponent,
        TableSwapSubjectComponent,
        SettingExamViewTableSectionComponent,
        SettingViewTableSummarySubjectComponent,
        ChangeTimeSectionComponent
    ],
    exports: [
        TableSwapSubjectComponent
    ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes),
        MatTabsModule,
        NgxMaterialTimepickerModule
    ]
})
export class SetExamInformationModule { }
