| | |
| | | FunctionField, |
| | | Count, |
| | | useNotify, |
| | | useRefresh, |
| | | } from 'react-admin'; |
| | | import { Box, Typography, Stack, useMediaQuery, Tabs, Tab, Divider } from '@mui/material'; |
| | | import { styled } from '@mui/material/styles'; |
| | |
| | | const TabbedDatagrid = () => { |
| | | const translate = useTranslate(); |
| | | const notify = useNotify(); |
| | | const refresh = useRefresh(); |
| | | const { filterValues, setFilters, displayedFilters } = useListContext(); |
| | | const isXSmall = useMediaQuery(theme => |
| | | theme.breakpoints.down('sm') |
| | |
| | | for (Segment seg : segmentList) { |
| | | Task task = taskService.getById(segment.getTaskId()); |
| | | if (task != null && |
| | | (!task.getTaskSts().equals(TaskStsType.COMPLETE.val()) || !task.getTaskSts().equals(TaskStsType.CANCEL.val()))) { |
| | | (!task.getTaskSts().equals(TaskStsType.COMPLETE.val()) && !task.getTaskSts().equals(TaskStsType.CANCEL.val()))) { |
| | | throw new CoolException("the task is not finish"); |
| | | } |
| | | seg.setState(SegmentStateType.FINISH.toString()); |