lu
2025-05-19 d3dd87dbb75c485ca1c9431faffe2d9cae786e97
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
@@ -14,6 +14,7 @@
{
    public partial class Frm_MesQaItemsDetect01 : DevExpress.XtraEditors.XtraForm
    {
        string _strTag = "N:不合格";
        string _webServiceName = "MesQaItemsDetect01Manager/";
        List<FilterEntity> _filterList = new List<FilterEntity>();
        public Frm_MesQaItemsDetect01()
@@ -70,6 +71,11 @@
            Task.Delay(100);
            getPageList(1);
        }
        /// <summary>
        /// 5表焦点时,重新读取12表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            if (e.FocusedRowHandle >= 0)
@@ -248,9 +254,9 @@
            }
            if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定提交检验吗?"))
                return;
            if (txt_fcheckResu.Text.Trim() == "不合格")
            if (txt_fcheckResu.Text.Trim() == _strTag)
            {
                if (string.IsNullOrEmpty(txt_fngDesc.Text.Trim()))
                if (string.IsNullOrEmpty(txt_fngDesc.TextTxt.Trim()))
                {
                    MsgHelper.Warning("单据为不合格时,请填写异常备注说明!");
                    return;
@@ -357,7 +363,7 @@
        private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
        {
            toolBarMenu1.isSetBtn = false;
            if (txt_fcheckResu.Text.Trim() == "N:不合格" && string.IsNullOrEmpty(txt_fngDesc.TextTxt.Trim()))
            if (txt_fcheckResu.Text.Trim() == _strTag && string.IsNullOrEmpty(txt_fngDesc.TextTxt.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("当检验结果不合格时,请填写备注说明!");
                txt_fngDesc.Focus();
@@ -398,7 +404,6 @@
        private void getPageList(int curPage)
        {
            gcMain1.DataSource = null;var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
            // _sbSqlWhere += " and isnull(fsubmit,0)=0";
            PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", _sbSqlWhere.ToString());
            string json = JsonConvert.SerializeObject(pgq);
            try
@@ -434,6 +439,11 @@
            }
        }
        /// <summary>
        /// 读取实体
        /// </summary>
        /// <param name="strGuid"></param>
        /// <param name="guid5"></param>
        private void getModel(string strGuid, string guid5)
        {
            bool isEdit = false;
@@ -555,7 +565,10 @@
                MsgHelper.Warning("提示:" + ex.Message);
            }
        }
        /// <summary>
        /// 禁用检验框+重新加载按钮
        /// </summary>
        /// <param name="bl"></param>
        private void setEable(bool bl)
        {
            txtJianYan.ReadOnly = !bl;
@@ -563,7 +576,7 @@
            btnIpt.Text = (bl == true ? "录入样本" : "查看样本");
        }
        #region 打开父亲窗口委托
        #region 打开父亲窗口委托,查看异常报告
        public event EventHandler<UpdateParentEventArgs> ToUpdateParent;
        private void BtnYcReport_Click(object sender, EventArgs e)
        {