MCPcopy
hub / github.com/webpack/webpack / _updateTableContent

Function _updateTableContent

test/configCases/inner-graph/issue-11678/module.js:1350–1412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1348 }
1349}
1350async function _updateTableContent() {
1351 const moduleName = _getModuleName();
1352 const filter = _tableObject.getFilter();
1353 const para = {
1354 ...getFilterPara(filter)
1355 };
1356 switch (moduleName) {
1357 case ModuleNameEnum.SIHEADER:
1358 {
1359 const hPk = getPKfromModule();
1360 para.theSIBookID = hPk.idSiBook;
1361 para.theSIHeaderID = hPk.siHeaderId;
1362 }
1363 break;
1364 case ModuleNameEnum.JOB:
1365 {
1366 const hPk = getPKfromModule();
1367 para.theJobID = hPk.jobid;
1368 }
1369 break;
1370 case ModuleNameEnum.CEHEADER:
1371 {
1372 const hPk = getPKfromModule();
1373 para.theCEID = hPk.ceId;
1374 }
1375 break;
1376 case ModuleNameEnum.ORDER:
1377 {
1378 const hPk = getPKfromModule();
1379 para.theOrderID = hPk.orderId;
1380 }
1381 break;
1382 case ModuleNameEnum.CIHEADER:
1383 {
1384 const hPk = getPKfromModule();
1385 para.ciBookId = hPk.ciBookId;
1386 para.ciHeaderId = hPk.ciHeaderId;
1387 }
1388 break;
1389 default:
1390 throw new Error(`Invalid moduleName "${moduleName}"`);
1391 }
1392 para.theType = _getModuleType();
1393 const data = await servicesData.getListOfPos(para, _getModuleType(), 1, 1);
1394 if (data !== null) {
1395
1396 _tableObject.setConfiguration({
1397 ..._tableObject.getConfiguration(),
1398 columns: data.head.columns
1399 });
1400
1401 _setTableData(data);
1402
1403 _rerenderTable();
1404
1405 if (_tableSelectionPosNo) {
1406 _tableObject.setSelection([{ jpos_posno: _tableSelectionPosNo }]);
1407 _tableObject.makeVisible();

Callers 15

onReloadTableFunction · 0.85
onConnectPositionFunction · 0.85
onShiftPositionFunction · 0.85
onCopyFunction · 0.85
onDuplicateFunction · 0.85
onCopyFromOrderToJobFunction · 0.85
onMoveFunction · 0.85
onDefineLayoutFunction · 0.85
onJobToOrderPosFunction · 0.85
onAutoSumsFunction · 0.85
onInsertServiceFunction · 0.85

Calls 6

_getModuleNameFunction · 0.85
getPKfromModuleFunction · 0.85
_getModuleTypeFunction · 0.85
_setTableDataFunction · 0.85
_rerenderTableFunction · 0.85
_removeDetailsFunction · 0.85

Tested by

no test coverage detected