import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CreateExamSetupPeriodBySubjectRouter } from './router/create-exam-setup-period-by-subject-router';
import { CreateExamSetupPeriodBySubjectContainer } from './container/create-exam-setup-period-by-subject/create-exam-setup-period-by-subject.container';
import { SetupPeriodBySubjectTestinforListComponent } from './presenter/list/setup-period-by-subject-testinfor-list/setup-period-by-subject-testinfor-list.component';
import { SetupPeriodBySubjectTestinforSearchComponent } from './presenter/search/setup-period-by-subject-testinfor-search/setup-period-by-subject-testinfor-search.component';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { SetupPeriodBySubjectListComponent } from './presenter/list/setup-period-by-subject-list/setup-period-by-subject-list.component';
import { SetupPeriodBySubjectInforComponent } from './presenter/list/setup-period-by-subject-infor/setup-period-by-subject-infor.component';
import { DialogCreatePeriodByDayComponent } from './presenter/dialog/dialog-create-period-by-day/dialog-create-period-by-day.component';

const routes: Routes = [
  {
    path: '',
    component: CreateExamSetupPeriodBySubjectRouter,
    children: [
      {
        path: '',
        component: CreateExamSetupPeriodBySubjectContainer
      },
      {
        path: 'view/:testInforId',
        component: SetupPeriodBySubjectListComponent
      },
      {
        path: 'view/:testInforId/:subjectId',
        component: SetupPeriodBySubjectInforComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    CreateExamSetupPeriodBySubjectRouter,
    CreateExamSetupPeriodBySubjectContainer,
    SetupPeriodBySubjectTestinforListComponent,
    SetupPeriodBySubjectTestinforSearchComponent,
    SetupPeriodBySubjectListComponent,
    SetupPeriodBySubjectInforComponent,
    DialogCreatePeriodByDayComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class CreateExamSetupPeriodBySubjectModule { }
