last commit plies
This commit is contained in:
@ -305,12 +305,14 @@ def show_exploration():
|
|||||||
filter_employee_id = st.text_input("Filter berdasarkan ID Karyawan", placeholder="Contoh: EM12345")
|
filter_employee_id = st.text_input("Filter berdasarkan ID Karyawan", placeholder="Contoh: EM12345")
|
||||||
|
|
||||||
with col2:
|
with col2:
|
||||||
filter_join_date = st.date_input("Filter berdasarkan Tanggal Masuk", value=None)
|
filter_join_date = st.date_input("Filter berdasarkan Tanggal Masuk Dimulai Dari", value=None)
|
||||||
|
|
||||||
df = get_all_employee_data(filter_employee_id, filter_join_date)
|
df = get_all_employee_data(filter_employee_id, filter_join_date)
|
||||||
|
|
||||||
if not df.empty:
|
if not df.empty:
|
||||||
st.dataframe(df)
|
st.dataframe(df)
|
||||||
|
st.caption("Keterangan: Geser ke kanan untuk melihat keseluruhan data")
|
||||||
|
|
||||||
csv = df.to_csv(index=False)
|
csv = df.to_csv(index=False)
|
||||||
st.download_button(
|
st.download_button(
|
||||||
label="Download Data sebagai CSV",
|
label="Download Data sebagai CSV",
|
||||||
|
@ -304,6 +304,8 @@ def show_pimpinan_exploration():
|
|||||||
# Tampilkan data
|
# Tampilkan data
|
||||||
st.dataframe(df)
|
st.dataframe(df)
|
||||||
|
|
||||||
|
st.caption("Keterangan: Geser ke kanan untuk melihat keseluruhan data")
|
||||||
|
|
||||||
# Tombol untuk download CSV
|
# Tombol untuk download CSV
|
||||||
csv = df.to_csv(index=False)
|
csv = df.to_csv(index=False)
|
||||||
st.download_button(
|
st.download_button(
|
||||||
|
@ -376,6 +376,8 @@ def show_report():
|
|||||||
# Tampilkan data dalam bentuk tabel
|
# Tampilkan data dalam bentuk tabel
|
||||||
st.dataframe(df)
|
st.dataframe(df)
|
||||||
|
|
||||||
|
st.caption("Keterangan: Geser ke kanan untuk melihat keseluruhan data")
|
||||||
|
|
||||||
# Konversi DataFrame ke CSV untuk di-download
|
# Konversi DataFrame ke CSV untuk di-download
|
||||||
csv = df.to_csv(index=False)
|
csv = df.to_csv(index=False)
|
||||||
st.download_button(
|
st.download_button(
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user