입통원구분·성별표기·내원일시 8종 — 110종 → 118종, 체크류 SetValue 의미론
Computed 6종: OCM_입통원구분_입원/통원(Boolean→"True"/"False", bzDataInterface.vb:989/1009, PatTyp=ComPatTyp 는 bzPatientInfo.vb:639), OCM_외래내원일시(:1068), OCM_외래내원일자_영문(:1091 — Data2Format_ENG "MM-DD-YYYY" 는 월 영문화가 아니라 자리 재배열, clsCommonLib.vb:8591), OCM_입원내원일시/일자(:2824/:2840 Case Else — KIMEYE 만 ComTrsDtm, 미이식 주석). FromResidentNumber 2종: PAT_성별_남/여(:317/:338) — F/M→N·Y 변환, 그 외 값은 레거시가 Select Case Else 없이 그대로 돌려주므로 그대로. WithTagValue 에 체크류 갈래 신설: CheckBox/RadioButton 에 태그가 걸리면 Text 치환이 아니라 Checked 를 바꾼다 — 레거시 SetValue 가 "Y"/"TRUE"(대소문자 무시)만 체크로 바꾼다(CheckBox.vb:688-696 · RadioButton.vb:338-351). 값을 Text 에 넣으면 라벨이 "True" 가 된다. 미리보기·인쇄가 같은 BuildPageVisual 경로라 한 곳 수정으로 둘 다 반영. PAT_성별_나이는 AgeCheck 의존이라 나이 계열과 함께 보류. - dotnet test 338/338 · --edit-smoke 실패 0 (이름 검사 118종) - --db-patient ①~㉚ 전건 통과 - --db-render P062 md5 8d683835f5d81e7bb41c79071d6bf954 불변 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
ba6da2252f
commit
adb3572e40
@@ -196,11 +196,22 @@ public static class PrintService
|
||||
{
|
||||
return control;
|
||||
}
|
||||
var text = value.Resolved ? value.Text
|
||||
: value.Text.Length > 0 ? $"[{label} — {value.Text}]" : $"[{label}]";
|
||||
|
||||
var model = control.Model.Clone();
|
||||
model.Props.SetText("Text", text);
|
||||
if (value.Resolved && control is CheckBoxViewModel or RadioButtonViewModel)
|
||||
{
|
||||
// 체크류는 레거시 SetValue 의미론이다 — 값이 "Y" 또는 "TRUE"(대소문자 무시)면 체크,
|
||||
// 그 외는 언체크(CheckBox.vb:688-696 · RadioButton.vb:338-351). 라벨(Text)은 건드리지
|
||||
// 않는다 — 레거시도 체크 상태만 바꾼다. Boolean 태그(입통원구분 등)의 ToString
|
||||
// "True" 가 이 규칙으로 체크가 된다. 값을 Text 에 넣으면 라벨이 "True" 로 바뀐다.
|
||||
var upper = value.Text.ToUpperInvariant();
|
||||
model.Props.SetText("Checked", upper is "Y" or "TRUE" ? "True" : "False");
|
||||
}
|
||||
else
|
||||
{
|
||||
var text = value.Resolved ? value.Text
|
||||
: value.Text.Length > 0 ? $"[{label} — {value.Text}]" : $"[{label}]";
|
||||
model.Props.SetText("Text", text);
|
||||
}
|
||||
return DocumentMapper.CreateControl(model, control.EffectiveFont, control.Foreground);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user