lu
2025-03-23 df0fc2993b41f0cb617b90bedbcbd7e61002f52c
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -24,7 +24,8 @@
        {
            InitializeComponent();
            strType = _strType;
        }
        protected override void OnCreateControl()
        {
@@ -39,7 +40,11 @@
            toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick;
          //  this.toolBarMenu1.getXmlConfig();
            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);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, parentForm, "foneChecked", "", (value) =>
@@ -81,7 +86,6 @@
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
            Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
@@ -109,7 +113,7 @@
            gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged;
            gridView1.ActiveFilter.Clear();
            gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
            var frm = new ShowFilter(gridView1.Columns, _filterList);
              var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName);
            frm.UpdateParent += Frm_UpdateParent;
            frm.ShowDialog();
        }
@@ -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,6 +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()),
                        });
                    }
                }
@@ -343,7 +353,7 @@
                    ItemId = long.Parse(_ItemId),
                    Memo = txt_memo.Text.Trim(),
                    ItemNo = txt_itemNo.Text.Trim(),
                    Ftype = "1",
                    Ftype = this.strType,
                    Fversion = Gs.DevApp.ToolBox.UtilityHelper.ToLong(txt_fversion.Text.Trim()),
                    list = lst
                };
@@ -374,7 +384,6 @@
            {
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
        /// <summary>
@@ -385,6 +394,7 @@
        {
            var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
            _sbSqlWhere += " and b.guid is not null";
            _sbSqlWhere += " and a.FTYPE='" + this.strType + "'";
            var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount,
                "org.FNumber asc ,b.item_no asc,a.FVERSION desc", "", "", _sbSqlWhere.ToString());
            var json = JsonConvert.SerializeObject(pgq);
@@ -404,7 +414,8 @@
                    {
                        gcMain1.DataSource = dt;
                        gcMain1.ForceInitialize();
                        gridView1.BestFitColumns();
                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                    }
                    else
                        UtilityHelper.SetDefaultTable(gcMain1, gridView1);