cdk
2025-10-27 af64de4c183c4919067ed83114cc8c65d51a252b
fqc代码调整
已修改1个文件
16 ■■■■ 文件已修改
DevApp/Gs.DevApp/DevFrm/FQC/Frm_FQCItem.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/FQC/Frm_FQCItem.cs
@@ -76,10 +76,8 @@
                {
                    // 选择匀速时:启用匀速抽样数,禁用随机抽样数
                    txt_SampleSize1.Properties.ReadOnly = false;
                    txt_SampleSize1.Properties.Appearance.BackColor = Color.White;
                    txt_SampleSize2.Properties.ReadOnly = true;
                    txt_SampleSize2.Properties.Appearance.BackColor = Color.WhiteSmoke;
                    txt_SampleSize2.Text = ""; // 清空随机抽样数
                    if (int.TryParse(txt_SampleSize1.Text.Trim(), out int size))
@@ -89,10 +87,8 @@
                {
                    // 选择随机时:启用随机抽样数,禁用匀速抽样数
                    txt_SampleSize2.Properties.ReadOnly = false;
                    txt_SampleSize2.Properties.Appearance.BackColor = Color.White;
                    txt_SampleSize1.Properties.ReadOnly = true;
                    txt_SampleSize1.Properties.Appearance.BackColor = Color.WhiteSmoke;
                    txt_SampleSize1.Text = ""; // 清空匀速抽样数
                    if (int.TryParse(txt_SampleSize2.Text.Trim(), out int size))
@@ -102,11 +98,9 @@
                {
                    // 未选择或其他情况:两个输入框都禁用
                    txt_SampleSize1.Properties.ReadOnly = true;
                    txt_SampleSize1.Properties.Appearance.BackColor = Color.WhiteSmoke;
                    txt_SampleSize1.Text = "";
                    txt_SampleSize2.Properties.ReadOnly = true;
                    txt_SampleSize2.Properties.Appearance.BackColor = Color.WhiteSmoke;
                    txt_SampleSize2.Text = "";
                }
@@ -164,27 +158,21 @@
            if (currentSampleMethod == "匀速")
            {
                txt_SampleSize1.Properties.ReadOnly = false;
                txt_SampleSize1.Properties.Appearance.BackColor = Color.White;
                txt_SampleSize2.Properties.ReadOnly = true;
                txt_SampleSize2.Properties.Appearance.BackColor = Color.LightGray;
            }
            else if (currentSampleMethod == "随机")
            {
                txt_SampleSize2.Properties.ReadOnly = false;
                txt_SampleSize2.Properties.Appearance.BackColor = Color.White;
                txt_SampleSize1.Properties.ReadOnly = true;
                txt_SampleSize1.Properties.Appearance.BackColor = Color.LightGray;
            }
            else
            {
                // 未选择时两个都禁用
                txt_SampleSize1.Properties.ReadOnly = true;
                txt_SampleSize1.Properties.Appearance.BackColor = Color.LightGray;
                txt_SampleSize2.Properties.ReadOnly = true;
                txt_SampleSize2.Properties.Appearance.BackColor = Color.LightGray;
            }
        }
@@ -404,6 +392,10 @@
                        RPB014 = row["RPB014"]?.ToString(),
                        RPB015 = row["RPB015"]?.ToString(),
                        RPB016 = row["RPB016"]?.ToString(),
                        RPB017 = row["RPB017"]?.ToString(),
                        RPB018 = row["RPB018"]?.ToString(),
                        RPB019 = row["RPB019"]?.ToString(),
                        RPB020 = row["RPB020"]?.ToString(),
                        Remark = row["Remark"]?.ToString(),
                        Seq = row["Seq"]?.ToString(),
                    });