1
lu
2024-11-08 9dd9cb8b533b3d6346b974407bd47879bff7fe70
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
@@ -51,6 +51,7 @@
            gvMx3.OptionsFind.ShowSearchNavButtons = false;
            gvMx3.OptionsView.ShowGroupPanel = false;
            txt_itemId.KeyFile = "id";
            txt_suppId.KeyFile = "id";
            txt_itemId.EditChanged += (s, e) =>
            {
                txt_itemModel.Text = this.txt_itemId.GetModel();
@@ -77,7 +78,7 @@
        /// <param name="e"></param>
        private void BtnLoad_Click(object sender, EventArgs e)
        {
            if (!MsgHelper.AskQuestion("确定重新加载检验项目吗?"))
            if (!MsgHelper.AskQuestion("确定重新加载检验项目吗,该操作将会清空之前的检验记录?"))
                return;
            string strGuid = lbGuid.Text.Trim();
            if (string.IsNullOrEmpty(strGuid))
@@ -110,6 +111,7 @@
                        gcMx1.BindingContext = new BindingContext();
                        gcMx1.DataSource = dt;
                        gcMx1.ForceInitialize();
                        getList12(dt.Rows[0]["guid"].ToString());
                    }
                    else
                    {
@@ -374,15 +376,23 @@
        private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
        {
            toolBarMenu1.isSetBtn = false;
            //if (string.IsNullOrEmpty(txt_account.Text.Trim()))
            if (string.IsNullOrEmpty(txt_fngDesc.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("登录账号不能为空!");
                // txt_account.Focus();
                Gs.DevApp.ToolBox.MsgHelper.Warning("不良描述不能为空!");
                txt_fngDesc.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txt_lotNo1.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("备注能为空!");
                txt_fngDesc.Focus();
                return;
            }
            var _obj = new
            {
                guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建
                fngDesc=txt_fngDesc.Text.Trim(),
                lotNo1=txt_lotNo1.Text.Trim(),
            };
            try
            {
@@ -497,7 +507,7 @@
            }
        }
        /// <summary>
        /// 选项卡切换
        /// </summary>