lu
7 天以前 5a7f68bf4dbbdca1abbb939bd43e1fb695bc7c0b
DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs
@@ -32,6 +32,7 @@
            toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            toolBarMenu1.btnBaoGaoClick += ToolBarMenu1_btnBaoGaoClick;
            this.toolBarMenu1.getXmlConfig();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2);
@@ -403,6 +404,14 @@
            this.ucUpFileList1.pGuid = "";
            this.ucChouJianList1.pGuid = "";
            this.setEable(false);
            //增加的时候禁止2025-08-14 beg
            this.txt_msg.Enabled = false;
            this.txt_fngHandle.Enabled = false;
            this.txt_zrType.Enabled = false;
            this.txt_fzrId.Enabled = false;
            this.txt_fmrmode.Enabled = false;
            //增加的时候禁止2025-08-14 end
        }
        /// <summary>
        /// 修改事件
@@ -432,6 +441,16 @@
                UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList);
                this.setEable(true);
            }
            //2025/07/12加上修改状态下不能修改
            txt_lotNo.Enabled = false;
            txt_kbList.Enabled = false;
            //txt_fPurchaserId.IsReadly = true;
            this.txt_msg.Enabled = true;
            this.txt_fngHandle.Enabled = true;
            this.txt_zrType.Enabled = true;
            this.txt_fzrId.Enabled = true;
            this.txt_fmrmode.Enabled = true;
        }
        /// <summary>
@@ -455,7 +474,7 @@
            string _txt_lotNo1 = txt_lotNo1.Text.Trim();//送检批号
            string _txt_lotNo = txt_lotNo.Text.Trim();//生产工单
            string _kbList = txt_kbList.Text.Trim();
            if (txt_djType.SelectedIndex <= 0)
            if (txt_djType.SelectedIndex < 0)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("单据类型不能为空!");
                txt_djType.Focus();
@@ -505,7 +524,7 @@
            }
            //当不合格时的检查
            string _txt_fngHandle = txt_fngHandle.Text.Trim();
            string _txt_fmrmode = txt_fmrmode.SelectedText.Trim();
            string _txt_fmrmode = txt_fmrmode.Text.Trim();
            string _txt_fzrId = txt_fzrId.GetId();
            string _txt_workNo = txt_workNo.Text.Trim();
            string _txt_zrType = txt_zrType.Text.Trim();
@@ -699,7 +718,7 @@
            if (toolBarMenu1.currentAction == "edit") isEdit = true;
            if (string.IsNullOrEmpty(strGuid))
            {
                ToolBox.MsgHelper.Warning("请先选择你要操作的行!");
                ToolBox.MsgHelper.ShowError("请先选择你要操作的行!");
                return;
            }
            var _obj = new
@@ -796,7 +815,6 @@
            if (e.Page.Name == "tabMxPage2")
            {
                ucChouJianList1.getList14();
            }
            if (e.Page.Name == "tabMxPage3")
            {
@@ -851,7 +869,6 @@
            btnLoad.Enabled = bl;
            ucChouJianList1.IsReadOnly(!bl);
            btnIpt.Text = (bl == true ? "录入样本" : "查看样本");
        }
        /// <summary>
@@ -905,6 +922,37 @@
            frm.ShowDialog();
        }
        //生产报告
        private void ToolBarMenu1_btnBaoGaoClick(object sender, EventArgs e)
        {
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_releaseNo, gridView1, "releaseNo");
            if (string.IsNullOrEmpty(rowGuid))
            {
                MsgHelper.ShowError("请先选择你要操作的行!");
                return;
            }
            var _obj = new
            {
                guid = rowGuid,
            };
            try
            {
                var strJson = UtilityHelper.HttpPost("", _webServiceName + "GetBaoGao", JsonConvert.SerializeObject(_obj));
                var _rtn = UtilityHelper.ReturnToDynamic(strJson);
                if (_rtn.rtnCode > 0)
                {
                    MsgHelper.ShowInformation("生成成功");
                }
                else
                    MsgHelper.ShowError("提示:" + _rtn.rtnMsg);
            }
            catch (Exception ex)
            {
                MsgHelper.ShowError("提示:" + ex.Message);
            }
        }
        /// <summary>
        /// 检验和反检验
@@ -944,7 +992,7 @@
                        return;
                    }
                    string _txt_fngHandle = txt_fngHandle.Text.Trim();
                    string _txt_fmrmode = txt_fmrmode.SelectedText.Trim();
                    string _txt_fmrmode = txt_fmrmode.Text.Trim();
                    string _txt_fzrId = txt_fzrId.GetId();
                    string _txt_workNo = txt_workNo.Text.Trim();
                    string _txt_msg = txt_msg.TextTxt;