From f23d33d0cf77a73d449cd7c38effda9e50c8fda4 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 06 三月 2025 08:13:37 +0800 Subject: [PATCH] 版面 --- DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs | 31 ++++++++++++++++++++++--------- 1 files changed, 22 insertions(+), 9 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs index 4f1f005..e682cf2 100644 --- a/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs +++ b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs @@ -21,6 +21,9 @@ this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gridView1); + Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); @@ -36,7 +39,7 @@ pageBar1.PagerEvent += PageBar1_PagerEvent; } - + /// <summary> /// 鍒嗛〉浜嬩欢 /// </summary> @@ -82,9 +85,10 @@ if (_rtn.rtnCode > 0) { if (xtraTabControl1.SelectedTabPageIndex == 0) - getPageList(this.pageBar1.CurrentPage); + { } else Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2); + getPageList(this.pageBar1.CurrentPage); } ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); } @@ -104,7 +108,17 @@ if (xtraTabControl1.SelectedTabPageIndex == 1) getModel(lbGuid.Text.Trim()); else - getPageList(1); + { + //_filterList.Clear(); + //if (gridView1.ActiveFilter.Count > 0) + //{ + // gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; + // gridView1.ActiveFilter.Clear(); + // gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + //} + //getPageList(1); + getPageList(this.pageBar1.CurrentPage); + } } /// <summary> /// 淇敼浜嬩欢 @@ -141,7 +155,7 @@ /// <param name="e"></param> private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) { - + toolBarMenu1.isSetBtn = false; if (string.IsNullOrEmpty(txt_pageView.Text.Trim())) { @@ -166,9 +180,9 @@ guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 PageView = txt_pageView.Text.Trim(), Path = txt_path.Text.Trim(), - PageGroup=txt_pageGroup.Text.Trim(), - PageIdx=txt_pageIdx.Text.Trim(), - PageStatus=txt_pageStatus.Checked + PageGroup = txt_pageGroup.Text.Trim(), + PageIdx = txt_pageIdx.Text.Trim(), + PageStatus = txt_pageStatus.Checked }; try { @@ -212,6 +226,7 @@ pageBar1.TotalPages = dddd; pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 pageBar1.CurrentPage = curPage;//褰撳墠椤� + gridView1.BestFitColumns(); } else { @@ -280,7 +295,5 @@ frm.ShowDialog(); } } - - } } \ No newline at end of file -- Gitblit v1.9.3