lu
2025-03-19 77bb288cb1059a349bc38fb2255fcdfe2ddc3b32
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -25,6 +25,7 @@
            InitializeComponent();
            strType = _strType;
        }
        protected override void OnCreateControl()
        {
@@ -39,6 +40,10 @@
            toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick;
            decimal _dfValue = 1;
            if (strType == "iqc")
                _dfValue = 5;
            this.gvMx1.InitNewRow += (s, e) => { this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", _dfValue); };
            this.toolBarMenu1.getXmlConfig();
            Form parentForm = this.FindForm();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
@@ -79,7 +84,6 @@
            btnSave.Click += BtnSave_Click;
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
@@ -292,6 +296,11 @@
                            MsgHelper.ShowError("接受水平不能为空!");
                            return;
                        }
                        if (string.IsNullOrEmpty(row["ypsl"].ToString()))
                        {
                            MsgHelper.ShowError("样品数量平不能为空!");
                            return;
                        }
                        string _Fstand = row["Fstand"].ToString();
                        string _FupAllow = row["FupAllow"].ToString();
                        string _FdownAllow = row["FdownAllow"].ToString();
@@ -334,7 +343,7 @@
                            Memo = row["memo"].ToString(),
                            FupAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FupAllow"].ToString()),
                            FdownAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FdownAllow"].ToString()),
                            ypsl = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["ypsl"].ToString()),
                        });
                    }
                }
@@ -375,7 +384,6 @@
            {
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
        /// <summary>
@@ -406,7 +414,8 @@
                    {
                        gcMain1.DataSource = dt;
                        gcMain1.ForceInitialize();
                        gridView1.BestFitColumns();
                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                    }
                    else
                        UtilityHelper.SetDefaultTable(gcMain1, gridView1);