| | |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.RichEdit.Export; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.UserControl |
| | |
| | | private readonly List<FilterEntity> _filterList = |
| | | new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "WompbaManager/"; |
| | | private string lineId = ""; |
| | | public SelectWompba(string _lineId) |
| | | private string workId = ""; |
| | | public SelectWompba(string _workId) |
| | | { |
| | | InitializeComponent(); |
| | | this.workId = _workId; |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | gridView1.IndicatorWidth = 50; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => |
| | | { |
| | | if (e.Info.IsRowIndicator && e.RowHandle >= 0) |
| | | e.Info.DisplayText = (e.RowHandle + 1).ToString(); |
| | | }; |
| | | |
| | | }); |
| | | btnIn.Click += (s, e) => |
| | | { |
| | | var list = new List<string>(); |
| | |
| | | everyPageSize = pageSize, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | inBusType = "CG", |
| | | lineId = this.lineId |
| | | workId = this.workId |
| | | }; |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | |
| | | gcMain.BindingContext = new BindingContext(); |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | var dddd = dd.rtnData.pages; //总页 |
| | | pageBar1.TotalPages = dddd; |
| | | pageBar1.RecordCount = dd.rtnData.total; //记录总数 |
| | | pageBar1.CurrentPage = curPage; //当前页 |
| | | pageBar1.RowsCount = pageSize; //每页显示 |
| | | } |
| | | catch (Exception ex) |
| | | { |