基线:全量源码首提(D1 版本控制落地,含第一轮优化 B1-B4/A1/A4/缩放修复)

This commit is contained in:
dqb-dev
2026-10-01 22:15:22 +08:00
commit 1e65792b09
499 changed files with 204579 additions and 0 deletions
@@ -0,0 +1,36 @@
using System;
using System.Windows.Forms;
namespace 成套报价软件
{
/// <summary>
/// 用户库元件编辑 的交互逻辑(事件处理)。
/// UI 布局定义见 用户库元件编辑.ui.cs。
/// </summary>
public partial class 用户库元件编辑
{
/// <summary>构造函数:初始化 UI 并绑定事件。</summary>
public 用户库元件编辑()
{
InitializeComponent();
}
// ============ 公共属性(供主窗口读写编辑窗体的字段值)============
// 因为 ui.cs 里控件是 private,这里通过 public 属性暴露
public string 元件名称 { get { return txtName.Text; } set { txtName.Text = value ?? ""; } }
public string 规格 { get { return txtSpec.Text; } set { txtSpec.Text = value ?? ""; } }
public string 单位 { get { return txtUnit.Text; } set { txtUnit.Text = value ?? ""; } }
public string 数量 { get { return txtQty.Text; } set { txtQty.Text = value ?? ""; } }
public string 表价 { get { return txtPrice.Text; } set { txtPrice.Text = value ?? ""; } }
public string 采购系数 { get { return txtBuyCoeff.Text; } set { txtBuyCoeff.Text = value ?? ""; } }
public string 报出系数 { get { return txtQuoteCoeff.Text; } set { txtQuoteCoeff.Text = value ?? ""; } }
public string 品牌 { get { return txtBrand.Text; } set { txtBrand.Text = value ?? ""; } }
public string 系列 { get { return txtSeries.Text; } set { txtSeries.Text = value ?? ""; } }
public string 元件类型 { get { return txtType.Text; } set { txtType.Text = value ?? ""; } }
// 提示:在设计器的属性窗口(事件页)双击事件名,
// 会自动在此生成事件处理方法骨架。
}
}