|  |  | 
 |  |  |     FunctionField, | 
 |  |  |     Pagination, | 
 |  |  | } from 'react-admin'; | 
 |  |  | import { Box, Typography, Card, Chip } from '@mui/material'; | 
 |  |  | import { Box, Typography, Button, Chip } from '@mui/material'; | 
 |  |  | import { styled } from '@mui/material/styles'; | 
 |  |  | import BusCreate from "./BusCreate"; | 
 |  |  | import BusPanel from "./BusPanel"; | 
 |  |  | 
 |  |  | import * as Common from '@/utils/common'; | 
 |  |  | import BusListAside from "./BusListAside"; | 
 |  |  | import { getBusStsColor } from '@/utils/color-util'; | 
 |  |  | import CancelIcon from '@mui/icons-material/Cancel'; | 
 |  |  |  | 
 |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
 |  |  |     '& .css-1vooibu-MuiSvgIcon-root': { | 
 |  |  | 
 |  |  |         whiteSpace: 'nowrap', | 
 |  |  |     }, | 
 |  |  |     '& .opt': { | 
 |  |  |         width: 80 | 
 |  |  |         width: 120 | 
 |  |  |     }, | 
 |  |  | })); | 
 |  |  |  | 
 |  |  | 
 |  |  |                     {/* <BooleanField source="statusBool" label="common.field.status" sortable={false} /> */} | 
 |  |  |                     <TextField source="memo" label="common.field.memo" sortable={false} emptyText="-" /> | 
 |  |  |                     <FunctionField label="common.field.opt" cellClassName="opt" render={record => ( | 
 |  |  |                         (record.busSts === 15) && ( | 
 |  |  |                             <DeleteButton label="" sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> | 
 |  |  |                         (record.busSts === 15 || true) && ( | 
 |  |  |                             // <DeleteButton label="" sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> | 
 |  |  |                             <Button size="small" color="error" startIcon={<CancelIcon />} sx={{ padding: '1px', fontSize: '.75rem' }}>cancel</Button> | 
 |  |  |                         ) | 
 |  |  |                     )} /> | 
 |  |  |                 </StyledDatagrid> | 
 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private TaskService taskService; | 
 |  |  |  | 
 |  |  |     public synchronized Agv execute1(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) { | 
 |  |  |     public synchronized Agv execute(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) { | 
 |  |  |         String oriLocNo = task.getOriLoc$(); | 
 |  |  |         int oriLocRow = LocUtils.getRow(oriLocNo); | 
 |  |  |         String destLocNo = task.getDestLoc$(); | 
 |  |  | 
 |  |  |         return hit; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public synchronized Agv execute(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) { | 
 |  |  |     public synchronized Agv execute1(Task task, Map<String, List<Long>> taskAllot, List<Long> taskIds) { | 
 |  |  |         String oriLocNo = task.getOriLoc$(); | 
 |  |  |         int oriLocRow = LocUtils.getRow(oriLocNo); | 
 |  |  |         String destLocNo = task.getDestLoc$(); | 
 
 |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<String> getDataFieldSort() { | 
 |  |  |         return Arrays.stream(BusStsType.values()) | 
 |  |  |         return Arrays.stream(TaskStsType.values()) | 
 |  |  |                 .sorted((e1, e2) -> Integer.compare(e1.dataSort, e2.dataSort)) | 
 |  |  |                 .map(Enum::name) | 
 |  |  |                 .collect(Collectors.toList()); |