angular.module('aps_manager').config(['$stateProvider',
  function ($stateProvider) {
    $stateProvider
      .state('mbo', {
        url: '/mbo/:apsyear/:employeeid',
        controller: 'Base',
        templateUrl: 'app_mbo.html'
      })
    .state('cklc',{
      url: '/cklc/:employeeid',
      templateUrl: 'APP_CKLC.jsp'
    })
	  .state('mbo.profile', {
        url: '/profile',
		    parent: 'mbo',
		    controller: 'Profile',
        templateUrl: 'app_mbo.profile.html'
    })
	  .state('mbo.objectivesSetting', {
        url: '/objectivesSetting',
		    parent: 'mbo',
		    controller: 'ObjectiveSetting',
        templateUrl: 'app_mbo.objectivesSetting.html'
    })
	  .state('mbo.firstHalf', {
        url: '/firstHalf',
		    parent: 'mbo',
		    controller: 'ObjectiveFirstHalfReview',
        templateUrl: 'app_mbo.firstHalf.html'
    })
	  .state('mbo.appraisal', {
        url: '/appraisal',
		    parent: 'mbo',
		    controller: 'ObjectiveAppraisal',
        templateUrl: 'app_mbo.appraisal.html'
    })
    .state('mbo.cklc', {
        url: '/cklc',
        parent: 'mbo',
        templateUrl: 'APP_CKLC.jsp'
    })
	  .state('mbo.career', {
        url: '/career',
		    parent: 'mbo',
		    controller: 'CareerVision',
        templateUrl: 'app_mbo.career.html'
    })
    .state('mboPeriodSetting', {
        url: '/mboPeriodSetting',
        controller: 'mboPeriodSetting',
        templateUrl: 'aps_manager.mboPeriodSetting.html'
    })
	  .state('mbo.overall', {
      url: '/overall',
	    parent: 'mbo',
	    /*controller: 'ObjectiveSetting',*/
      templateUrl: 'app_mbo.overall.html'
    })
    .state('under', {
      url: '/under',
      controller: 'MBOList',
      templateUrl: 'mbo.list.html'
    })
    .state('cklc.self', {
      url: '/cklc',
      templateUrl: 'APP_CKLC.jsp'
    })
    .state('cklclist',{
      url: '/cklclist/:employeeid',
      templateUrl: 'APS_CKLC.jsp'
    })
    .state('apslist',{
      url: '/apslist/:aps_type',
      templateUrl: 'APS_LIST.jsp'
    })
  }

]);