From 014916bf6294dff044014cb7de4f0a334478cf72 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期一, 25 八月 2025 11:00:13 +0800 Subject: [PATCH] Merge branch 'master' of http://git.gs-mes.com:8080/r/~tjx/GsMesClient --- DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs index dfe6c6d..d938a71 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs +++ b/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) => @@ -441,9 +445,9 @@ txt_tbl005.Focus(); return; } - if (string.IsNullOrEmpty(txt_tbl005.Text.Trim())) + if ((txt_tbl005.Text.Trim()=="鑹搧閫�鏂�") && txt_chkOut.Checked) { - Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鍘熷洜锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("鑹搧閫�鏂欎笉鑳借嚜鍔ㄧ敓鎴愯ˉ鏂欏崟锛岃妫�鏌ワ紒"); txt_tbl005.Focus(); return; } @@ -527,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 @@ -785,6 +793,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(); -- Gitblit v1.9.3