feat(tools): STMATE 원본 DBF/SMT/STC/JB_R 직접 읽기·쓰기 브리지 서버 및 UI 연동 추가 (tools/stmate-test)

This commit is contained in:
2026-11-04 22:23:34 +09:00
parent a56da7bb2b
commit 1cc9dca9fc
5 changed files with 1060 additions and 4 deletions
+15 -1
View File
@@ -256,7 +256,8 @@ function renderAll() {
});
const panel = $("tabPanel");
if (activeTab === "resources") panel.innerHTML = renderResourcesTab(res);
if (activeTab === "db") panel.innerHTML = StmateDbBridge.renderDbTab(state, res);
else if (activeTab === "resources") panel.innerHTML = renderResourcesTab(res);
else if (activeTab === "machines") panel.innerHTML = renderMachinesTab(res);
else if (activeTab === "ilwi") panel.innerHTML = renderIlwiTab(res);
else if (activeTab === "boq") panel.innerHTML = StmateCostViews.renderBoqTab(state, res);
@@ -681,4 +682,17 @@ $("fileOpen").addEventListener("change", async (e) => {
}
});
if (typeof StmateDbBridge !== "undefined") {
StmateDbBridge.initEvents(
() => state,
(newSt) => {
state = newSt;
selectedIlwiId = state.ilwiItems[0]?.id || "";
},
() => {
saveState();
renderAll();
},
);
}
renderAll();