From 5a0680a0fa9a4926a75e51fa8d2502bc8036ccb4 Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Mon, 21 Jul 2025 12:48:44 +0800 Subject: [PATCH] update --- .../RoughSchedule/RoughSchedileSearchView.tsx | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/components/RoughSchedule/RoughSchedileSearchView.tsx b/src/components/RoughSchedule/RoughSchedileSearchView.tsx index 478571d..592b31f 100644 --- a/src/components/RoughSchedule/RoughSchedileSearchView.tsx +++ b/src/components/RoughSchedule/RoughSchedileSearchView.tsx @@ -19,12 +19,15 @@ import { ProdScheduleResultByPage, SearchProdSchedule, fetchProdSchedules, + testDetailedSchedule, + testRoughSchedule, } from "@/app/api/scheduling/actions"; import { arrayToDateString, decimalFormatter } from "@/app/utils/formatUtil"; import { isEqual, uniqBy } from "lodash"; import dayjs from "dayjs"; import { defaultPagingController } from "../SearchResults/SearchResults"; import { ScheduleType } from "@/app/api/scheduling"; +import { Button, Stack } from "@mui/material"; // type RecordStructure ={ // id: number, @@ -248,8 +251,29 @@ const RSOverview: React.FC = ({ type, defaultInputs }) => { refetchData(defaultInputs, "reset"); }, []); + const testRoughScheduleClick = useCallback(async () => { + const response = await testRoughSchedule() + + if (response) { + refetchData(inputs, "paging"); + } + }, []); + return ( <> + + + { @@ -273,7 +297,7 @@ const RSOverview: React.FC = ({ type, defaultInputs }) => { setPagingController={setPagingController} pagingController={pagingController} totalCount={totalCount} - // isAutoPaging={false} + // isAutoPaging={false} /> );