(sourceRows, targetRows)
| 1329 | }); |
| 1330 | } |
| 1331 | async function moveTableRow(sourceRows, targetRows) { |
| 1332 | const { canBeModified = true } = _positionSettings.parent.settings; |
| 1333 | if (canBeModified) { |
| 1334 | const para = { |
| 1335 | jobIds: sourceRows.map(el => el.jpos_jobid), |
| 1336 | posNos: sourceRows.map(el => el.jpos_posno), |
| 1337 | headerTypes: sourceRows.map(el => el.jpos_headertype), |
| 1338 | subPosNos: sourceRows.map(el => el.jpos_subposno), |
| 1339 | insertAfterPosNo: targetRows[0].jpos_posno, |
| 1340 | insertAfterJobId: targetRows[0].jpos_jobid, |
| 1341 | insertAfterHeaderType: targetRows[0].jpos_headertype, |
| 1342 | insertAfterSubPosNo: targetRows[0].jpos_subposno |
| 1343 | }; |
| 1344 | const data = await servicesData.setReorderPos(para); |
| 1345 | if (data !== null) { |
| 1346 | await onReloadTable(); |
| 1347 | } |
| 1348 | } |
| 1349 | } |
| 1350 | async function _updateTableContent() { |
| 1351 | const moduleName = _getModuleName(); |
| 1352 | const filter = _tableObject.getFilter(); |
no test coverage detected