cnf
2025-09-11 854387d20de3afa766f08bc08f45ee7494b10281
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs
@@ -115,14 +115,6 @@
            //打印事件
            this.ucBtnPrint1.btnPrintClick += (s, e) =>
            {
                if ((txt_tbl013.EditValue.ToString() == "False") )
                {
                    Gs.DevApp.ToolBox.MsgHelper.ShowError("该退料申请单未审核不能打印条码");
                    txt_tbl013.Focus();
                    return;
                }
                string rowGuid = lbMxGuid.Text.Trim();
                ucBtnPrint1.guidKey = rowGuid;
                if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim(), txt_yuliang_1.Text.Trim()))
@@ -405,8 +397,7 @@
            //2025/07/12加上修改状态下不能修改
            txt_tbl023.IsReadly = true;
            txt_tbl002.IsReadly = true;
            //txt_tbl005.ReadOnly = true;
            //txt_tbl005.EditValue = true;
            txt_tbl005.ReadOnly = true;
        }
        /// <summary>
        /// 新增事件
@@ -448,9 +439,9 @@
                txt_tbl002.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txt_tbl005.Text.Trim()))
            if (txt_tbl005.SelectedIndex <= 0)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择原因!");
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择类型!");
                txt_tbl005.Focus();
                return;
            }
@@ -460,14 +451,6 @@
                txt_tbl005.Focus();
                return;
            }
            if ((txt_tbl005.Text.Trim() == "来料不良退料") && txt_chkOut.Checked)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("来料不良退料不能自动生成补料单,请检查!");
                txt_tbl005.Focus();
                return;
            }
            var _obj = new
            {
                guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建
@@ -548,7 +531,11 @@
        /// <param name="pageSize">每页几条</param>
        private void getPageList(int curPage)
        {
            gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
            gcMain1.DataSource = null;
            System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder();
            _sbSqlWhere.Append(" and a.tbl023 in");
            _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere());
            _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList));
            PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString());
            string json = JsonConvert.SerializeObject(pgq);
            try