bug
lu
2025-08-08 780c932338d7fbefb9bb3e05b253cc203f6f4d48
DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs
@@ -119,10 +119,31 @@
        /// <exception cref="NotImplementedException"></exception>
        private void ToolBarMenu1_btnOutClick(object sender, EventArgs e)
        {
            var frm2 = new Frm_XunJianDetect01Show();
            frm2.UpdateParent += (ss, ee) =>
            //是否检查无毕beg
            var dr = gridView1.GetFocusedDataRow();
            if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString()))
            {
                string begDate = ee.StringSingle.Trim();
                MsgHelper.ShowError("请先选择你要操作的行!");
                return;
            }
            string strLotNo = dr["lotNo"].ToString();
            if (string.IsNullOrEmpty(strLotNo))
            {
                MsgHelper.ShowError("未开始检验,不能导出!");
                return;
            }
            //是否检查无毕end
            string rowGuid = "", rowName = "";
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_releaseNo, gridView1, "releaseNo");
            if (string.IsNullOrEmpty(rowGuid))
            {
                MsgHelper.ShowError("请先选择你要操作的行!");
                return;
            }
            if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定导出吗?"))
                return;
                using (FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog())
                {
                    folderBrowserDialog.Description = "选择导出文件的保存路径";
@@ -132,7 +153,7 @@
                        string _folder = folderBrowserDialog.SelectedPath;
                        var _obj = new
                        {
                            begDate = begDate,
                        guid = rowGuid,
                        };
                        try
                        {
@@ -161,8 +182,6 @@
                        }
                    }
                }
            };
            frm2.ShowDialog();
        }
        /// <summary>
        /// 日志事件