啊鑫
6 天以前 475eadcff3012b2b54d22174e0970f9d24cfa6b4
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs
@@ -1,16 +1,18 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using System.Windows.Forms;
using Gs.DevApp.DevFrm.Rk;
using Gs.DevApp.DevFrm.Rpt;
using Gs.DevApp.DevFrm.Work;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.DevFrm.Rk
namespace Gs.DevApp.DevFrm
{
    public partial class Frm_MesItemTbl : DevExpress.XtraEditors.XtraForm
    {
@@ -32,6 +34,8 @@
            toolBarMenu1.btnFPiZhunClick += ToolBarMenu1_btnFPiZhunClick;
            toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick;
            toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
            toolBarMenu1.btnPingZhiClick += ToolBarMenu1_btnPingZhiClick;
            toolBarMenu1.btnFPingZhiClick += ToolBarMenu1_btnFPingZhiClick;
            this.toolBarMenu1.getXmlConfig();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2);
@@ -269,6 +273,25 @@
            _toolCk(3);
        }
        /// <summary>
        /// 反品质
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolBarMenu1_btnPingZhiClick(object sender, EventArgs e)
        {
            _toolCk(4);
        }
        /// <summary>
        /// 品质
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolBarMenu1_btnFPingZhiClick(object sender, EventArgs e)
        {
            _toolCk(5);
        }
        /// <summary>
        ///     审核事件
        /// </summary>
        /// <param name="sender"></param>
@@ -445,7 +468,13 @@
            }
            if ((txt_tbl005.Text.Trim()=="良品退料") && txt_chkOut.Checked)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("良品退料不能自动生成补料单,请检查!");
                Gs.DevApp.ToolBox.MsgHelper.ShowError("良品退料不能自动生成补料单,\n只有作业不良类型才能生成补料单,\n 请检查!");
                txt_tbl005.Focus();
                return;
            }
            if ((txt_tbl005.Text.Trim() == "来料不良退料") && txt_chkOut.Checked)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("来料不良退料不能自动生成补料单,\n只有作业不良类型才能生成补料单,\n 请检查!");
                txt_tbl005.Focus();
                return;
            }
@@ -713,6 +742,12 @@
                case 3:
                    strMsg = "反批准";
                    break;
                case 4:
                    strMsg = "品质审核";
                    break;
                case 5:
                    strMsg = "品质反审核";
                    break;
            }
            ;
            toolBarMenu1.guidKey = "";