| | |
| | | |
| | | private readonly string _webServiceName = "MesCgthSqManager/"; |
| | | private string suppId = ""; |
| | | private string receiveOrgId = ""; |
| | | private string isWw = ""; |
| | | /// <summary> |
| | | /// 供应商编号 |
| | | /// </summary> |
| | | /// <param name="supp_no"></param> |
| | | public SelectMesCgthSq(string _suppId) |
| | | public SelectMesCgthSq(string _suppId, string _receiveOrgId, string _isWw) |
| | | { |
| | | InitializeComponent(); |
| | | this.suppId = _suppId; |
| | | this.receiveOrgId = _receiveOrgId; |
| | | this.isWw = _isWw; |
| | | 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(); |
| | | }; |
| | | |
| | | }); |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | btnIn.Click += (s, e) => |
| | | { |
| | | var list = new List<string>(); |
| | |
| | | everyPageSize = pageSize, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | inSupId = this.suppId |
| | | inBusType = isWw, |
| | | inSupId = this.suppId, |
| | | inReceiveOrgId = this.receiveOrgId, |
| | | }; |
| | | 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.setTxt(); |
| | | } |
| | | catch (Exception ex) |
| | | { |