Spaces:
Sleeping
Sleeping
import streamlit as st | |
from src.entity.document import DocumentNames | |
from src.forms.deviation_investigation_report import ( | |
deviation_investigation_report_form, | |
deviation_investigation_report_history_file_path, | |
) | |
from src.forms.deviation_notification_report import ( | |
deviation_notification_report_form, | |
deviation_notification_report_history_file_path, | |
) | |
from src.forms.history_common import display_download_history | |
selected_page = st.sidebar.selectbox( | |
"作成する文書を選択してください。", [name.value for name in DocumentNames] | |
) | |
match selected_page: | |
case DocumentNames.DEVIATION_NOTIFICATION_REPORT.value: | |
deviation_notification_report_form() | |
case DocumentNames.DEVIATION_INVESTIGATION_REPORT.value: | |
deviation_investigation_report_form() | |
case DocumentNames.DEVIATION_NOTIFICATION_REPORT_HISTORY.value: | |
display_download_history( | |
DocumentNames.DEVIATION_NOTIFICATION_REPORT.value, | |
deviation_notification_report_history_file_path, | |
) | |
case DocumentNames.DEVIATION_INVESTIGATION_REPORT_HISTORY.value: | |
display_download_history( | |
DocumentNames.DEVIATION_INVESTIGATION_REPORT.value, | |
deviation_investigation_report_history_file_path, | |
) | |