| | |
| | | using Gs.DevApp.Entity; |
| | | using DevExpress.XtraGrid.Views.Base; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | |
| | | { |
| | | public partial class SelectPage : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | private readonly List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | |
| | | private readonly string _webServiceName = "MesSysPageviewManager/"; |
| | | private string userGuid = ""; |
| | | /// <summary> |
| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => |
| | | { |
| | | |
| | | }); |
| | | },null); |
| | | getPageList(1); |
| | | btnIn.Click += (s, e) => |
| | | { |
| | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// </summary> |
| | | /// <param name="curPage">第几页</param> |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, 999999, "a.PAGE_GROUP", "asc", |
| | | "", _sbSqlWhere.ToString()); |
| | | var _sbSqlWhere =""; |
| | | var pgq = new PageQueryModel(curPage, 999999, "a.PAGE_GROUP", "asc","", _sbSqlWhere.ToString(), userGuid); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | |
| | | |
| | | |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |