초기 커밋: SheetMe 서식생성기 (P0~P5 완료 상태)
레거시 서식생성기(VB.NET WinForms) 대체용 C#/.NET 10 WPF 디자이너. 기준선: 실DB 활성 디자인 1,271건 왕복 의미론 diff 0 / 예외 0, 단위 테스트 49/49. 이 커밋에 함께 포함된 자격증명 분리: - appsettings.json 을 __HOST__/__PASSWORD__ 플레이스홀더로 전환 - 실접속 정보는 appsettings.Development.json 으로 분리(.gitignore 제외, csproj Debug 조건부 복사라 Release 산출물에 실리지 않음) - ConfigLoader 를 환경변수 > Development > appsettings 순 레이어링으로 변경, 미치환 플레이스홀더는 '미설정'으로 간주 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace SheetMe.Designer.Views;
|
||||
|
||||
/// <summary>신규 서식(E_ShtMst) 최소 등록 대화상자 — 코드/명칭/분류 입력.</summary>
|
||||
public partial class RegisterSheetDialogView : Window
|
||||
{
|
||||
#region Properties
|
||||
/// <summary>서식 코드</summary>
|
||||
public string SheetCode => CodeBox.Text.Trim();
|
||||
|
||||
/// <summary>서식 명칭</summary>
|
||||
public string SheetName => NameBox.Text.Trim();
|
||||
|
||||
/// <summary>분류 코드(선택)</summary>
|
||||
public string? ClassCode => ClassBox.Text.Trim().Length == 0 ? null : ClassBox.Text.Trim();
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public RegisterSheetDialogView(string initialCode, string initialName)
|
||||
{
|
||||
InitializeComponent();
|
||||
CodeBox.Text = initialCode;
|
||||
NameBox.Text = initialName;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
private void OnConfirm(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (SheetCode.Length == 0 || SheetName.Length == 0)
|
||||
{
|
||||
MessageBox.Show("서식 코드와 명칭을 입력하세요.", "신규 서식 등록");
|
||||
return;
|
||||
}
|
||||
DialogResult = true;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user