lu
2025-05-30 e3b7fd23fa49bc0329e43d274d9a3e0563e4420d
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -40,6 +40,7 @@
            toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            toolBarMenu1.xlsInService = "XlsInItemJyxm&" + strType;
            //类型,iqc,ipqc巡检,ipqc首检查,fqc,iqc的样品值默认为5,其它为1
            txt_ftype.Text = strType;
            if (strType == "iqc")
@@ -48,6 +49,11 @@
            if (strType != "ipqc巡检")
            {
                gvMx1.Columns["stationName"].Visible = false;
            }
            //如果是ipqc首检,显示认证
            if (strType != "ipqc首检")
            {
                gvMx1.Columns["isRzxx"].Visible = false;
            }
            //新行初始值
            this.gvMx1.InitNewRow += (s, e) =>
@@ -251,6 +257,13 @@
        private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
        {
            toolBarMenu1.isSetBtn = false;
            string _orgId = txt_fSubsidiary.GetId();
            if (string.IsNullOrEmpty(_orgId))
            {
                MsgHelper.Warning("请选择使用组织!");
                txt_fSubsidiary.Focus();
                return;
            }
            string _ItemId = txt_itemId.GetId();
            if (string.IsNullOrEmpty(_ItemId))
            {
@@ -312,6 +325,10 @@
                        string _Fstand = row["Fstand"].ToString();
                        string _FupAllow = row["FupAllow"].ToString();
                        string _FdownAllow = row["FdownAllow"].ToString();
                        string _isRzxxTxt = row["isRzxx"].ToString();
                        bool _isRzxx = false;
                        if (_isRzxxTxt == "1" || _isRzxxTxt.ToUpper() == "true".ToUpper())
                            _isRzxx = true;
                        //假如三个都为空通过
                        if (string.IsNullOrEmpty(_Fstand) && string.IsNullOrEmpty(_FupAllow) && string.IsNullOrEmpty(_FdownAllow))
                        {
@@ -352,6 +369,7 @@
                            FdownAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FdownAllow"].ToString()),
                            ypsl = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["ypsl"].ToString()),
                            stationName = row["stationName"].ToString(),
                            isRzxx = _isRzxx,
                        });
                    }
                }
@@ -794,5 +812,6 @@
            }
        }
        #endregion
    }
}