EducodeSales::Engine.routes.draw do root to: "home#index" get :statistics, to: "home#statistics" get :login, to: "sessions#login" get :logout, to: "sessions#logout" get :search_users, to: "home#search_users" get :search_teacher, to: "home#search_teacher" get :search_edu_teacher,to: "home#search_edu_teacher" get :search_operation_teacher,to: "home#search_operation_teacher" get :search, to: "home#search" get :no_permission, to: "home#no_permission" get :sales_staff, to: "home#sales_staff" get :sales_place, to: "home#sales_place" resources :sessions do end resources :customer_extensions do end resources :customer_follows do end resources :money_plans do end resources :customers do collection do get :show_follow get :show_department get :new_follow_record get :show_follow_record get :edit_follow_record get :new_department get :edit_department get :give end member do post :create_follow_up put :update_follow_up post :create_department put :update_department end end resources :operation_reports do member do get :plans get :audit put :update_audit end end resources :sale_reports do member do get :plans get :audit put :update_audit end end resources :key_person resources :follow_ups do member do get :teachers post :add_keys post :add_money get :money_plans put :update_money delete :delete_money end end resources :sale_trends do collection do get :trends post :sale_trends end end resources :businesses do collection do get :export_records get :add_export_records get :show_keys get :add_keys get :show_follow get :new_follow_record get :show_follow_record get :edit_follow_record get :edit_plan get :file get :time_line get :upload_file end member do put :updateMoney post :add_follow_up get :unfinish_plans put :update_follow_up end end resources :places do end resources :recycles do collection do get :monthly get :weekly get :monthPlan get :weekPlan get :business end member do get :restore_plans get :restore_reports get :restore_businesses end end resources :plans do collection do get :new_week get :new_weekly get :new_month get :new_monthly get :show_week get :show_weekly get :show_month get :show_monthly get :edit_week get :edit_weekly get :edit_month get :edit_monthly get :my_week get :my_month end end resources :operation_plans do collection do get :operation get :new_week get :new_weekly get :new_month get :new_monthly get :show_week get :show_weekly get :show_month get :show_monthly get :edit_week get :edit_weekly get :edit_month get :edit_monthly get :my_week get :my_month end end resources :import_teachers resources :upload_files do collection do get :download end member do end end resources :teachers do collection do get :import get :add_keys get :search_new get :add_courses get :add_event get :show_class get :show_follow get :new_follow_record get :show_follow_record get :edit_follow_record get :course_list get :activities end member do post :create_course put :update_course delete :delete_course post :add_follow_up get :unfinish_plans get :course_subject put :update_follow_up end end resources :activities do collection do get :show_teachers end end resources :sales do collection do get :trends post :sale_trends get :operations get :school get :xschool end end resources :commons resources :operations do collection do get :trends post :sale_trends end end resources :staffs do member do delete :disable get :follow_up_schools get :follow_up_departments end end resources :roles do collection do get :rename end member do put :view put :update_role end end resources :teacher_follows end