From 41f16be4fbf2e0f7b42d4b066f3be24c9e91bac1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 20 三月 2025 14:02:29 +0800 Subject: [PATCH] 异常报告 --- DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs index f8d7043..4e54b64 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> @@ -152,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())) { @@ -177,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 { @@ -216,14 +219,14 @@ if (dd.rtnCode > 0) { DataTable dt = dd.rtnData.list; - gcMain.BindingContext = new BindingContext(); - gcMain.DataSource = dt; - gcMain.ForceInitialize(); + gcMain1.BindingContext = new BindingContext(); + gcMain1.DataSource = dt; + gcMain1.ForceInitialize(); int dddd = dd.rtnData.pages;//鎬婚〉 pageBar1.TotalPages = dddd; pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 pageBar1.CurrentPage = curPage;//褰撳墠椤� - gridView1.BestFitColumns(); + gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); } else { @@ -274,6 +277,11 @@ } } + /// <summary> + /// 涓婁紶鍥剧墖 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var rowhandle = gridView1.FocusedRowHandle; -- Gitblit v1.9.3