bug
lu
2 天以前 fa113f04a917e85af84813487f033fb6bc43a5d7
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work01.cs
@@ -36,7 +36,7 @@
        string fGxDianJian = "G002:电检";
        string fGxShouJian = "G003:水检";
        string fGxZhongJian = "G004:终检";
        /// <summary>
        /// 
        /// </summary>
@@ -44,7 +44,7 @@
        /// <param name="_fBc">班次</param>
        /// <param name="_strinOther">目前为电检路径</param>
        /// <param name="chkWater">是否水检</param>
        public Frm_Work01(string _fGx, string _fBc, string _strinOther,int chkWater=0)
        public Frm_Work01(string _fGx, string _fBc, string _strinOther, int chkWater = 0)
        {
            InitializeComponent();
            try
@@ -108,11 +108,20 @@
            };
            btnBad.Click += (s, e) =>
            {
                string _collectGuid ="";
                int idx = tabMx.SelectedTabPageIndex;
                if (idx > 0)
                {
                    Toast vm = new Toast(-1, "~已帮你切换到【良品明细】,请重新操作~");
                    vm.Show();
                    tabMx.SelectedTabPageIndex = 0;
                    return;
                }
                string _collectGuid = "";
                string _collCode = "";
                var dr = gvMx1.GetFocusedDataRow();
                if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString()))
                {
                }
                else
                {
@@ -126,7 +135,16 @@
                    return;
                }
                string _msg = "你准备将【" + _collCode + "】变更为不良";
                UcDictionarySelect frm = new UcDictionarySelect("工序不良描述", " a.s_type='工序不良描述' and pid<>'00000000-0000-0000-0000-000000000000'", _msg);
                string _type = "";
                if (txt_gx.Text.Trim() == fGxTouRu)
                    _type = "工序G001:投入不良描述";
                if (txt_gx.Text.Trim() == fGxDianJian)
                    _type = "工序G002:电检不良描述";
                if (txt_gx.Text.Trim() == fGxShouJian)
                    _type = "工序G003:水检不良描述";
                if (txt_gx.Text.Trim() == fGxZhongJian)
                    _type = "工序G004:终检不良描述";
                UcDictionarySelect frm = new UcDictionarySelect(_type, " a.s_type='" + _type + "' and pid<>'00000000-0000-0000-0000-000000000000'", _msg);
                frm.UpdateParent += (ss, ee) =>
                {
                    System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();