This commit is contained in:
xyy
2026-01-03 13:06:51 +08:00
parent f892a1b58d
commit 0c8ba17985
2 changed files with 67 additions and 39 deletions

View File

@@ -41,6 +41,8 @@
uiButton1 = new Sunny.UI.UIButton();
uiPanel2 = new Sunny.UI.UIPanel();
uiGroupBox1 = new Sunny.UI.UIGroupBox();
uiComboBox3 = new Sunny.UI.UIComboBox();
uiLabel36 = new Sunny.UI.UILabel();
uiComboBox1 = new Sunny.UI.UIComboBox();
uiLabel6 = new Sunny.UI.UILabel();
uiLabel3 = new Sunny.UI.UILabel();
@@ -87,8 +89,6 @@
uiLabel19 = new Sunny.UI.UILabel();
uiLabel20 = new Sunny.UI.UILabel();
uiLabel17 = new Sunny.UI.UILabel();
uiComboBox3 = new Sunny.UI.UIComboBox();
uiLabel36 = new Sunny.UI.UILabel();
uiTableLayoutPanel1.SuspendLayout();
uiTableLayoutPanel2.SuspendLayout();
uiPanel3.SuspendLayout();
@@ -366,6 +366,43 @@
uiGroupBox1.Text = "激光参数";
uiGroupBox1.TextAlignment = ContentAlignment.MiddleLeft;
//
// uiComboBox3
//
uiComboBox3.DataSource = null;
uiComboBox3.FillColor = Color.White;
uiComboBox3.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiComboBox3.ItemHoverColor = Color.FromArgb(245, 247, 250);
uiComboBox3.Items.AddRange(new object[] { "样品1", "样品2", "样品3", "样品4", "样品5" });
uiComboBox3.ItemSelectForeColor = Color.FromArgb(64, 158, 255);
uiComboBox3.Location = new Point(220, 168);
uiComboBox3.Margin = new Padding(4, 5, 4, 5);
uiComboBox3.MinimumSize = new Size(63, 0);
uiComboBox3.Name = "uiComboBox3";
uiComboBox3.Padding = new Padding(0, 0, 30, 2);
uiComboBox3.Radius = 4;
uiComboBox3.RectColor = Color.FromArgb(220, 223, 230);
uiComboBox3.Size = new Size(225, 44);
uiComboBox3.Style = Sunny.UI.UIStyle.Custom;
uiComboBox3.StyleCustomMode = true;
uiComboBox3.SymbolSize = 24;
uiComboBox3.TabIndex = 7;
uiComboBox3.Text = "选择样品";
uiComboBox3.TextAlignment = ContentAlignment.MiddleLeft;
uiComboBox3.Watermark = "请选择氧浓度";
//
// uiLabel36
//
uiLabel36.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel36.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel36.Location = new Point(40, 178);
uiLabel36.Name = "uiLabel36";
uiLabel36.Size = new Size(173, 34);
uiLabel36.Style = Sunny.UI.UIStyle.Custom;
uiLabel36.StyleCustomMode = true;
uiLabel36.TabIndex = 6;
uiLabel36.Text = "样品:";
uiLabel36.TextAlign = ContentAlignment.MiddleLeft;
//
// uiComboBox1
//
uiComboBox1.DataSource = null;
@@ -964,6 +1001,7 @@
uiComboBox2.Text = "uiComboBox2";
uiComboBox2.TextAlignment = ContentAlignment.MiddleLeft;
uiComboBox2.Watermark = "";
uiComboBox2.SelectedIndexChanged += uiComboBox2_SelectedIndexChanged;
//
// uiLabel27
//
@@ -1108,43 +1146,6 @@
uiLabel17.Text = "测试样品项:";
uiLabel17.TextAlign = ContentAlignment.MiddleLeft;
//
// uiComboBox3
//
uiComboBox3.DataSource = null;
uiComboBox3.FillColor = Color.White;
uiComboBox3.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiComboBox3.ItemHoverColor = Color.FromArgb(245, 247, 250);
uiComboBox3.Items.AddRange(new object[] { "样品1", "样品2", "样品3", "样品4", "样品5" });
uiComboBox3.ItemSelectForeColor = Color.FromArgb(64, 158, 255);
uiComboBox3.Location = new Point(220, 168);
uiComboBox3.Margin = new Padding(4, 5, 4, 5);
uiComboBox3.MinimumSize = new Size(63, 0);
uiComboBox3.Name = "uiComboBox3";
uiComboBox3.Padding = new Padding(0, 0, 30, 2);
uiComboBox3.Radius = 4;
uiComboBox3.RectColor = Color.FromArgb(220, 223, 230);
uiComboBox3.Size = new Size(225, 44);
uiComboBox3.Style = Sunny.UI.UIStyle.Custom;
uiComboBox3.StyleCustomMode = true;
uiComboBox3.SymbolSize = 24;
uiComboBox3.TabIndex = 7;
uiComboBox3.Text = "选择样品";
uiComboBox3.TextAlignment = ContentAlignment.MiddleLeft;
uiComboBox3.Watermark = "请选择氧浓度";
//
// uiLabel36
//
uiLabel36.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
uiLabel36.ForeColor = Color.FromArgb(96, 98, 102);
uiLabel36.Location = new Point(40, 178);
uiLabel36.Name = "uiLabel36";
uiLabel36.Size = new Size(173, 34);
uiLabel36.Style = Sunny.UI.UIStyle.Custom;
uiLabel36.StyleCustomMode = true;
uiLabel36.TabIndex = 6;
uiLabel36.Text = "样品:";
uiLabel36.TextAlign = ContentAlignment.MiddleLeft;
//
// PrimaryIgnitionForm
//
AutoScaleMode = AutoScaleMode.None;

View File

@@ -436,5 +436,32 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
_readtimer.Dispose();
}
}
private void uiComboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
string value = uiComboBox2.SelectedItem.ToString();
switch (value)
{
case "样品1":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 1);
uiLabel21.Text = value;
uiLabel21.Text = data.FireDate.ToString();
//等等
break;
}
case "样品2":
{
var data = reportList?.FirstOrDefault(x => x.sampleType == 2);
uiLabel21.Text = value;
uiLabel21.Text = data.FireDate.ToString();
//等等
break;
}
default:
break;
}
}
}
}