feat(859-4): 일위대가 불러오기 재료 찾기 한 벌 · 불러온 일위대가 기본 판 엑셀
- Hopyo_Fixed.Linker(불러오기 길) 자재 줄 = 단가산출 길 San_Link.m01 재료(코드 · 별칭 · 표기 · 규칙 · 같은 올림 단서 · 유가) · 「엑셀 단가와 같을 때만」 관문 걷음 · 붙여넣기 · B09 통째 · 다시 잇기 후보는 옛 관문 그대로 - 같은 올림 단서 = Sangeun_FromHopyo 저장본 둘 꼴 단서(clues · 파일 날짜 캐시) - [수정] 보기 줄 표지에 자재 판정(단가산출 길과 같은 말) · 후보 창 머리에 판정 · 미리 보기 문서 판 = 엑셀 - [내 일위대가로](불러오기 길) 만든 SC 본뜬.단가기준 = 엑셀 → 금액 = 엑셀(실무 엑셀 9 · 호표 279 중 276 같음 · 전 152 · 남은 3 = 영덕계류 6 · 9 · 10 전부터 약 2 배) - 뜻한 바뀜 = 불러오기 지문 「올림 * 고정 · 목록 · 재료」 8 파일(블록 3,241 · 칠 · 올림 같음) · 재료표 생김 106 · 다른 품목 12 → 두 길 같음만 · 우리 판 단가 다름 109 줄(값은 판이 고름) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
[내 일위대가로] 와 같은 이음 규칙 · 금액 = 엑셀). 줄 표지:
|
||||
· 로직 줄 = 단산 N 참조 → 「단가산출」(번 · 가져온 식 SK 로 엶) · 일위 N 참조 → 「일위대가」(번 · 하위 호표 보기)
|
||||
· 요소 줄 = 그 밖(인력 · 재료 · 기계 · 유가 · 율 · 고정 수) — 이음 있음 = 「연결됨」(이음) ·
|
||||
후보 있음 = 「후보」(키 · 이름) · 없음 = 「못 이음」(엑셀 값 그대로)
|
||||
후보 있음 = 「후보」(키 · 이름) · 없음 = 「못 이음」(엑셀 값 그대로) · 자재 줄 = `판정`(단가산출 길과 같은 말 · 859-4)
|
||||
· 엑셀 = 줄 금액(노무비 · 재료비 · 경비 · 계)
|
||||
문서 = 불러온 일위대가 판 「엑셀」(`본뜬.단가기준` · 859-4 — 화면이 「우리」 로 바꿔 미리 셈) · 이음 = 같은 올림 단서로.
|
||||
기초 판정 · 2차 풀이 없음 · 저장 없음.
|
||||
"""
|
||||
|
||||
@@ -17,6 +18,7 @@ from typing import Any
|
||||
from M02_MasterTemplete import M02_Hopyo_Build as hbuild
|
||||
from M02_MasterTemplete import M02_Hopyo_Fixed as hfix
|
||||
from M02_MasterTemplete import M02_Hopyo_Store as hopyo_store
|
||||
from M02_MasterTemplete import M02_Labor_Fixed as fixed
|
||||
from M02_MasterTemplete import M02_Labor_Ref as refs
|
||||
from M02_MasterTemplete import M02_MasterTemplete_Store as store
|
||||
|
||||
@@ -49,6 +51,7 @@ def mark(line: dict[str, Any], one: dict[str, Any], linker: hfix.Linker) -> dict
|
||||
rate = fx.get("비율")
|
||||
return {**out, "갈래": ELEMENT, "표지": LINKED, "이음": link or {"비율": rate["기준"]}}
|
||||
near = [{"키": c, "이름": _name(linker, c)} for c in linker.candidates(line)]
|
||||
out |= {"판정": v} if (v := linker.verdict(line)) else {}
|
||||
if near:
|
||||
return {**out, "갈래": ELEMENT, "표지": NEAR, "후보": near}
|
||||
return {**out, "갈래": ELEMENT, "표지": NONE}
|
||||
@@ -56,7 +59,8 @@ def mark(line: dict[str, Any], one: dict[str, Any], linker: hfix.Linker) -> dict
|
||||
|
||||
def view(source: str | Path, key: str, no: int) -> dict[str, Any]:
|
||||
"""파일 층 HP 의 호표 하나 보기(`of`)."""
|
||||
return of(hopyo_store.read(Path(source), key), no)
|
||||
linker = hfix.Linker(True, hfix.clues(source, key))
|
||||
return of(hopyo_store.read(Path(source), key), no, linker)
|
||||
|
||||
|
||||
def of(book: dict[str, Any], no: int, linker: hfix.Linker | None = None) -> dict[str, Any]:
|
||||
@@ -73,7 +77,14 @@ def of(book: dict[str, Any], no: int, linker: hfix.Linker | None = None) -> dict
|
||||
lines.append(one)
|
||||
marks.append(mark(line, one, linker))
|
||||
name = " ".join(x for x in (hopyo.get("이름"), hopyo.get("규격")) if x)
|
||||
doc = {"이름": name, "단위": hopyo.get("단위") or None, "담은로직": lines, "자재": []}
|
||||
born = {"층": hbuild.ORIGIN, "파일": where["파일"], fixed.BASIS: fixed.EXCEL} # 859-4 기본 판
|
||||
doc = {
|
||||
"이름": name,
|
||||
"단위": hopyo.get("단위") or None,
|
||||
"담은로직": lines,
|
||||
"자재": [],
|
||||
"본뜬": born,
|
||||
}
|
||||
head = {k: hopyo.get(k) for k in ("번", "이름", "규격", "단위", "금액")}
|
||||
return {**head, "문서": doc, "줄": marks}
|
||||
|
||||
@@ -83,7 +94,7 @@ def listing(folder: str | Path, key: str, to: str | Path) -> dict[str, Any]:
|
||||
`줄상태 [[차례, 표지, 이어짐]]` · `만든` SC(만들 층 `to` · 이 파일 층 것만)."""
|
||||
book = hopyo_store.read(Path(folder), key)
|
||||
made = hbuild.confirmed(to, refs.where(Path(folder)))
|
||||
linker, units = hfix.Linker(True), []
|
||||
linker, units = hfix.Linker(True, hfix.clues(folder, key)), []
|
||||
for h in book.get("호표") or []:
|
||||
no = int(h["번"])
|
||||
marks = of(book, no, linker)["줄"]
|
||||
|
||||
Reference in New Issue
Block a user