Merge branch 'sub_laptop_1' of C:/Aislo_wt/sub_laptop_1 into main_laptop_1

# Conflicts:
#	M02_MasterTemplete/M02_MyMachine_Router.py
This commit is contained in:
2026-11-17 16:48:06 +09:00
30 changed files with 32 additions and 479 deletions
+1 -7
View File
@@ -3,7 +3,7 @@
모델 = `scripts/master_equation.py`(나무 · 변수 표) · `master_equation_edit.py`(고침 · 검사) ·
키보드 글 번역 · 상한 = M02 단가산출 식 칸과 한 벌(`M02_Sangeun_Formula` 불러 씀 · 고치지 않음) ·
셈 = 엔진 한 벌(③ 서버 단독 · 브라우저 값 받아 적지 않음) · 저장 = 기존 M01 `/save`(개정확인) ·
M02 사본(795-1)은 `export_row` · `edit_row` 를 사본 줄로 부름 · 시험 `test_796_1_formula_model.py`.
M02 사본(795-1)은 `edit_row` 를 사본 줄로 부름 · `export_row` 는 시험(796-1 · 800-2)의 수식 모델 바탕(옛 엔진 은퇴 때 같이).
"""
from __future__ import annotations
@@ -15,7 +15,6 @@ from M01_MasterData import M01_MasterData_Store as store
_ERR = (store.cm.mf.FormulaError, ArithmeticError, KeyError, TypeError, ValueError)
import master_equation as meq # noqa: E402 — `store` 가 scripts 를 길에 둔 뒤
import master_equation_link as link # noqa: E402
import master_equation_edit as me # noqa: E402
@@ -56,8 +55,3 @@ def edit_row(whole, row: dict, edits: list) -> tuple[dict, list[str]]:
"""고침 → (새 줄, 까닭) — 까닭 있으면 저장 안 됨(M01 · M02 사본 같은 함수)."""
new, why, _ = me.apply(whole, row, edits, words)
return new, why
def links(ask: dict) -> dict:
"""새 기호 연결 후보(800-3) — {갈래: 표 | 요소 | 로직, 검색, 분류?} → {후보, 더있음} · 읽기만."""
return link.candidates(store.loaded()[1], ask)
-13
View File
@@ -5,7 +5,6 @@
틀 = `_수식문서_틀.md` 9 장.
- 단가산출 기초 목록 · 찾아 넣기 「다른 단가산출」 목록에서 뺌(`strip`) — 키로 열기 · 셈 · 부르기는 그대로
- 기종 → 그 기종 기계가 쓰는 기계경비식 · 작업량 틀(`of_kind` · M01 「기계」 화면)
- 기계 원문번호 → 그 기종 작업량 틀 문서(`of_machine` · 줄 쌓기 기계 넣기)
쓰기 없음 · 로그인 사용자 모두(마스터 읽기).
"""
@@ -75,15 +74,3 @@ def of_kind(group: str, detail: str = "") -> dict[str, list]:
used[str(got["키"])] = used.get(str(got["키"]), 0) + 1
rule = [{**_brief(k, docs[k]), "기계수": n} for k, n in used.items() if k in docs]
return {"기계경비식": rule, "작업량 틀": [_brief(k, d) for k, d in _templates(detail)]}
def of_machine(no: str) -> dict[str, Any]:
"""줄 쌓기 기계 넣기 — 기계 원문번호 → {기계 {이름 · 규격 · 상세구분}, 틀 [{… 문서}]}."""
row = next((m for m in _machines() if str(m.get("원문번호")) == str(no)), None)
if not row:
raise store.StoreError(404, f"없는 기계 「{no}」")
kind = str(row.get("상세구분") or "")
return {
"기계": {"이름": row.get("이름"), "규격": row.get("규격") or "", "상세구분": kind},
"틀": [{**_brief(k, d), "문서": d} for k, d in _templates(kind)],
}
@@ -1,11 +0,0 @@
/* =============================================================================
* M01_MasterData_UI_Logic_Money.ts
* 돈 모양 — 공용 꼴 한 벌(`common_util/common_util_money.ts`)을 다시 내보냄. 부르는 쪽은 그대로.
* ========================================================================== */
export {
formatLineMoney,
formatMoney,
formatNumber,
formatPrice,
} from "../common_util/common_util_money";
@@ -24,57 +24,6 @@
white-space: pre-wrap;
}
.m02-hopyo__search {
max-width: 320px;
}
/* 실무자료 표 — 한글은 낱말 단위로만 줄바꿈(두세 글자마다 안 갈라짐) · 너무 긴 낱말만 쪼갬 */
.m02-hopyo__table :is(th, td) {
word-break: keep-all;
overflow-wrap: break-word;
}
/* 우리 로직 칸 — 대상 여럿 = 칸 안 여러 줄(이름 · 키 · 몫 · 배 칸 · [옵션]) */
.m02-hopyo__parts {
min-width: 11em;
}
.m02-hopyo__part {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--spacing-4);
}
.m02-hopyo__part + .m02-hopyo__part {
margin-top: var(--spacing-4);
}
.m02-hopyo__times {
width: 6em;
}
.m02-hopyo__unit {
display: inline-flex;
align-items: center;
gap: var(--spacing-4);
}
/* 단위 환산 칸 앞뒤 글 — 「엑셀 1 ㎡ = 우리 [ ] 본」 */
.m02-hopyo__unit-text {
color: var(--color-text-secondary);
font-size: var(--text-sm);
white-space: nowrap;
}
.m02-hopyo__acts {
white-space: nowrap;
}
.m02-hopyo__acts > button + button {
margin-left: var(--spacing-4);
}
/* 엑셀 보기(329) — 왼쪽 읽기 전용 시트 · 오른쪽 호표 목록 */
.m02-hopyo-sheet {
display: grid;
@@ -65,7 +65,6 @@ export function gridOf(id: string, scope: HopyoScope, key: string): Promise<Hopy
got.catch(() => kept?.got === got && (kept = null));
return got;
}
export const dropGrid = (): void => void (kept = null);
/** 역할 시트 탭 글 통일 — 역할 → 시트 id */
export function nameTabs(book: Workbook, grid: HopyoGrid): Partial<Record<Role, string>> {
@@ -48,7 +48,6 @@ export function buildHopyoSection(opt: HopyoSectionOptions): HopyoSection {
start.classList.add("m02-layers__btn");
start.title =
"파일 하나 — 경쟁사 엑셀(.xls · .xlsx) 또는 경쟁사 파일(.estx · .STC) → 우리 정보로 다시 만듦(한시 · 끝내거나 떠나면 올린 파일 지움)";
start.dataset.hopyoWizardOpen = "";
const jobs = el("div", { className: "m02-hopyo-side", attrs: { "data-hopyo-jobs": "" } });
const body = el("div", {
className: "m02-hopyo-side",
@@ -10,7 +10,7 @@ import { currentLanguageIndex } from "@ui/ui_template_locale";
import { wheelZoomsIn } from "../A00_Common/touch_bridge";
import { guardMenuAfterDrag, isAuxPanButton } from "../A00_Common/input_prefs";
import { createButton, el } from "@ui/ui_template_elements";
import { formatMoney } from "../M01_MasterData/M01_MasterData_UI_Logic_Money";
import { formatMoney } from "../common_util/common_util_money";
import "./M02_MasterTemplete_Labor_Diagram.css";
import { createEmpty } from "@ui/ui_template_empty";
@@ -9,7 +9,7 @@
* ========================================================================== */
import { createButton, el } from "@ui/ui_template_elements";
import { formatMoney } from "../M01_MasterData/M01_MasterData_UI_Logic_Money";
import { formatMoney } from "../common_util/common_util_money";
import { openPickTable } from "../M01_MasterData/M01_MasterData_UI_Logic_PickTable";
import { headWord } from "../M01_MasterData/M01_MasterData_UI_LogicLab_Modal";
import type { LaborCalc, LaborRow, MatMarkKey } from "./M02_MasterTemplete_Labor_Api";
@@ -6,7 +6,7 @@
* ========================================================================== */
import { createButton, el } from "@ui/ui_template_elements";
import { formatMoney } from "../M01_MasterData/M01_MasterData_UI_Logic_Money";
import { formatMoney } from "../common_util/common_util_money";
import type {
LaborCalc,
LaborCalcLine,
@@ -15,7 +15,7 @@
import { createButton, createSelectField, el } from "@ui/ui_template_elements";
import { HOPYO_TAG } from "@ui/ui_template_hopyo_grid";
import { pctView } from "../M01_MasterData/M01_MasterData_UI_Logic_Api";
import { formatLineMoney, formatMoney } from "../M01_MasterData/M01_MasterData_UI_Logic_Money";
import { formatLineMoney, formatMoney } from "../common_util/common_util_money";
import type { ItemLogic } from "./M02_MasterTemplete_Api_Fetch";
import type {
LaborCalc,
+1 -14
View File
@@ -4,7 +4,7 @@ GET 목록(줄마다 시간당 · 쓰는곳수) · GET `/{키}` 하나(+시간
POST 만들기 몸 {줄?, 본뜬?: M01 · 내 기계 키(「비슷한 기계에서 시작」)} · 만들기 · 고치기 = M01 과 같은 이름 · 규격 409(840-2) ·
PUT `/{키}` 몸 {줄, 판?}(판 = 연 판 · 다르면 409 {stale, 판} · 854-1) ·
POST `/{키}/impact` 몸 {줄} = 저장 전 영향(848-5 · 쓰기 없음) · DELETE `/{키}`(답 = 쓰는곳 — 그 단가산출은 사본의 마지막 값 그대로) ·
POST `/draft` 몸 {줄, 키?, 본뜬?} = 단가산출 기계 창 [확인](827-1 · 쓰기 없음 · 층 쓰기 권한) → {줄, 셈값, 시간당}.
옛 POST `/draft`(기계 창 [확인] · 화면 0)은 853-3 에서 지움 — 확인 셈 `M02_MyMachine_Draft.check` 는 시험 827-1 기준값으로 남김.
권한 = 층 권한 한 벌(`Router_Items._root` — 본인 개인 층 · 맡은 회사 관리자) · 개인 층만(그 밖 404).
⚠ 등록은 `main.py`(로그인만).
"""
@@ -18,7 +18,6 @@ from pydantic import BaseModel
from common_util.common_util_auth import verify_session
from M02_MasterTemplete import M02_MyMachine as mym
from M02_MasterTemplete import M02_MyMachine_Draft as draft
from M02_MasterTemplete import M02_MyMachine_Impact as impact
from M02_MasterTemplete.M02_MasterTemplete_Router_Items import Session, _call, _root
@@ -29,8 +28,6 @@ PATH = "/layers/{layer}/my-machines"
class MachineBody(BaseModel):
줄: dict[str, Any] | None = None
본뜬: str | None = None
키: str | None = None # 초안 확인(827-1) — 고칠 내 기계
표지: str | None = None # 초안 확인(827-1) — 화면이 정한 표지(셈 기록 열쇠)
판: str | None = None # 고치기 — 화면이 연 판(854-1 · 다르면 409)
@@ -45,16 +42,6 @@ def my_machines(layer: str, owner: str | None = None, session: Session = Depends
return _call(_folder(session, layer, owner), mym.listing)
@router.post(PATH + "/draft")
def my_machine_draft(
layer: str,
body: MachineBody,
owner: str | None = None,
session: Session = Depends(verify_session),
):
return _call(_folder(session, layer, owner, True), draft.check, body.model_dump())
@router.get(PATH + "/{key}")
def my_machine(
layer: str, key: str, owner: str | None = None, session: Session = Depends(verify_session)
-56
View File
@@ -152,14 +152,6 @@ def flat(s: Any) -> str:
return re.sub(r"\s+", "", str(s or ""))
def _hcol(rows: list[list[Any]], word: str, start: int = 2) -> int | None:
for r in rows[start : start + 2]:
for j, v in enumerate(r):
if flat(v) == word:
return j
return None
def _n(v: Any) -> float | None:
if isinstance(v, (int, float)):
return float(v)
@@ -192,51 +184,3 @@ def applied_how(r: list[Any]) -> tuple[dict[str, float], str | None]:
return got, None # 쓸 값이 없음 — 표지할 것 없음
why = "적용 칸 합이 안 맞음" if a["T"] else "적용 칸 비어 있음"
return got, f"당초 칸 사용 — {why}" + (f" ({gap})" if gap else "")
def applied(r: list[Any]) -> dict[str, float]:
return applied_how(r)[0]
def est_prices(book: dict[str, list]) -> tuple[list[dict[str, Any]], dict[int, dict[str, Any]]]:
"""→ (단가 목록 [{종류, 이름, 규격, 비목, 값}], 산근 총괄 {번: {T, L, M, S, 이름, 규격}})."""
out: list[dict[str, Any]] = []
lab = book.get("노임단가", [])
c = _hcol(lab, "적용단가")
for r in lab[3:]:
if c is not None and len(r) > c and r[2] and isinstance(r[c], (int, float)):
out.append(
{"종류": "노임", "이름": flat(r[2]), "규격": "", "비목": "L", "값": float(r[c])}
)
mat = book.get("자재단가", [])
c = _hcol(mat, "적용단가")
for r in mat[4:]:
if c is not None and len(r) > c and r[2] and isinstance(r[c], (int, float)):
out.append(
{
"종류": "자재",
"이름": flat(r[2]),
"규격": flat(r[3]),
"비목": "M",
"값": float(r[c]),
}
)
for sheet, kind in (("기계경비총괄표", "기계"), ("견적단가", "견적")):
for r in book.get(sheet, [])[3:]:
if len(r) > 28 and r[2]:
for k, v in applied(r).items():
if isinstance(v, (int, float)) and (v or k != "T"):
one = {"종류": kind, "이름": flat(r[2]), "규격": flat(r[3])}
out.append({**one, "비목": k, "값": float(v or 0)})
san: dict[int, dict[str, Any]] = {}
for r in book.get("단가산출총괄표", [])[3:]:
if len(r) > 28 and str(r[1]).strip().isdigit():
n = int(str(r[1]).strip())
got, note = applied_how(r)
san[n] = {k: float(v or 0) for k, v in got.items()}
san[n] |= {"이름": flat(r[2]), "규격": flat(r[3]), "칸": note}
for k in "TLMS":
if san[n][k] or k != "T":
one = {"종류": "산근", "이름": f"단산{n}", "규격": ""}
out.append({**one, "비목": k, "값": san[n][k]})
return out, san
-6
View File
@@ -139,12 +139,6 @@ def chosen(item: dict) -> dict | None:
return got if got and not _apart(res) else None
def item_key(res: dict) -> str | None:
"""줄 품목 키 — 고름 › 엔진 이음."""
found = res.get("재료찾기") or {}
return (found.get("고름") or {}).get("키") or found.get("키")
def apart_note(found: dict) -> str:
"""별도계상 줄 설명 — 품목이 있으면 「별도계상 · 품목: 이름 규격」."""
from M02_MasterTemplete import M02_San_Link as link
-7
View File
@@ -182,10 +182,3 @@ def parse_line(g: str | None) -> dict[str, Any]:
if refs:
return {**head, **_ref_line(st, refs[0])}
return {**head, **_assign_line(st)}
def parse_block(lines: list[dict[str, Any]]) -> list[dict[str, Any]]:
"""[{행, G}] → 줄 나무 목록(행 · 원문 붙임)."""
return [
{"행": ln.get("행"), "글": ln.get("G") or "", **parse_line(ln.get("G"))} for ln in lines
]
+1 -1
View File
@@ -122,7 +122,7 @@ def _table(rows: list[list[Any]], price: tuple[str, ...]) -> list[dict[str, Any]
def resources(sheets: dict[str, list]) -> dict[str, list[dict[str, Any]]]:
"""같은 책 단가표 → {종류: [{번 · 이름 · 규격 · 단위 · 표 · 값 {T L M S}}]}(노임 · 자재 = 적용단가 ·
기계 · 견적 · 산근 = 적용 칸(합이 안 맞으면 당초 · `M02_San_Book.applied`))."""
기계 · 견적 · 산근 = 적용 칸(합이 안 맞으면 당초 · `M02_San_Book.applied_how`))."""
out: dict[str, list[dict[str, Any]]] = {}
for kind, sheet, comp in (("노임", "노임단가", "L"), ("자재", "자재단가", "M")):
rows = sheets.get(sheet) or []
+2 -1
View File
@@ -561,7 +561,8 @@ def create(
new: bool = False, use: str | None = None,
) -> dict[str, Any]: # fmt: skip
"""엔진 로직 줄 + 원본 → 지금 층 새 가져온 식 SK — 서버가 다시 셈해 엑셀과 맞댐(검산 ·
다르면 `같음` False 로 표지 · 막지 않음) · 같은 층 같은 내용 = 409(`ask` · 733-2)."""
다르면 `같음` False 로 표지 · 막지 않음) · 같은 층 같은 내용 = 409(`ask` · 733-2) ·
서버 길(POST sangeun/imported)은 853-3 에서 걷음 — 시험이 가져온 식 SK 바탕으로 씀."""
return keep(new_doc(logic, source, name, unit, head), new, use)
+1 -26
View File
@@ -1,6 +1,6 @@
"""M02 단가산출(SK) 셈 길(PLAN 715-1b) — `POST /api/m02/layers/{층}/sangeun/calc` ·
일위대가 [+ 줄] M01 기초 = 그 층 SK 사본(811-1 · `M02_Labor_SkRow`) `…/sangeun/from-logic`(층 쓰기) ·
가져온 식(793-2 · `M02_Sangeun_Imported`) `…/sangeun/imported`(만들기 · 층 쓰기) · `/price` ·
가져온 식(793-2 · `M02_Sangeun_Imported`) `…/sangeun/imported/price` ·
`/link`(화면 캐시 문서 고침 · 저장 없음 · 층 읽기 · 기초로 바꾸기 없음 · 809-1) ·
불러오기 단산 블록 → 가져온 식(793-3b · `M02_Sangeun_FromHopyo`) `…/sangeun/from-hopyo`
(늘 개인 층 쓰기 · 몸 `문서` = 미리 보기에서 고친 문서) · 미리 보기 `…/from-hopyo/preview`(층 읽기 · 안 씀 · 835-1).
@@ -81,31 +81,6 @@ def calc_sangeun(
return _call(_root(session, layer, owner), _calc, body)
class ImportedBody(BaseModel):
로직: dict[str, Any]
원본: dict[str, Any] | None = None
이름: str = ""
단위: str = ""
구분: str = ""
상세구분: str = ""
새로: bool = False
씀: str | None = None
@router.post("/layers/{layer}/sangeun/imported")
def sangeun_imported(
layer: Layer,
body: ImportedBody,
owner: str | None = None,
session: Session = Depends(verify_session),
) -> dict:
"""가져온 식 단가산출 만들기(793-2) — 답 = {이름, 검산, 단가기준} · 같은 내용 409."""
folder = _root(session, layer, owner, write=True)
head = {"구분": body.구분, "상세구분": body.상세구분}
args = (body.로직, body.원본, body.이름, body.단위, head, body.새로, body.씀)
return _call(folder, _sd(imp.create), *args)
class FromHopyoBody(BaseModel):
층: Layer
주인: str | None = None
@@ -1,61 +0,0 @@
/* =============================================================================
* M02_MasterTemplete_Hopyo_Unit.ts — 확인 창 대상 이름 옆 「단위 환산」 칸의 보이기 판정(PLAN 784-2 · 요구 635-2).
* 순수 계산(화면 · fetch 없음) — 숨김 조건 · 두 단위 글 재료 · 추정 두께.
* · same = 배 1 · 단위 같음(서버 갈래 같음 · 두 단위 · 단위표 1) → 칸 숨김 · 「단위 같음 ×1」
* · quota = 배가 몫(0.1)과 같음 → 칸 숨김 · 「몫 0.1」 만
* · input = 빈칸 · 추정 · 그 밖 → 입력 칸 「엑셀 1 ㎡ = 우리 [ ] 본」
* 값 자체(배)는 안 바꿈 — 서버 `Match.factor` 가 낸 배 · 갈래를 보이기만 다르게.
* ========================================================================== */
export interface UnitPart {
배: number | null;
몫?: number | null;
환산?: { 배: number | null; 갈래: string } | null;
단위?: string | null;
}
export type UnitMode = "same" | "quota" | "input";
export interface UnitView {
mode: UnitMode;
/** 엑셀 단위 · 우리 단위(빈 글 = 모름) */
from: string;
to: string;
/** 추정 갈래 — 두께 m(㎡ → ㎥ 일 때만 · 아니면 null) */
thick: number | null;
estimated: boolean;
}
const plain = (u: string | null | undefined): string =>
String(u ?? "")
.replace(/\s+/g, "")
.replace("㎡", "m2")
.replace("㎥", "m3")
.toLowerCase();
const close = (a: number, b: number): boolean => Math.abs(a - b) < 1e-9;
export function unitView(
p: UnitPart,
from: string | null | undefined,
to?: string | null,
): UnitView {
const f = String(from ?? "").trim();
const t = String(to ?? p.단위 ?? "").trim();
const quota = p.몫 != null && p.몫 !== 1; // 몫 1 = 몫 없음과 같음
const kind = p.환산?.갈래;
const unitSame = kind
? kind === "같음" || kind === "두 단위" || (kind === "단위표" && p.환산?.배 === 1)
: plain(f) !== "" && plain(f) === plain(t);
const at = quota ? (p.몫 as number) : 1;
const hidden = p.배 !== null && close(p.배, at) && unitSame;
const estimated = kind === "추정";
const thick =
estimated && plain(f) === "m2" && plain(t) === "m3" && p.환산?.배 != null ? p.환산.배 : null;
return {
mode: hidden ? (quota ? "quota" : "same") : "input",
from: f,
to: t,
thick,
estimated,
};
}
@@ -1,13 +0,0 @@
/* 784-2 — `logic/M02_MasterTemplete_Hopyo_Unit.ts` 단위 환산 보이기 판정을 트랜스파일해 Node 로 돌림.
* stdin = {cases: [{part, from, to}]} · stdout = unitView 결과 배열 JSON. */
const fs = require("fs");
const path = require("path");
const { makeLoader } = require("./helper_ts_stub_loader.cjs");
const ROOT = path.join(__dirname, "..", "..");
const { loadTs } = makeLoader({ root: ROOT });
const unit = loadTs(
path.join(ROOT, "M02_MasterTemplete", "logic", "M02_MasterTemplete_Hopyo_Unit.ts"),
);
const input = JSON.parse(fs.readFileSync(0, "utf8"));
process.stdout.write(JSON.stringify(input.cases.map((c) => unit.unitView(c.part, c.from, c.to))));
@@ -78,7 +78,7 @@ def test_화면_층_단추_최상위_폴더_이름_바꾸기():
def test_구조물_조합_층_제자리_바꿈():
"""720-4 — 해시 이동 없음 · replaceState · 나무 · 층 줄 · 띠를 감싼 칸에 갈아 끼움 · 권한 = 함수 ·
도면 양식 = 누구나(단추는 관리자) · 불러오기 장부 = 열 때 층 · 권한."""
도면 양식 = 누구나(단추는 관리자)."""
page = _text("M02_MasterTemplete_UI_Page.ts")
assert "navigateTo" not in page
switch = page.split("const switchStructure = async")[1].split("const go =")[0]
@@ -96,5 +96,3 @@ def test_구조물_조합_층_제자리_바꿈():
assert "const drawing = opt.isSystem" not in side
assert "if (!opt.isSystem) return [];" in side
assert "items = await listTemplates(layer, null);" in side
hopyo = _text("M02_MasterTemplete_Hopyo_Side.ts")
assert "buildHopyoLedger({ scope: pageScope(), canWrite: opt.canWrite() })" in hopyo
+9 -3
View File
@@ -26,6 +26,12 @@ mf = importlib.import_module("master_formula")
mcut = importlib.import_module("master_cut")
ms = importlib.import_module("master_formula_sum")
def _nodes(rows):
"""[{행, G}] → 줄 나무(옛 `San_Stmate.parse_block` 꼴 · 지금 길 = `Doc_FromNative._emit` 이 줄마다 `parse_line`)."""
return [{"행": r.get("행"), "글": r.get("G") or "", **stm.parse_line(r.get("G"))} for r in rows]
STMATE = { # 파일: (블록, 금액 줄, 계표시 줄, 끝전)
"봉화": (62, 349, 184, "비목버림"),
"동부청영월": (69, 411, 230, "합버림_큰나머지"),
@@ -72,7 +78,7 @@ def _load(tag: str) -> dict:
def _stmate(tag: str, blk: dict) -> tuple[list, dict]:
nodes = stm.parse_block(blk["몸"])
nodes = _nodes(blk["몸"])
return nodes, em.stmate(blk, nodes, _load(tag)["단가"], STMATE[tag][3])
@@ -150,7 +156,7 @@ def test_link_keys_m01() -> None:
"""호표 줄 = 793-2 꼴(종류 · 단가 · 이음 = 1차 줄 판정 M01 키) · 덧칸 자원 · 원본."""
tag = "봉화"
blk = next(b for b in _load(tag)["블록"] if b["코드"] == "D00102")
out = em.stmate(blk, stm.parse_block(blk["몸"]), _load(tag)["단가"], "비목버림", True)
out = em.stmate(blk, _nodes(blk["몸"]), _load(tag)["단가"], "비목버림", True)
labor = next(x for x in out["로직"]["호표"] if x["이름"] == "보통인부")
assert {k: v for k, v in labor.items() if k != "자원"} == {
"이름": "보통인부",
@@ -207,7 +213,7 @@ def test_stmate_grammar_sample_engine() -> None:
"'뒤 인부' &L00007& * 0.01 =",
]
rows = [{"행": i, "G": g} for i, g in enumerate(text)]
nodes = stm.parse_block(rows)
nodes = _nodes(rows)
block = {"코드": "D00001", "이름": "견본", "꼬리": [], "몸": rows}
block["머리"] = {"A": "", "B": "", "C": 0, "D": 0, "E": 0, "F": 0}
out = em.stmate(block, nodes, prices, "비목버림")
+7 -2
View File
@@ -24,6 +24,11 @@ NOTE = em.NOTE
DOCS = golden.DOCS
def _nodes(rows):
"""[{행, G}] → 줄 나무(옛 `San_Stmate.parse_block` 꼴 · 지금 길 = `Doc_FromNative._emit` 이 줄마다 `parse_line`)."""
return [{"행": r.get("행"), "글": r.get("G") or "", **stm.parse_line(r.get("G"))} for r in rows]
def notes(out: dict) -> list[str]:
return [m for m in out["원본"]["표지"] if NOTE in m]
@@ -60,7 +65,7 @@ def test_applied_or_first_column_is_flagged() -> None:
)
nothing = book.applied_how(_row((None,) * 4, (0, 0, 0, 0)))
assert nothing[1] is None # 쓸 값이 없는 줄
assert book.applied(_row((100, 40, 30, 30), (90, 40, 30, 20)))["T"] == 100
assert book.applied_how(_row((100, 40, 30, 30), (90, 40, 30, 20)))[0]["T"] == 100
def test_first_column_note_reaches_block_flags() -> None:
@@ -88,7 +93,7 @@ def _stmate_out(meta: dict) -> dict:
rows = [{"행": 0, "G": "'보통인부' &L00007& * 1 :=A01"}]
block = {"코드": "D00001", "이름": "견본", "꼬리": [], "몸": rows}
block["머리"] = {"A": "", "B": "", "C": 0, "D": 0, "E": 0, "F": 0}
return em.stmate(block, stm.parse_block(rows), prices, "비목버림")
return em.stmate(block, _nodes(rows), prices, "비목버림")
def test_adjust_ratio_and_bid_rate_are_flagged() -> None:
@@ -9,6 +9,7 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
sys.path[:0] = [str(ROOT), str(ROOT / "resources/master_data/scripts")]
from M01_MasterData import M01_MasterData_Doc as doc # noqa: E402
from M01_MasterData import M01_MasterData_Equation as eq # noqa: E402
from M01_MasterData import M01_MasterData_Store as store # noqa: E402
@@ -117,10 +118,10 @@ def test_drop_guard_and_unused_input():
def test_candidates():
whole = store.loaded()[1]
got = eq.links({"갈래": "표", "검색": "합판거푸집 폼타이", "분류": ""})
got = doc.candidates({"갈래": "표", "검색": "합판거푸집 폼타이", "분류": ""})
assert got["후보"] and "조건" in got["후보"][0]
assert eq.links({"갈래": "요소", "검색": "형틀목공", "분류": "인력"})["후보"]
assert eq.links({"갈래": "로직", "검색": "합판거푸집", "분류": ""})["후보"]
assert doc.candidates({"갈래": "요소", "검색": "형틀목공", "분류": "인력"})["후보"]
assert doc.candidates({"갈래": "로직", "검색": "합판거푸집", "분류": ""})["후보"]
assert whole is not None
-4
View File
@@ -95,10 +95,6 @@ def test_기계_부품():
assert {"GC001147", "GF000088"} <= tpl and len(tpl) == 15
coef = m01_router.get_parts("계수식")["계수식"]
assert {x["키"] for x in coef} == {"GC001143", "GC001191", "GC001192", "GC001193"}
one = parts.of_machine("0201-0070")
assert one["기계"] == {"이름": "굴착기(무한궤도)", "규격": "0.7㎥", "상세구분": "굴착기"}
by = {t["키"]: t for t in one["틀"]}
assert by["GC001147"]["규격"] == "버킷용량" and by["GF000088"]["문서"]["결과"] == "Q"
def test_변환기가_표지를_옮김():
@@ -201,7 +201,7 @@ def test_company_and_other_refused(world):
_at(world["company"], path.preview, sk, {"문서": doc})
assert e.value.status == 404
with pytest.raises(HTTPException) as e:
route.my_machine_draft("personal", route.MachineBody(줄=_body()), "7/43", USER)
route.my_machine_create("personal", route.MachineBody(줄=_body()), "7/43", USER)
assert e.value.status_code == 403
with pytest.raises(HTTPException) as e:
doc_route.save_doc("personal", sk, doc_route.DocBody(문서=doc, 판=""), "7/43", USER)
@@ -173,7 +173,6 @@ def test_apart_item_zero(world) -> None:
var = _var(conv, e["기호"])
assert e["별도계상"] and var["연결"]["갈래"] == "숫자"
assert f"별도계상 · 품목: {gov['이름']} {gov['규격']} · 셈은 프로젝트에서" in var["설명"]
assert mp.item_key(mine["자원"]) == gov["키"]
assert skpath.read(got["이름"])["셈"] == skpath.read(plain["이름"])["셈"]
# 이미 만든(고름 전) SK 에 물음 예 = 품목 설명만 · 단가 0 그대로
money = skpath.read(plain["이름"])["셈"]
-11
View File
@@ -5,7 +5,6 @@
export const ui_locales_m1 = {
B01_Dashboard_MasterElements: ["마스터 데이터", "Master Data"],
M01_LogicTab: ["로직", "Logic"],
M01_Title: ["마스터 요소", "Master Elements"],
M01_AdminOnly: ["시스템 관리자만 볼 수 있음", "System administrators only"],
M01_LoadFailed: ["마스터 요소를 못 읽음", "Failed to load master elements"],
@@ -44,15 +43,7 @@ export const ui_locales_m1 = {
M01_ProcureSearch: ["이름·규격 검색", "Find by name or spec"],
M01_ProcureCut: ["연결 끊기", "Unlink"],
M01_ProcureClose: ["닫기", "Close"],
M01_PriceFind: ["가격 연결", "Link price"],
M01_PriceTitle: ["가격 연결 고르기", "Pick price source"],
M01_PriceCol: ["가격 연결", "Price link"],
M01_PriceCond: ["조건 연결 (지역은 입력)", "Link by condition (region as input)"],
M01_PriceCondName: ["이름", "Name"],
M01_PriceCondSpec: ["규격", "Spec"],
M01_PriceCondUsed: ["후보 조건", "Condition"],
M01_Govt: ["관급", "Govt"],
M01_OnlyUnlinked: ["미연결만", "Unlinked only"],
M01_JobFind: ["직종 선택", "Pick job"],
M01_JobTitle: ["준용 직종 고르기", "Pick substitute job"],
M01_JobCol: ["준용", "Substitute"],
@@ -66,7 +57,6 @@ export const ui_locales_m1 = {
M01_MachineDetail: ["상세구분", "Detail"],
M01_UsageTarget: ["대상", "Target"],
M01_TableUsage: ["용도", "Usage"],
M01_TableUsageLogicCount: ["로직 {value}개", "{value} logic rules"],
M01_OpenLogic: ["눌러 로직 탭으로", "Click to jump to the Logic tab"],
M01_GroupLabor: ["인력", "Labor"],
M01_GroupMaterial: ["재료", "Materials"],
@@ -75,7 +65,6 @@ export const ui_locales_m1 = {
M01_GroupFactor: ["계수", "Factors"],
M01_GroupExchange: ["환율", "Exchange rates"],
M01_GroupRate: ["요율", "Rates"],
M01_GroupLogic: ["단가산출 기초", "Unit-price logic"],
B01_CalcSites_Title: ["계산 자리", "Calc sites"],
B01_CalcSites_Desc: ["조작 중 계산 = 브라우저 · 서버 고름", "Browser or server while editing"],
B01_CalcSites_ServerCount: ["지금 서버 {value} 줄", "{value} rows on server now"],
-98
View File
@@ -150,14 +150,6 @@ export const ui_locales_m2 = {
"Tree updated — name already taken, saved as “{value}”",
],
M02_HopyoImport: ["일위대가 불러오기", "Import unit-price sheets"],
M02_HopyoUnitTip: [
"단위 환산 — 우리 수량 = 엑셀 수량 × 이 값",
"Unit conversion — our qty = Excel qty × this value",
],
M02_HopyoUnitSame: ["단위 같음 ×1", "Same unit ×1"],
M02_HopyoUnitLead: ["엑셀 1 {from} = 우리", "Excel 1 {from} = ours"],
M02_HopyoUnitThick: ["두께 {n}m 로 추정", "Estimated from thickness {n}m"],
M02_HopyoUnitEst: ["규격으로 추정", "Estimated from the spec"],
B01_Dashboard_CardPrecombo: ["일위대가", "Unit-cost items"],
M02_PrecomboTitle: ["일위대가", "Unit-cost items"],
B01_Dashboard_CardSangeun: ["단가산출", "Unit-price analyses"],
@@ -211,98 +203,15 @@ export const ui_locales_m2 = {
M02_FindOptions: ["옵션 {n}", "{n} options"],
// 729-3 불러오기 — 안 이은 줄 · 일위대가표 띠
// 778-5 D-5 마법사 단가산출 줄 고름(제안 · 확인 뒤 옮김)
M02_SkSummary: [
"블록 {b} · 옮길 수 있음 {ok} · 고를 줄 있음 {wait} · 옮김(SK) {made} · 확인 {sure}",
"Blocks {b} · ready {ok} · open lines {wait} · moved (SK) {made} · confirmed {sure}",
],
M02_SkJudge: ["다시 판정", "Re-check"],
M02_SkJudging: ["줄 판정 중…", "Checking lines…"],
M02_SkMove: ["확인한 것 옮기기 ({n})", "Move confirmed ({n})"],
M02_SkMoveTip: [
"확인한 블록만 단위 SK 로 — 서버가 M01 지금 값으로 다시 셈",
"Only confirmed blocks become SKs — the server recalculates with current M01",
],
M02_SkMoved: ["옮김 {made} · 못 옮김 {bad}", "Moved {made} · not moved {bad}"],
M02_SkFailed: ["못 옮긴 블록 {n} — 까닭 펼쳐 봄", "{n} blocks not moved — see why"],
M02_SkSureFirst: ["확인한 블록 없음 — 블록마다 [확인]", "No confirmed block yet"],
M02_SkSure: ["확인", "Confirm"],
M02_SkSureTip: ["이 블록을 옮길 목록에 넣음", "Add this block to the move list"],
M02_SkSureOff: ["고를 줄이 남음 — 줄 표에서 먼저 고름", "Lines still open — pick them first"],
M02_SkOpen: ["줄", "Lines"],
M02_SkSheet: ["보기", "View"],
M02_SkNone: ["단가산출 블록 없음", "No unit-cost blocks"],
M02_SkNoLines: ["줄 없음", "No lines"],
// 780-2 단가산출 목록(엑셀 보기 오른쪽 · 요구 627)
M02_SkFilter: ["거르기", "Filter"],
M02_SkFilterAll: ["전체", "All"],
M02_SkFilterIn: ["일위대가 안", "In unit-price sheet"],
M02_SkFilterOut: ["일위대가 밖", "Outside unit-price sheet"],
M02_SkFilterOpen: ["고를 줄 있음", "Open lines"],
M02_SkColCall: ["부름", "Called by"],
M02_SkCallIn: ["일위대가 {n} 곳", "{n} unit-price rows"],
M02_SkCallOut: ["일위대가 밖", "Outside"],
M02_SkSummaryIn: ["일위대가 안 {in} · 밖 {out}", "in sheet {in} · outside {out}"],
M02_SkSureEmpty: ["줄 없음 — 옮길 것 없음", "No lines — nothing to move"],
M02_SkUnmoved: [
"안 옮긴 단가산출 {n}(일위대가 밖 {m})",
"Unit-cost blocks not moved {n} (outside {m})",
],
M02_SkBasisTag: ["근거(참고) —", "Basis (ref) —"],
M02_SkLeft: [
"단가산출 확인 안 한 블록 {n} · 고를 줄 {m}",
"Unit-cost blocks not confirmed {n} · open lines {m}",
],
M02_SkColBlock: ["블록", "Block"],
M02_SkColVerdict: ["판정", "Verdict"],
M02_SkColOurs: ["우리 금액", "Our amount"],
M02_SkColExcel: ["엑셀 금액(참고)", "Excel amount (ref)"],
M02_SkColBasis: ["근거", "Basis"],
M02_SkColMade: ["만든 SK", "SK made"],
M02_SkColGroup: ["묶음", "Group"],
M02_SkColParam: ["매개값", "Value"],
M02_SkColState: ["상태", "State"],
M02_SkColHow: ["방법", "Method"],
M02_SkColDiff: ["차(참고)", "Diff (ref)"],
M02_SkColPick: ["고름", "Pick"],
M02_SkBasePick: ["기준 고름", "Pick base"],
M02_SkDrop: ["뺌", "Drop"],
M02_SkDropWhy: ["까닭", "Reason"],
M02_SkDropDefault: ["우리에 없음", "Not in ours"],
M02_SkClear: ["고름 지움", "Clear"],
M02_LeftTitle: ["안 이은 줄", "Unlinked rows"],
M02_LeftHint: [
"만들면 M01 · 기초 · SK 에 안 이어질 엑셀 줄 — 줄마다 이을 것을 고름 · 고른 뒤 엑셀 보기 창 [저장] 또는 호표 [수정] 생성",
"Excel rows that would stay unlinked — pick a link per row, then save in the sheet window",
],
M02_LeftBand: ["안 이은 줄 {n} (호표 {h})", "Unlinked rows {n} (sheets {h})"],
M02_LeftZero: ["안 이은 줄 0", "No unlinked rows"],
M02_LeftUnknown: [
"안 이은 줄 — 아직 안 셈 · [끝내기] 때 다시 셈",
"Unlinked rows — not counted yet",
],
M02_LeftBlocked: ["안 이은 줄이 남아 [끝내기] 막힘", "Finish blocked — unlinked rows left"],
M02_LeftLoose: ["고른 뒤 안 만든 호표 {n} 개는 빠짐", "{n} picked but unmade sheets are dropped"],
M02_LeftOpen: ["안 이은 줄 고르기", "Pick unlinked rows"],
M02_LeftCounting: ["안 이은 줄 셈 중", "Counting unlinked rows"],
M02_LeftHopyo: ["호표", "Sheet"],
M02_LeftSpec: ["규격", "Spec"],
M02_LeftKind: ["갈래", "Kind"],
M02_LeftWhy: ["까닭", "Reason"],
M02_LeftPicked: ["고른 것", "Picked"],
M02_LeftPick: ["고름", "Pick"],
M02_LeftBase: ["기초", "Base"],
M02_LeftSkGo: ["단가산출 걸음에서 확인 ▸", "Check in the Sangeun step ▸"],
M02_LeftChoose: ["고르기", "Pick"],
M02_HopyoKid: ["하위 제{n}호표 {key}(사본 담음)", "Sub sheet {n} {key} (copy inside)"],
M02_HopyoKidNew: ["함께 만듦", "made together"],
M02_HopyoKidFail: ["하위 제{n}호표 실패", "Sub sheet {n} failed"],
M02_HopyoReused: ["같은 내용 일위대가 다시 씀", "Same unit-price reused"],
M02_LeftFind: ["찾기", "Find"],
M02_LeftMachine: ["기계", "Machine"],
M02_LeftNoneTip: [
"우리 M01 에 없음 — 엑셀 숫자 그대로 고정 줄(사용자가 고른 것으로 남음)",
"Not in M01 — keep the Excel numbers as a fixed row",
],
M02_GridUnlinked: ["M01 연결 없음 {n} 줄", "{n} rows not linked to M01"],
M02_GridLink: ["연결", "Link"],
M02_GridLinkTitle: ["안 이은 줄 연결", "Link unlinked rows"],
@@ -311,13 +220,6 @@ export const ui_locales_m2 = {
"Fixed rows link to labor, material or machine only",
],
M02_LibUnlinked: ["안 이은 줄", "Unlinked"],
M02_LostTitle: ["못옮김 잇기", "Link unmoved rows"],
M02_LostHint: [
"옛 단가산출 SK 의 남은 못옮김(보기만) — 잇기 = 마법사 단가산출 칸에서 단산{n} 블록 줄 고름 → [확인] → [확인한 것 옮기기]",
"Unmoved rows of an old SK (view only) — link in the wizard unit-cost step: pick lines of block {n}, confirm, then move",
],
M02_LostZero: ["못옮김 0", "Nothing unmoved"],
M02_ElemTitle: ["M01 요소 후보", "M01 element candidates"],
M02_SheetIlwi: ["일위대가표", "Unit-price sheet"],
M02_SheetList: ["단가산출표", "Price basis list"],
M02_SheetDetail: ["단가산출 상세", "Price basis detail"],
@@ -5,58 +5,10 @@
export const ui_locales_m2_judge = {
M02_JudgeLoading: ["판정 읽는 중", "Loading verdicts"],
M02_JudgeHopyo: ["제{n}호표", "Item {n}"],
M02_JudgeBlock: ["단산{n}", "Calc {n}"],
M02_JudgeColRow: ["행", "Row"],
M02_JudgeColName: ["엑셀 품명 · 규격", "Excel name · spec"],
M02_JudgeColVerdict: ["1차 판정", "Verdict"],
M02_JudgeColKind: ["갈래 · 근거", "Kind · basis"],
M02_JudgeColPick: ["후보(여럿 고름)", "Candidates (multi)"],
M02_JudgeColQty: ["수량", "Qty"],
M02_JudgeColOk: ["확인", "Confirm"],
M02_JudgeConfirm: ["확인", "Confirm"],
M02_JudgeConfirmed: ["확인함", "Confirmed"],
M02_JudgeConfirmAll: ["호표 제안 모두 확인", "Confirm all suggestions"],
M02_JudgeCheck: ["검산", "Check"],
M02_JudgeSheet: ["보기", "View"],
M02_JudgeSolve: ["블록 풀이", "Block solve"],
M02_JudgeWholeSk: ["단가산출 통째", "Whole unit calc"],
M02_JudgeSection: ["맡은 절", "Section"],
M02_JudgeNoBase: ["기초 후보 없음", "No base candidate"],
M02_JudgeColInput: ["입력 칸", "Input"],
M02_JudgeColValue: ["값", "Value"],
M02_JudgeColSource: ["출처", "Source"],
M02_JudgeNeed: ["입력 필요", "Input needed"],
M02_JudgeConflict: ["엇갈림", "Conflict"],
M02_JudgeDefault: ["기본", "Default"],
M02_JudgeUser: ["사용자", "User"],
M02_JudgeUnused: ["안 씀", "Unused"],
M02_JudgeColGroup: ["묶음", "Group"],
M02_JudgeColExcel: ["엑셀", "Excel"],
M02_JudgeColOurs: ["우리", "Ours"],
M02_JudgeColPair: ["대조", "Pair"],
M02_JudgeOursMoney: ["우리 금액", "Our amount"],
M02_JudgeExcelMoney: ["엑셀 금액", "Excel amount"],
M02_JudgeExtra: ["덧 줄(엑셀만)", "Extra lines (Excel only)"],
M02_JudgeNoCand: ["후보 없음", "No candidate"],
M02_JudgeBlocked: ["입력 필요 칸이 남음", "Inputs still needed"],
M02_JudgeMove: ["옮기기", "Move"],
M02_JudgeMoveNone: ["확인한 것 없음", "Nothing confirmed"],
M02_JudgeMoved: [
"옮김 — 일위대가 {a} · 단가산출 {b} · 막힘 {c}",
"Moved — items {a} · unit calcs {b} · blocked {c}",
],
M02_JudgeCalls: ["부름", "Called by"],
M02_JudgeMade: ["만든", "Made"],
M02_JudgeUnitHint: ["엑셀 1 {from} = 우리", "Excel 1 {from} = ours"],
M02_JudgePickN: ["고를 것 {n}", "To pick {n}"],
M02_JudgeAmountNote: [
"금액은 참고 — 판정은 품",
"Amounts are reference — verdict is by quantity",
],
M02_JudgeOutside: ["일위대가 밖", "Not called by items"],
M02_CheckTitle: ["확인 — 제{n}호표", "Check — item {n}"],
M02_CheckNew: ["새", "New"],
M02_CheckImported: ["가져온 식으로 열기", "Open as imported formula"],
M02_ToMySk: ["내 단가산출로", "To my build-ups"],
M02_ToMySc: ["내 일위대가로", "To my unit costs"],
@@ -68,21 +20,8 @@ export const ui_locales_m2_judge = {
"{k} 만듦 · 단가산출 {s} · 엑셀과 {same}",
"{k} made · build-ups {s} · vs Excel {same}",
],
M02_CheckNewHint: ["「새」 = 785 에서 더한 기능", "「New」 = added in 785"],
M02_CheckApart: ["별도계상 · 품목은 프로젝트에서", "Separate · item chosen in project"],
M02_CheckExcelPrice: ["엑셀 단가", "Excel unit price"],
M02_CheckMoneyHint: [
"금액 칸 위 = 엑셀 · 아래 = 우리(미리 셈 · 엑셀 1 단위)",
"Amount top = Excel · bottom = ours (preview · per Excel unit)",
],
M02_CheckCount: ["제안 {a} / 줄 {m} · 확인 {c}", "Suggested {a} / lines {m} · confirmed {c}"],
M02_CheckMake: ["일위대가 생성", "Create unit-cost item"],
M02_CheckMakeAsk: [
"확인한 줄 {a} · 고정 줄 {b}(엑셀 숫자 그대로) — 일위대가 생성",
"Confirmed {a} · fixed {b} (Excel values) — create item",
],
M02_CheckToItem: ["구조물 조합으로", "To structure combo"],
M02_CheckToItemHint: ["일위대가 생성 뒤 켜짐", "Enabled after the item is created"],
M02_CheckToItemFail: ["구조물 조합 못 만듦", "Could not create structure item"],
M02_CheckItemName: ["구조물 조합 이름", "Structure item name"],
M02_CheckItemMake: ["만들기", "Create"],
@@ -95,21 +34,4 @@ export const ui_locales_m2_judge = {
"구조물 조합 「{name}」 만듦 — {path}",
"Structure item 「{name}」 created — {path}",
],
M02_CheckSheet: ["엑셀 보기", "View Excel"],
M02_CheckPick: ["고르기", "Pick"],
M02_CheckSource: ["원문 보기", "Source"],
M02_CheckSourceExcel: ["엑셀 인용 조항", "Excel cited clauses"],
M02_CheckSourceOurs: ["우리 로직 출처", "Our logic source"],
M02_CheckNone: ["없음", "None"],
M02_CheckOption: ["옵션", "Options"],
M02_CheckAdd: ["추가", "Add"],
M02_CheckNoLogic: ["로직없음", "No logic"],
M02_CheckNoLogicHint: [
"로직없음 = 고정 줄(엑셀 숫자 그대로) · 추가 = 제안으로",
"No logic = fixed line (Excel values) · Add = back to suggestion",
],
M02_CheckCompare: ["품 비교", "Qty compare"],
M02_CheckMat: ["자재", "Materials"],
M02_CheckNoCalc: ["셈 못 함", "Not computed"],
M02_CheckNoLines: ["구성 줄 없음", "No lines"],
} as const;
@@ -51,7 +51,6 @@ export const ui_locales_machine = {
M01_MachineHourly: ["시간당 경비", "Hourly cost"],
M01_MachineUse: ["사용", "Active"],
M01_MachineShowOff: ["비활성 같이 보기", "Show inactive"],
M01_MachineMeta: ["원문 · 구분", "Source · group"],
M01_MachineUses: ["쓰는 곳", "Used by"],
M01_MachineNoUses: ["쓰는 곳 없음", "Not used"],
M01_MachineFormula: ["쓰는 계산식", "Hourly formula"],
@@ -76,7 +75,6 @@ export const ui_locales_machine = {
"Unsaved edits. Leave? (edits stay in the draft)",
],
M01_MachineNotFound: ["그 기계가 없음", "Machine not found"],
M01_MachineReadOnly: ["읽기만 — 시스템 관리자만 고침", "Read only — system admins edit"],
M01_MachineErrors: ["고칠 칸이 있음", "Fix the marked fields"],
M01_MachineDetailGroup: ["상세구분", "Sub-group"],
M01_MachineSourceNo: ["원문번호", "Source no."],