From e7a4a432735a3bd29518247c87a956786a9d596e Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 21 六月 2025 09:11:09 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs index bf2c12b..e88d504 100644 --- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs +++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs @@ -62,7 +62,7 @@ var rtn = UtilityHelper.ReturnToTablePage(strReturn); var dt = rtn.rtnData.list; this.repositoryItemSearchLookUpEdit1.DataSource = dt; - // repositoryItemSearchLookUpEdit1.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; + // repositoryItemSearchLookUpEdit1.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; //Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView2); } catch (Exception ex) @@ -71,11 +71,11 @@ } }; - this.gvMx1.InitNewRow += (s, e) => { + this.gvMx1.InitNewRow += (s, e) => + { string _orgId = txt_fapporgid.GetId(); - string _orgName= txt_fapporgid.GetName(); + string _orgName = txt_fapporgid.GetName(); if (string.IsNullOrEmpty(_orgId)) return; - gvMx1.SetFocusedRowCellValue("dcOrg", _orgName); gvMx1.SetFocusedRowCellValue("dcOrgGuid", _orgId); gvMx1.SetFocusedRowCellValue("drOrg", _orgName); @@ -111,7 +111,7 @@ gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; gridView1.ActiveFilter.Clear(); gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; - var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); + var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); frm.UpdateParent += Frm_UpdateParent; frm.ShowDialog(); } @@ -226,7 +226,7 @@ { List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); gvList.Add(gvMx1); - UtilityHelper.ChangeEnableByControl( splitMx1.Panel1.Controls, true, gvList); + UtilityHelper.ChangeEnableByControl(splitMx1.Panel1.Controls, true, gvList); } } /// <summary> @@ -242,6 +242,9 @@ gridViews.Add(gvMx1); UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); + //澧炲姞鏃讹紝榛樿缁勭粐 + string deftOrg = UtilityHelper.GetFirstOrg(txt_fapporgid); + } /// <summary> /// 淇濆瓨浜嬩欢 @@ -408,7 +411,7 @@ /// <param name="pageSize">姣忛〉鍑犳潯</param> private void getPageList(int curPage) { - var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); + gcMain1.DataSource = null;var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); string json = JsonConvert.SerializeObject(pgq); try @@ -811,7 +814,7 @@ var rowhandle = gvMx1.FocusedRowHandle; //if (rowhandle < 0) // return; - int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; + int _drhzlx = txt_fOwnerTypeInIdHead.SelectedIndex; //if (_drhzlx <= 0) //{ // MsgHelper.Warning("鎻愮ず锛氳鍏堥�夋嫨璋冨叆璐т富绫诲瀷锛�"); -- Gitblit v1.9.3