lu
2025-04-09 48ff014392dbb512ed141383a4a3ed8b43a57ff0
DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01Check.cs
@@ -166,7 +166,6 @@
            Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1);
        }
        /// <summary>
        /// 刷新事件
        /// </summary>
@@ -228,18 +227,54 @@
        private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
        {
            toolBarMenu1.isSetBtn = false;
            string _txt_fngHandle = txt_fngHandle.Text.Trim();
            string _freceQty = txt_freceQty.Text.Trim();
            string _txt_fngHandle = txt_fngHandle.Text.Trim();
            string _txt_fmrmode = txt_fmrmode.GetCode();
            string _txt_fzrId = txt_fzrId.GetId();
            string _txt_workNo = txt_workNo.Text.Trim();
            string _txt_msg = txt_msg.TextTxt;
            //if (string.IsNullOrEmpty(_txt_fbatchQty.Trim()))
            //{
            //    Gs.DevApp.ToolBox.MsgHelper.Warning("抽检数量不能为空!");
            //    txt_fbatchQty.Focus();
            //    return;
            //}
            if (txt_freceQty.SelectedIndex <= 0)
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择判定结果!");
                txt_freceQty.Focus();
                return;
            }
            //当为不合格时,要选择处置结果
            if (txt_freceQty.SelectedIndex != 1)
            {
                if (txt_fngHandle.SelectedIndex <= 0)
                {
                    Gs.DevApp.ToolBox.MsgHelper.Warning("请选择处置结果!");
                    txt_fngHandle.Focus();
                    return;
                }
                //当处置结果为反工时,要选择工序和反工编号
                if (txt_fngHandle.SelectedIndex == 1)
                {
                    if (string.IsNullOrEmpty(_txt_workNo))
                    {
                        Gs.DevApp.ToolBox.MsgHelper.Warning("请填写反工单号!");
                        txt_workNo.Focus();
                        return;
                    }
                    if (string.IsNullOrEmpty(_txt_fmrmode))
                    {
                        Gs.DevApp.ToolBox.MsgHelper.Warning("请填选择反工工序!");
                        txt_fmrmode.Focus();
                        return;
                    }
                }
            }
            //当为合格时,就不应该选择其它项目了
            else {
                if ((_txt_fngHandle.Length + _txt_fmrmode.Length + _txt_fzrId.Length + _txt_workNo.Length) > 0)
                {
                    Gs.DevApp.ToolBox.MsgHelper.Warning("当判定结果为合格时,就不应该选择其它项目了!!");
                    txt_freceQty.Focus();
                    return;
                }
            }
            var _obj = new
            {
                guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建