244 lines
7.7 KiB
Python
244 lines
7.7 KiB
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
from app import views as app_views
|
|
from app.excel_processing import transporting_detail_excel, total_killhouse_excel, hatching_excel, all_hatching_excel, \
|
|
all_send_different_bar_excel, transport_carcass_detail_excel, guilds_transport_carcass_detail_excel, \
|
|
all_products_transport_excel
|
|
from app.helper import get_bar_info, test_city, api_get_hatching_permit_code
|
|
from app.scripts import update_poultry_city_province
|
|
from app.views import get_transport_to_kill, add_kill_house, update_hatching, get_breeds, dashboard_total_kill_house, \
|
|
send_different_bar, send_different_bar_with_licence_number, all_province_detail_for_map, \
|
|
dashboard_province_detail_for_map, TransportCarcassDashboardView, GuildsTransportCarcassDashboardView, \
|
|
AllProductsTransportDashboardView, AllProductsTransportProductsListView, update_product_date, \
|
|
send_transport_carcass_detail_for_rasadyaar, delete_free_bar_from_rasadyaar, fix_number, \
|
|
get_evacuation_detail_by_request_code, get_evacuation_details_by_request_codes, evacuation_report_type_summary, \
|
|
get_all_products_transport_by_code, \
|
|
get_all_products_transport_dashboard_by_code, get_all_products_transport_products_by_code, \
|
|
get_all_products_transport_provinces_by_code, get_ai_response
|
|
|
|
router = DefaultRouter()
|
|
|
|
router.register(
|
|
r'poultry',
|
|
app_views.PoultryViewSet,
|
|
basename="poultry"
|
|
)
|
|
|
|
router.register(
|
|
r'poultry-dashboard',
|
|
app_views.PoultryDashboardViewSet,
|
|
basename="poultry-dashboard"
|
|
)
|
|
router.register(
|
|
r'hatching',
|
|
app_views.PoultryHatchingViewSet,
|
|
basename="hatching"
|
|
)
|
|
|
|
router.register(
|
|
r'hatchings-dashboard',
|
|
app_views.HatchingDashboardViewSet,
|
|
basename="hatchings-dashboard"
|
|
)
|
|
|
|
router.register(
|
|
r'hatchings',
|
|
app_views.HatchingsViewSet,
|
|
basename="hatchings"
|
|
)
|
|
|
|
router.register(
|
|
r'hatchings-custom',
|
|
app_views.HatchingsCustomViewSet,
|
|
basename="hatchings-custom"
|
|
)
|
|
|
|
router.register(
|
|
r'hatching-pedigreename',
|
|
app_views.PoultryHatchingForUpdatePedigreeNameViewSet,
|
|
basename="hatching-pedigreename"
|
|
)
|
|
|
|
router.register(
|
|
r'transporting',
|
|
app_views.TransportingChickenDetailViewSet,
|
|
basename="transporting"
|
|
)
|
|
|
|
router.register(
|
|
r'transporting-dashboard',
|
|
app_views.TransportingDashboardViewSet,
|
|
basename="transporting-dashboard"
|
|
)
|
|
|
|
router.register(
|
|
r'transporting-detail',
|
|
app_views.TransportingDetailViewSet,
|
|
basename="transporting-detail"
|
|
)
|
|
|
|
router.register(
|
|
r'transporting-detail-custom',
|
|
app_views.TransportingDetailCustomViewSet,
|
|
basename="transporting-detail-custom"
|
|
)
|
|
|
|
router.register(
|
|
r'hatching-dashboard',
|
|
app_views.PoultryHatchingDashboardViewSet,
|
|
basename="hatching-dashboard"
|
|
)
|
|
|
|
router.register(
|
|
r'hatching-filtering',
|
|
app_views.HatchingViewSet,
|
|
basename="hatching-filtering"
|
|
)
|
|
|
|
router.register(
|
|
r'hatching-calculating',
|
|
app_views.HatchingCalculationsViewSet,
|
|
basename="hatching-calculating"
|
|
)
|
|
|
|
router.register(
|
|
r'poultry-info',
|
|
app_views.PoultryInfoViewSet,
|
|
basename="poultry-info"
|
|
)
|
|
|
|
router.register(
|
|
r'total-killhouse',
|
|
app_views.TotalKillHousesViewSet,
|
|
basename="total-killhouse"
|
|
)
|
|
|
|
router.register(
|
|
r'hatching-analysis-pedigree',
|
|
app_views.HatchingAnalysisPedigreeViewSet,
|
|
basename="hatching-analysis-pedigree"
|
|
)
|
|
|
|
router.register(
|
|
r'hatching-analysis-province',
|
|
app_views.HatchingAnalysisProvinceView,
|
|
basename="hatching-analysis-province"
|
|
)
|
|
|
|
router.register(
|
|
r'hatchings-analysis-overview',
|
|
app_views.HatchingAnalysisOverviewViewSet,
|
|
basename="hatchings-analysis-overview"
|
|
)
|
|
|
|
router.register(
|
|
r'transporting-report-dashboard',
|
|
app_views.TransportingReportDashboardViewSet,
|
|
basename="transporting-report-dashboard"
|
|
)
|
|
|
|
router.register(
|
|
r'transporting-analysis-dashboard',
|
|
app_views.TransportingAnalysisViewSet,
|
|
basename="transporting-analysis-dashboard"
|
|
)
|
|
router.register(
|
|
r'api_send_different_bar',
|
|
app_views.ApiSendDifferentBar,
|
|
basename="api_send_different_bar"
|
|
)
|
|
router.register(
|
|
r'api_send_different_bar-from-hatching',
|
|
app_views.ApiSendDifferentBarFromHatching,
|
|
basename="api_send_different_bar-from-hatching"
|
|
)
|
|
|
|
router.register(
|
|
r'apk-info',
|
|
app_views.ApkInfoViewSet,
|
|
basename="apk-info"
|
|
)
|
|
router.register(
|
|
r'transport-carcass-detail',
|
|
app_views.TransportCarcassDetailViewSet,
|
|
basename="transport-carcass-detail"
|
|
)
|
|
router.register(
|
|
r'driver',
|
|
app_views.DriveViewSet,
|
|
basename="driver"
|
|
)
|
|
router.register(
|
|
r'guilds-transport-carcass-detail',
|
|
app_views.GuildsTransportCarcassViewSet,
|
|
basename="guilds-transport-carcass-detail"
|
|
)
|
|
|
|
router.register(
|
|
r'inquiry_credentials',
|
|
app_views.InquiryCredentialsViewSet,
|
|
basename="inquiry_credentials"
|
|
)
|
|
|
|
router.register(
|
|
r'all-products-transport',
|
|
app_views.AllProductsTransportViewSet,
|
|
basename="all-products-transport"
|
|
)
|
|
|
|
router.register(
|
|
r'evacuation-detail',
|
|
app_views.EvacuationDetailViewSet,
|
|
basename="evacuation-detail"
|
|
)
|
|
|
|
router.register(
|
|
r'rasadyar-app-info',
|
|
app_views.RasadyarAppInfoViewSet,
|
|
basename="rasadyar-app-info"
|
|
)
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('get-transport-to-kill/', get_transport_to_kill),
|
|
path('add_kill_house/', add_kill_house),
|
|
path('update_hatching/', update_hatching),
|
|
path('get_breeds/', get_breeds),
|
|
path('get_bar_info/', get_bar_info),
|
|
path('transporting_detail_excel/', transporting_detail_excel),
|
|
path('total_killhouse_excel/', total_killhouse_excel),
|
|
path('hatching_excel/', hatching_excel),
|
|
path('all_hatching_excel/', all_hatching_excel),
|
|
path('dashboard_total_kill_house/', dashboard_total_kill_house),
|
|
path('test_city/', test_city),
|
|
path('send_different_bar/', send_different_bar),
|
|
path('all_send_different_bar_excel/', all_send_different_bar_excel),
|
|
path('send_different_bar_with_licence_number/', send_different_bar_with_licence_number),
|
|
path('all_province_detail_for_map/', all_province_detail_for_map),
|
|
path('dashboard_province_detail_for_map/', dashboard_province_detail_for_map),
|
|
path('transport-carcass-dashboard/', TransportCarcassDashboardView.as_view()),
|
|
path('guilds-transport-carcass-dashboard/', GuildsTransportCarcassDashboardView.as_view()),
|
|
path('all-products-transport-dashboard/', AllProductsTransportDashboardView.as_view()),
|
|
path('all-products-transport-products/', AllProductsTransportProductsListView.as_view()),
|
|
path('update_product_date/', update_product_date),
|
|
path('transport-carcass-detail-excel/', transport_carcass_detail_excel),
|
|
path('guilds-transport-carcass-detail-excel/', guilds_transport_carcass_detail_excel),
|
|
path('send_transport_carcass_detail_for_rasadyaar/', send_transport_carcass_detail_for_rasadyaar),
|
|
path('delete_free_bar_from_rasadyaar/', delete_free_bar_from_rasadyaar),
|
|
path('fix_number/', fix_number),
|
|
path('get-evacuation-detail-by-request-code/', get_evacuation_detail_by_request_code),
|
|
path('get-evacuation-details-by-request-codes/', get_evacuation_details_by_request_codes),
|
|
path('api/get-hatching-permit-code/', api_get_hatching_permit_code),
|
|
path('evacuation-report-type-summary/', evacuation_report_type_summary),
|
|
path('get-all-products-transport-by-code/', get_all_products_transport_by_code),
|
|
path('get-all-products-transport-dashboard-by-code/', get_all_products_transport_dashboard_by_code),
|
|
path('get-all-products-transport-products-by-code/', get_all_products_transport_products_by_code),
|
|
path('get-all-products-transport-provinces-by-code/', get_all_products_transport_provinces_by_code),
|
|
path('all_products_transport_excel/', all_products_transport_excel),
|
|
path('get_ai_response/', get_ai_response),
|
|
|
|
|
|
]
|