| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevExpress.Utils.DirectXPaint; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | |
| | |
| | | radioGroup1.SelectedIndex = 0; |
| | | this.suppId = _suppId; |
| | | this.receiveOrgId = _receiveOrgId; |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => |
| | | { |
| | | |
| | | }); |
| | | },null,false); |
| | | getPageList(1); |
| | | btnIn.Click += (s, e) => |
| | | { |
| | |
| | | var _obj = new |
| | | { |
| | | currentPage = curPage, |
| | | everyPageSize = this.pageBar1.RowsCount, |
| | | everyPageSize = 999999, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | inBusType = (radioGroup1.SelectedIndex+1),//1是采购,2是委外 |
| | |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | var dddd = dd.rtnData.pages; //总页 |
| | | pageBar1.TotalPages = dddd; |
| | | pageBar1.RecordCount = dd.rtnData.total; //记录总数 |
| | | pageBar1.CurrentPage = curPage; //当前页 |
| | | } |
| | | catch (Exception ex) |
| | | { |