bug
lu
2025-08-03 f515bb49e76481c378c23267cd1a919d25249c30
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs
@@ -100,6 +100,10 @@
                        gcMx1.DataSource = _oldTable;
                        gcMx1.ForceInitialize();
                        Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1);
                        gvMx1.CloseEditor();
                        gvMx1.PostEditor();
                        gvMx1.UpdateCurrentRow();
                        gridView1.BestFitColumns();
                    }
                    catch (Exception ex)
                    {
@@ -147,7 +151,7 @@
            this.ucBtnPrint1.btnAllClick += (s, e) =>
            {
                string rowGuid = lbMxGuid.Text.Trim();
                SelectDeleteBar frm = new SelectDeleteBar(rowGuid, "采购入库");
                SelectDeleteBar frm = new SelectDeleteBar(rowGuid, "生产退料");
                string strCodeList = "";
                string strAction = "";
                frm.UpdateParent += (ss, ee) =>
@@ -438,6 +442,12 @@
            if (string.IsNullOrEmpty(txt_tbl005.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择原因!");
                txt_tbl005.Focus();
                return;
            }
            if ((txt_tbl005.Text.Trim()=="良品退料") && txt_chkOut.Checked)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("良品退料不能自动生成补料单,请检查!");
                txt_tbl005.Focus();
                return;
            }
@@ -779,6 +789,8 @@
            {
                DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle);
                lbMxGuid.Text = row["tlid"].ToString();
                if (string.IsNullOrEmpty(lbMxGuid.Text))
                    return;
                toolBarMenu1.guidKey = row["tlid"].ToString();
                txtWlid.Text = row["tld002"].ToString();
                txtWlgg.Text = row["tld004"].ToString();